當(dāng)前位置:
首頁(yè) >
在ubuntu16安装supervisor 并 启动 .net core.
發(fā)布時(shí)間:2025/3/20
39
豆豆
生活随笔
收集整理的這篇文章主要介紹了
在ubuntu16安装supervisor 并 启动 .net core.
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1. 安裝supervisor
apt-get install supervisor2.新建supervisor配置文件。使用以下命令在linux 命令行
echo_supervisord_conf > /etc/supervisord.conf?
3. 修改supervisor配置文件
?
vim /etc/supervisord.conf移至文件內(nèi)容結(jié)尾supervisord.conf。加include,指定啟動(dòng)時(shí),需要啟動(dòng)的程序。
[include] files = /etc/supervisor/conf.d/*.conf?
3. 新增.net core 啟動(dòng)的配置文件
vim /etc/supervisor/conf.d/hwappService.conf然后填寫以下內(nèi)容:
[program:hwappService] command=dotnet /root/data/example/hwapp/bin/Debug/netcoreapp1.1/hwapp.dll //要執(zhí)行的命令 directory=/root/data/example/hwapp/bin/Debug/netcoreapp1.1/ //dll所在的文件夾 autostart=true autorestart=true stderr_logfile=/var/log/sampleMicroService.err.log //錯(cuò)誤日志 stdout_logfile=/var/log/sampleMicroService.out.log //輸出日志 user=root //用戶 stopsignal=INT?
備注:linux中 ~指的是 /user。如果不清楚~是啥。可以在linux是用echo ~ 打印出來(lái)。
?
總結(jié)
以上是生活随笔為你收集整理的在ubuntu16安装supervisor 并 启动 .net core.的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Xcode8 消除部分警告
- 下一篇: ubuntu 13.04 安装 GRUB