基于studygolang模仿糗百的网站

philsong · 2013-12-25 08:06:34 · 5929 次点击 · 大约8小时之前 开始浏览    置顶
这是一个创建于 2013-12-25 08:06:34 的主题,其中的信息可能已经有所发展或是发生改变。

基于studygolang模仿糗百的网站 http://pingliwang.com:9090/

欢迎来玩玩


有疑问加站长微信联系(非本文作者)

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

5929 次点击  
加入收藏 微博
9 回复  |  直到 2013-12-31 07:56:32
polaris
polaris · #1 · 11年之前

页面无法访问……冏

philsong
philsong · #2 · 11年之前

try again <html>xxx</html>

philsong
philsong · #3 · 11年之前

今天搞定投票和上一篇,下一篇 功能,用go写真快啊,够浪

philsong
philsong · #4 · 11年之前
#!/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 
daemon
daemon · #5 · 11年之前
philsongphilsong #4 回复

#!/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

你的server跑着跑着会挂么

philsong
philsong · #6 · 11年之前
daemondaemon #5 回复

#4楼 @philsong 你的server跑着跑着会挂么

会,go accpetex函数问题

philsong
philsong · #7 · 11年之前

刚才搞定 审帖,合并了topic和topicex表,理顺热门和活跃主题:)比studygolang现在的类别清楚多了。。。:)

philsong
philsong · #8 · 11年之前

提交了下代码:https://github.com/philsong/studygolang

欢迎一起玩

philsong
philsong · #9 · 11年之前

@polaris one bug:next page only go to /topics route..

添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传