telegram_api_server的supervisor安装
弄好后发现宝塔软件里可以安装。。。
详见:https://www.daniao.org/7578.html
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