1. mysql的配置文件:
[program:mysql]
command=/usr/local/tools/mysql/bin/mysqld --basedir=/usr/local/tools/mysql --datadir=/usr/local/tools/data/mysql --plugin-dir=/usr/local/tools/mysql/lib/plugin -- user=mysql --log-error=/var/log/mysqld.log --pid-file=/usr/local/tools/data/mysql/JD.jcloud.local.pid --socket=/usr/local/tools/data/mysql/mysql.sock
autostart=true
startretries=3
autorestart=true
user=root
redirect_stderr=true
stderr_logfile=/home/supervisor/log/mysql.err.log
stdout_logfile=/home/supervisor/log/mysql.out.log
2. nginx的配置文件:
[program:nginx]
command=nginx -g 'daemon off;'
user=root
autostart=true
autorestart=true
startsecs=3
redirect_stderr=true
stderr_logfile=/home/supervisor/log/nginx.err.log
stdout_logfile=/home/supervisor/log/nginx.out.log
3. redis的配置文件:
[program:redisd]
command=/usr/local/redis/bin/redis-server
autostart=true
startretries=3
autorestart=true
user=root
redirect_stderr=true
stderr_logfile=/home/supervisor/log/redis.err.log
stdout_logfile=/home/supervisor/log/redis.out.log