
Upgrade the version and enable the member contribution exchange function. There was no setup during the installation process, but after checking the demonstration website, it was confirmed that everything was normal and there was no problem. Specific steps need to be studied by yourself.
The following is the detailed configuration:
System: CentOS 7.6
Install the treasure tower: yum install -y wget wget -O install.sh sh install.sh http://download.bt.cn/install/install_6.0.sh
Nginx version: 1.2
MySQL version: 8.0
PHP version: 7.2, with Redis extension installed
Manage with supervisor
Disable all PHP functions
The website running directory is located at/public
Install supervisor: yum -y install supervisor
Configure supervisor: /etc/supervisor.conf, change files = relative/directory/.ini to files = /www/wwwroot/ebite/supervisor/.conf
Start the supervisor with the following command: supervisor-c /etc/supervisor.conf
Restart the supervisor using the following command: supervisorctl restart all
Pseudo-static use of laravel5
Configure Nginx to forward websocket ports:
location /ws {
proxy_pass http://127.0.0.1:7272;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “Upgrade”;
proxy_set_header X-Real-IP $remote_addr;
rewrite /ws/(.*) /$1 break;
proxy_redirect off;
}
The IP address is 172.17.0.1
Common commands:
supervisorctl status
supervisorctl stop ispec
supervisorctl start ispec
supervisorctl restart ispec
supervisorctl reread
supervisorctl update
supervisorctl reload
Start the supervisor with the following command:
/usr/bin/python /usr/bin/supervisord -c /etc/supervisord.conf