• 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
  • 相关阅读:
    UVALive 6044(双连通分量的应用)
    hdu 3760(2次bfs求最短路)
    zoj 3370(二分+二分图染色)
    sgu 326(经典网络流构图)
    hdu 4291(矩阵+暴力求循环节)
    uva 11381(神奇的构图、最小费用最大流)
    hdu 4685(匹配+强连通分量)
    hdu 4496(并查集)
    hdu 4722(记忆化搜索)
    Linux安装Nginx使用负载均衡
  • 原文地址:https://www.cnblogs.com/jxdong116/p/10097759.html
Copyright © 2020-2023  润新知