#!/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
#!/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
页面无法访问……冏
try again <html>xxx</html>
今天搞定投票和上一篇,下一篇 功能,用go写真快啊,够浪
你的server跑着跑着会挂么
会,go accpetex函数问题
刚才搞定 审帖,合并了topic和topicex表,理顺热门和活跃主题:)比studygolang现在的类别清楚多了。。。:)
提交了下代码:https://github.com/philsong/studygolang
欢迎一起玩
@polaris one bug:next page only go to /topics route..