Last active
February 19, 2020 05:44
-
-
Save zxx/924e0a34acc82712944b60a0e63fdd4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:mongo] | |
command=/usr/local/opt/mongodb-community/bin/mongod --config /usr/local/etc/mongod.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:mysql] | |
command = /usr/local/opt/mysql/bin/mysqld_safe --datadir=/usr/local/var/mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://www.inanzzz.com/index.php/post/v1mg/controlling-nginx-with-supervisor | |
[program:nginx] | |
command=/usr/local/opt/nginx/bin/nginx -c /usr/local/opt/nginx/nginx.conf -g "daemon off;" | |
autostart=true | |
autorestart=true | |
startretries=5 | |
numprocs=1 | |
startsecs=0 | |
process_name=%(program_name)s_%(process_num)02d | |
stderr_logfile=/var/log/supervisor/%(program_name)s_stderr.log | |
stderr_logfile_maxbytes=10MB | |
stdout_logfile=/var/log/supervisor/%(program_name)s_stdout.log | |
stdout_logfile_maxbytes=10MB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:redis] | |
command = /usr/local/opt/redis/bin/redis-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
supervisorctl status | |
supervisorctl reload | |
supervisorctl update | |
supervisorctl start nginx | |
supervisorctl stop nginx | |
supervisorctl restart nginx | |
supervisorctl tail -f nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nginx -g "daemon off;"