zoukankan      html  css  js  c++  java
  • supervisor 安装及基本使用

    1、安装

    yum install supervisor  

    2、检查版本

    supervisord --version

    3、设为开机启动

    systemctl enable supervisord.service

    4、启动服务

    systemctl start supervisord 

    5、查看服务状态

    systemctl status supervisord

    6、编辑文件 (serverFront.ini文件名随便取)

    vim /etc/supervisord.d/serverFront.ini

    7、配置文件如下

    [program:WebServerFront] #WebServerFront是给服务取一个名字
    command=/usr/bin/dotnet /home/test/Web/netcoreapp3.1/ZXIT.YDJW.WebServerFront.dll    #项目可执行文件路径
    directory=/home/test/Web/netcoreapp3.1   #项目文件所在文件夹位置
    autostart=true  #是否自动启动
    autorestart=true #是否自动重启

    8、启用网页及修改配置 修改以下文件

    vim  /etc/supervisord.conf

    9、配置如下(主要是把注释去掉)

    [inet_http_server]         ; inet (TCP) server disabled by default
    port=*:9001        ; (ip_address:port specifier, *:port for all iface)
    username=user              ; (default is no username (open server))
    password=123               ; (default is no password (open server))







     [include]
     files = supervisord.d/*.ini

    常用基本命令

    systemctl start supervisord   # 启动
    systemctl stop supervisord    # 停止
    systemctl status supervisord  #查看服务状态
    supervisorctl reload          #重新加载配置文件

  • 相关阅读:
    前端启动摄像头的API
    落谷训练---
    树的遍历 (和) 玩转二叉树 的总结博客
    L2-010 排座位 (并查集)
    最长回文(manacher模板)
    L2-006 树的遍历
    面试题5:从尾到头打印链表
    面试题4:替换空格
    面试题3:二维数组中的查找
    poj 1511(spfa)
  • 原文地址:https://www.cnblogs.com/majiabin/p/15514292.html
Copyright © 2011-2022 走看看