其他分享
首页 > 其他分享> > telegram_api_server的supervisor安装

telegram_api_server的supervisor安装

作者:互联网

telegram_api_server的supervisor安装

1.安装:

yum install -y supervisor

2.配置:

进程管理配置文件放到

/etc/supervisor/conf.d/telegram_api_server.conf

Example:

[program:telegram_api_server]
command=/www/server/php/74/bin/php /www/wwwroot/TelegramApiServer/server.php --session=users/*
numprocs=1
directory=/www/wwwroot/TelegramApiServer/
autostart=true
autorestart=true
startretries=10
stdout_logfile=/www/wwwroot/TelegramApiServer/log/stdout.log
redirect_stderr=true

3.使用:

Load new config:

supervisorctl update

使用 View/control processes:

supervisorctl restart
supervisorctl start 
supervisorctl stop

标签:www,supervisor,telegram,supervisorctl,server,api
来源: https://blog.csdn.net/xingnang2008/article/details/115453953