CentOS7.6系统部署指南
【环境部署】
操作系统:CentOS 7.6
执行命令:
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
【核心组件配置】
WEB环境:
– Nginx 1.2
– PHP 7.2(需启用Redis扩展,解除全部禁用函数)
– MySQL 8.0
网站根目录:/public
【进程管理配置】
Supervisor安装:
yum -y install supervisor
配置文件路径:
/etc/supervisord.conf
修改项:
files = /www/wwwroot/ebite/supervisor/*.conf
进程管理命令:
supervisord -c /etc/supervisord.conf
supervisorctl restart all
supervisorctl status
supervisorctl stop/start/restart ispec
【WebSocket转发规则】
nginx配置片段:
location /ws {
proxy_pass http://127.0.0.1:7272;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “Upgrade”;
rewrite /ws/(.*) /$1 break;
}
【系统优化设置】
伪静态规则:laravel5
服务重启命令:
/usr/bin/python /usr/bin/supervisord -c /etc/supervisord.conf
本教程适用于生产环境部署,具体实施需结合实际情况调整参数配置。
解压密码: qq112233aa
暂无评论内容