Supervisord是一款使用python实现的进程管理工具,在宝塔面板中可以直接安装使用,并有可视化管理功能,非常的好用,如题,本文主要说mysql守护进程的添加设置方法:
如图配置即可:
附上该子进程的配置文件:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[program:mysql] command=/www/server/mysql/bin/mysqld_safe directory=/www/server/mysql/bin/ autorestart=true startsecs=3 startretries=3 stdout_logfile=/www/server/panel/plugin/supervisor/log/mysql.out.log stderr_logfile=/www/server/panel/plugin/supervisor/log/mysql.err.log stdout_logfile_maxbytes=2MB stderr_logfile_maxbytes=2MB user=mysql priority=999 numprocs=1 process_name=%(program_name)s_%(process_num)02d |