全网精品资源一站下载!

热门搜索: 商城区块链理财小程序网站模板知识在线教育

区块链交易所源码,k线正常 全开源带vue源码 -带搭建安装教程

返回详情

修复更新升级版本,会员投稿互换的 ,没有搭建 忘记截图了 ,看过演示网站是正常没问题的。具体大家自己可研究

centos7.6


安装宝塔


Nginx 1.2 

mysql8.0 

PHP7.2 Redis扩展

supervisor

PHP禁用函数全部删除

网站运行目录/public


安装:supervisor

yum -y install supervisor


配置supervisor:

/etc/supervisord.conf

将files = relative/directory/*.ini改为files = /www/wwwroot/ebite/supervisor/*.conf


命令

supervisord -c /etc/supervisord.conf

supervisorctl restart all


伪静态:laravel5

nginx websocket端口转发配置:

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/(.*) /聯絡客服 break;

    proxy_redirect off;

}


172.17.0.1


常用命令

supervisorctl status

supervisorctl stop ispec

supervisorctl start ispec

supervisorctl restart ispec

supervisorctl reread 

supervisorctl update

supervisorctl reload


/usr/bin/python /usr/bin/supervisord -c /etc/supervisord.conf