HttpRunnerManager的部署记录
HttpRunner/HttpRunnerManager
部署总手册:https://github.com/HttpRunner/HttpRunnerManager
mysql5.7
安装手册:https://dev.mysql.com/doc/refman/8.0/en/linux-installation-yum-repo.html#yum-repo-installing-mysql
如果使用最新的mysql8.0,执行pip install -r requirements.txt 安装工程所依赖的库文件时会报gcc错误,暂时没搞定 所以弃坑,换成5.7
rabbitmq消息中间件
安装手册:http://blog.51cto.com/4925054/2095249
此处可直接用systemctl enable rabbitmq-server.service 加入自启动
安装uwsgi
pip install uwsgi
之后以就是总手册的步骤,收尾的操作是开启8000、5555端口,写一个HttpRunnerManager的启动脚本,在rc.d/rc.local中引用此脚本,需要给启动脚本和rc.local脚本执行权限
centos7中,如果安装python3,记得修改这两个文件中的python版本为:/usr/bin/python2.7
/usr/sbin/firewalld
/usr/bin/firewall-cmd
[root@localhost HttpRunnerManager]# cat startHttpRunnerManager.sh #!/bin/bash #此脚本是为了做HttpRunnerManager的开机自启动 nohup /usr/local/python3/bin/python3 /data/HttpRunnerManager/manage.py runserver 0.0.0.0:8000 & nohup /usr/local/python3/bin/python3 /data/HttpRunnerManager/manage.py celery -A HttpRunnerManager worker --loglevel=info & nohup /usr/local/python3/bin/python3 /data/HttpRunnerManager/manage.py celery beat --loglevel=info & nohup /usr/local/python3/bin/python3 /data/HttpRunnerManager/manage.py celery flower &
[root@localhost HttpRunnerManager]# tail -1f /etc/rc.d/rc.local /data/HttpRunnerManager/startHttpRunnerManager.sh