安装应用:
sudo apt-get update && sudo apt-get install screen nano

nano auth.sh

#!/bin/sh
while :; do
./authserver
sleep 20
done

nano world.sh

#!/bin/sh
while :; do
./worldserver
sleep 20
done

nano restarter.sh

#!/bin/bash
screen -AmdS auth ./auth.sh
screen -AmdS world ./world.sh


nano shutdown.sh
#!/bin/bash
screen -X -S "world" quit
screen -X -S "auth" quit


./restarter.sh; screen -r world
./shutdown.sh


screen -ls

退出 :键盘点击ctrl+a , 然后按d


标签: none

添加新评论