首页 新闻 会员 周边

Asp.Net Core Supervisor

0
悬赏园豆:20 [已解决问题] 解决于 2017-11-16 09:02

环境:Ubuntu 16.04.2     Core2.0

使用Supervisor 做守护进程时,error log输出内容如下。请问该如何处理?

supervisor: couldn't chdir to /home/site/pulish: ENOENT

 

配置信息如下:

[program:TestCore]
command=dotnet TestCore.dll
directory=/home/site/pulish
autostart=true
autorestart=true
stderr_logfile=/var/log/TestCore.err.log
stdout_logfile=/var/log/TestCore.out.log
environment=ASPNETCORE_ENVIRONMENT=Production
user=root
stopsignal=INT

问题补充:

在终端使用 dotnet TestCore.dll 是可以成功的

the boy、图样图森破的主页 the boy、图样图森破 | 初学一级 | 园豆:112
提问于:2017-11-15 23:54
< >
分享
最佳答案
0

路径/home/site/pulish中,pulish拼错了,应该是publish

另外,如果还是不能运行,需要把command=dotnet TestCore.dll改为command=dotnet /home/site/publish/TestCore.dll

收获园豆:20
dudu | 高人七级 |园豆:30994 | 2017-11-16 08:14

感谢园主大大,确实是拼写错误了。  尴尬~~~~~~~~~

the boy、图样图森破 | 园豆:112 (初学一级) | 2017-11-16 09:02
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册