This commit is contained in:
wyy 2013-11-23 07:40:18 -08:00
parent e39b06c2ac
commit 08ff82f91f
8 changed files with 7 additions and 11 deletions

View File

@ -4,3 +4,4 @@ ADD_DEFINITIONS(-std=c++0x -O3)
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(dicts)
ADD_SUBDIRECTORY(scripts)
ADD_SUBDIRECTORY(conf)

1
conf/CMakeLists.txt Normal file
View File

@ -0,0 +1 @@
INSTALL(FILES server.conf DESTINATION /etc/CppJieba)

View File

@ -1,2 +1,2 @@
INSTALL(FILES start.sh stop.sh restart.sh DESTINATION /etc/init.d/CppJieba)
INSTALL(FILES cjseg.sh stop.sh restart.sh DESTINATION bin)
INSTALL(PROGRAMS start.sh stop.sh DESTINATION /etc/init.d/CppJieba)
INSTALL(PROGRAMS cjseg.sh DESTINATION bin)

View File

@ -1,7 +0,0 @@
#!/bin/sh
echo "stop ..."
sh stop.sh
echo "start ..."
sh start.sh

View File

@ -1,2 +1,2 @@
#!/bin/sh
cjserver -n 4 -p 11258 -k start >> run.log 2>&1 &
cjserver -c /etc/CppJieba/server.conf -k start >> /dev/null 2>&1

View File

@ -1,2 +1,2 @@
#!/bin/sh
./server.demo -n 4 -p 11258 -k stop
cjserver -c /etc/CppJieba/server.conf -k stop

1
test/curl.sh Executable file
View File

@ -0,0 +1 @@
curl "http://127.0.0.1:11200/?key=南京市长江大桥"