惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The GitHub Blog
The GitHub Blog
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Vercel News
Vercel News
腾讯CDC
博客园 - 聂微东
The Cloudflare Blog
F
Fortinet All Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
Last Week in AI
Last Week in AI
B
Blog

博客园 - 斌言

Claude Code + deepseek在Windows环境上的搭建教程 docker部署.NET6并挂载目录 unable to access 'https://github.com/langgenius/dify.git/': Failed to connect to github.com port 443 after 21111 ms: Could not connect to server .NET6 MVC 无刷新上传文件 docker快速搭建部署mqtt ubuntu安装smaba CentOS7.9安装Docker centos7.9 安装 openGauss 5.0.0 CentOS 7 yum安装MongoDB CentOS 7.4安装.NET6 react native SectionList组件实现多选 react-native-vector-icons 安装 apk文件查看指纹证书方法 server2008 安装mongodb WinForms 嵌入 Web服务 ASP.NET Core http请求内容过大, IIS服务器 返回 Request Too Long 解决方案 ASP.NET Core MVC中调用Json()时默认使用Newtonsoft.Json返回数据 react native android9 axios network error .NET Core3.1升级.NET5 oracle连接报错
supervisor 安装及基本使用
斌言 · 2021-11-05 · via 博客园 - 斌言

1、安装

2、检查版本

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          #重新加载配置文件