Open xiangmou123 opened 1 month ago
还有就是这么多启动的,貌似启动哪个都行吧?
cat docker_start.sh
#!/bin/sh
# start
cd /opt/nemo
if [ $# -eq 0 ]
then
nohup ./server_linux_amd64 &
nohup ./daemon_worker_linux_amd64 &
nohup ./thirdparty/goby/goby-cmd-linux -mode api -bind 127.0.0.1:8361 -apiauth goby:goby &
else
if [ "$1" = "server" ]
then
nohup ./server_linux_amd64 &
fi
if [ "$1" = "worker" ]
then
nohup ./daemon_worker_linux_amd64 &
nohup ./thirdparty/goby/goby-cmd-linux -mode api -bind 127.0.0.1:8361 -apiauth goby:goby &
fi
fi
tail -f log/*.log
# keep running...
/bin/bash
启动文件里写得很明白了。
单机上用docker起server和work,work总是有问题