According to the previous notes, here is a brief description of the installation steps, that is, configuring the configuration on a Linux server. For details, see the notes:
1. Install the easy_install Supervisor. // If no easy_install is available, install 2. /etc/supervisord_conf > /etc/supervisord.conf // No configuration file by default, we first generate 3. Conf [inet_http_server] port=*:9001 [include] files = /etc/supervisor.d/*.ini // The directory does not exist and needs to be created. Place the configuration of each process that needs to be listened on 4. Ini [program:horizon] process_name=%(program_name)s configure vim horizon Command = PHP/WWW /wwwroot/ artisan horizon autostart=true autorestart=true; User = forge redirect_stderr = true stdout_logfile = / WWW/below our project directory/storage/logs/horizon. The log/vim/laravel queue configuration laravel-work.ini [program:laravel-worker] process_name=%(program_name)s_%(process_num)02d command=php Artisan Queue :work database --sleep=3 --tries=3 autostart=true autorestart=true; User =forge numprocs=8 redirect_stderr=true stdout_logfile=/ WWW /wwwroot/ laravel-worker.log 5 [inet_http_server] block *:9001, ali cloud server, external access, we need to configure 6 in 'Ali cloud security group' and 'server iptables' respectively. Enable, stop, restart: https://www.load-page.com/manuals/web-server/chapter-tools/supervisor.html We use CentOS 7. 1 > edit service vim script/usr/lib/systemd/system/supervisord. Service # supervisord service for sysstemd (CentOS 7.0 +) # by ET - CS (https://github.com/ET-CS) [Unit] Description=Supervisor daemon [Service] Type=forking ExecStart=/usr/bin/supervisord -c /etc/supervisord.conf ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown ExecReload=/usr/bin/supervisorctl $OPTIONS Reload KillMode=process Restart=on-failure RestartSec=42s [Install] WantedBy=multi-user.target 2> Register service systemctl enable The systemctl stop container container is designed for handling the small container container container container container container container container. systemctl restart supervisord.serviceCopy the code