基于studygolang模仿糗百的网站

philsong · · 5618 次点击
#!/bin/sh #===================== #ni da ye golang crash when acceptEx #http://pingliwang.com:9090/ #===================== while : do echo "Current DIR is " $PWD stillRunning=$(ps -ef |grep "$PWD/bin/studygolang.exe" |grep -v "grep") if [ "$stillRunning" ] ; then echo "my service was already started by another way" echo "Kill it and then startup by this shell, other wise this shell will loop out this message annoyingly" kill -9 $pidof $PWD/bin/studygolang.exe else echo "my service was not started" echo "Starting service ..." $PWD/bin/studygolang.exe echo "my service was exited!" fi sleep 1 done
#4
更多评论
polaris
社区,需要你我一同完善!
页面无法访问……冏
#1
try again <html>xxx</html>
#2