-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
18 changed files
with
42 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,8 @@ | |
3part/behaviac-3.6.40 | ||
3part/3part.rar | ||
php/phpcode | ||
bin | ||
bin/Debug | ||
bin/Release | ||
obj | ||
lib | ||
php | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
path="$(cd $(dirname $0); pwd)" | ||
pids=`ps -elf|grep node|grep -v grep|awk '{print $4}'` | ||
function stop_pid() { | ||
for pid in ${pids} | ||
do | ||
proname=`ls -l /proc/${pid}|grep exe|awk '{print $11}'` | ||
if [[ ${proname} == ${path}/node ]];then | ||
kill -9 ${pid} | ||
echo "kill -9 ${pid}"; | ||
|
||
fi | ||
done | ||
echo "Stop Server PID is Success " | ||
} | ||
|
||
stop_pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ TESTS 2000 C /time | |
TESTS 2000 C /time | ||
TESTS 2000 C /time | ||
TESTS 2000 C /chat 1 2 china | ||
START | ||
START |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CURRENT_DIR=`pwd` | ||
nohup $CURRENT_DIR/node actor 1 1 > /dev/null 2>&1 & | ||
nohup $CURRENT_DIR/node game 1 1 > /dev/null 2>&1 & | ||
nohup $CURRENT_DIR/node db 1 1 > /dev/null 2>&1 & | ||
nohup $CURRENT_DIR/node login 1 1 > /dev/null 2>&1 & | ||
nohup $CURRENT_DIR/node gateway 1 1 > /dev/null 2>&1 & | ||
nohup $CURRENT_DIR/node world 1 1 > /dev/null 2>&1 & | ||
echo Done! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./node robot 1 1 libo 1 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
cd ../bin/Debug/ | ||
xcopy node.exe node_actor.exe /y | ||
xcopy node.exe node_game.exe /y | ||
xcopy node.exe node_db.exe /y | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
start node_robot robot 1 1 libo 1 1 | ||
#start node_robot robot 1 1 wac 1 1 | ||
#start node_robot robot 1 1 libo 1 1999 | ||
#start node_robot robot 1 1 wac 1 1999 |
7 changes: 4 additions & 3 deletions
7
tools/start_server/start_client_2.bat → bin/win_start_client_2.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
tools/start_server/start_server_1.bat → bin/win_start_server_1.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
cd ../../bin/Debug/ | ||
#Ò»Çø | ||
start node_actor actor 1 1 | ||
start node_game game 1 1 | ||
#start node_game game 1 2 | ||
start node_db db 1 1 | ||
#start node_login login 1 1 | ||
start node_login login 1 1 | ||
start node_gateway gateway 1 1 | ||
#start node_gateway gateway 1 2 | ||
start node_world world 1 1 |
1 change: 0 additions & 1 deletion
1
tools/start_server/start_server_2.bat → bin/win_start_server_2.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
cd ../../bin/Debug/ | ||
#¶þÇø | ||
start node_actor actor 2 1 | ||
start node_game game 2 1 | ||
|
1 change: 0 additions & 1 deletion
1
tools/start_server/start_server_cross.bat → bin/win_start_server_cross.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
cd ../../bin/Debug/ | ||
#¿ç·þ | ||
start node_cross cross -100 1 |
1 change: 0 additions & 1 deletion
1
tools/start_server/start_server_initdb.bat → bin/win_start_server_initdb.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.