无Go项目或其他面板程序或非面板程序安装

menglicl   ·   发表于 8个月前   ·   多选小说

可以使用 Supervisor 进程守护来实现,宝塔面板无Go项目的参考下方截图填写数据

// 启动命令

nohup ./novelGin > run.log 2>&1 &



其他使用,请手动安装Supervisor  配置文件如下

directory             是程序根目录   

user                     是运行用户,根据你的环境自行配置

stdout_logfile      是运行时日志存放文件

stedrr_logfile       是运行时错误日志存放文件

其他保持不变

[program:novel]
command=nohup ./novelGin > run.log 2>&1 &
directory=/www/wwwroot/novel/    
autorestart=true
autostart=true
startsecs=3
startretries=3
stdout_logfile=/www/server/panel/plugin/supervisor/log/novel.out.log
stderr_logfile=/www/server/panel/plugin/supervisor/log/novel.err.log
stdout_logfile_maxbytes=2MB
stderr_logfile_maxbytes=2MB
user=www
priority=999
numprocs=1
process_name=%(program_name)s_%(process_num)02d


打赏我,让我更有动力~

0 条回复   |  直到 8个月前 | 833 次浏览
登录后才可发表内容
每日签到
0人
连续签到0天