qiandao2部署各种签到网站总结

qiandao2部署各种签到网站总结
代码:https://github.com/binux/qiandao
openshift部署python环境及端口问题 https://doubles.me/2013/05/12/643/
openShift限制端口绑定
Opening a Socket on a port on OpenShift Python Hosting – Stack Overflow https://stackoverflow.com/questions/22343455/opening-a-socket-on-a-port-on-openshift-python-hosting

pip 升级的问题解决办法 – jasonzzj的博客 – CSDN博客 http://blog.csdn.net/jasonzzj/article/details/70513544

(安装指定版本的mysql驱动)pip install mysql-connector 安装出错 – 叫我蒋乐哥哥 – 博客园 http://www.cnblogs.com/JiangLe/p/6971134.html

关键中的关键,修改代码为预留的python IP 和python port

ip = os.environ[‘OPENSHIFT_PYTHON_IP’]
port = int(os.environ[‘OPENSHIFT_PYTHON_PORT’])
right port that is used in OpenShift? – Google 网上论坛 https://groups.google.com/forum/#!topic/python-tornado/rI8DJtmTop4

再提示地址被占用的话,是因为之前在测试哪个端口或者地址能用时被绑定了。所以暴力kill掉所有python进程重新弄就好
kill all python

注册一个账户后,从后台设置其为管理员
./chrole.py mqjsd2015@163.com nucsoft123

/usr/local/zend-server-6-php-5.4/bin

/usr/local/zend/bin

php /var/lib/openshift/55bc7c697628e12c0000010f/app-root/data/current/do.php

${OPENSHIFT_REPO_DIR}
cd ${OPENSHIFT_REPO_DIR}.openshift/cron/minutely

/var/lib/openshift/55bc7c697628e12c0000010f/app-root/runtime/repo/.openshift/cron/minutely

  • 浏览:253
  • 评论:0

发表新的回复