Centos7下部署.net core web api,反向代理使用的nginx. 需要supervisor来守护dotnet进程。
执行下面命令
supervisord -c /etc/supervisor/conf.d/你的配置文件名.conf
报错:
Error: .ini file does not include supervisord section
这是因为配置文件中必须有[supervisord],[supervisorctl]有这两个基本模块,默认创建的配置文件中不包含。
没有细看这两个模块该如何配置,具体信息请查阅官网http://supervisord.org/configuration.html#supervisord-section-settings
解决上面那个报错,只要把[supervisord],[supervisorctl]加入到配置文件中即可,暂时可以不填写具体配置内容,如下图。
![](https://img.haomeiwen.com/i13204054/04e77dab02c17dbd.png)
再次执行
supervisord -c /etc/supervisor/conf.d/你的配置文件名.conf
这次执行成功了,dotnet的进程已经开启,错误解决。
网友评论