嘎嘎快充php版服务端部署配置注意玉阳软件

整站https/wss,运行目录public,配置伪静态

1、Supervisor部署服务,建议www用户启动,一个进程,建议带上php命令的路径(多PHP版本重启服务器可能自动重启失败)

云快充服务(可选)php think cqrs start

单车铁塔服务(可选)php think lqrs start

定时任务 (必须部署)php think timer start

默认队列(必须部署)php think queue:listen --queue

订阅消息(可选)php think queue:listen --queue wxamsg

互联互通 (可选)php think queue:listen --queue lian

支付 (必须部署)php think queue:listen --queue pay

短信(可选)php think queue:listen --queue sms

websocket(可选)php think wbt start (配置/wss结尾的nginx代理实现wss链接)

打开nginx在http段中最后一行添加

php 复制代码
upstream gaga {
 	server 127.0.0.1:18382;# websocket服务地址
}

打开站点配置在server段中最后一行添加

php 复制代码
  location /wss {
      proxy_pass http://gaga;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "Upgrade";
      proxy_connect_timeout 5s;
      proxy_read_timeout 60000s;
      proxy_send_timeout 60000s;
}

2、GatewayWorker服务地址在SASS平台端后台设置(https://域名/admin)

3、GatewayWorker registerAddress在config目录gatewayworker.php文件中配置

4、需要配置伪静态

5、需要安装PHP扩展redis、fileinfo、event

6、需要移除PHP禁用函数:proc_open、pcntl_alarm、pcntl_fork、pcntl_wait、pcntl_signal、pcntl_signal_dispatch

7、不需要cdn需要将config目录upload.php中的cdnurl填空,到SASS平台端后台关闭七牛云插件(https://域名/admin)

8、注意给TCP服务端口号对外开放,试用telnet IP 端口 命令测试是否服务可用

9、config.php、database.php、config目录里面的配置文件,关于redis、数据库要配置下

10、保证整站代码755权限,否则出现404.如果服务以root用户运行,可能会导致权限问题,所以建议服务以www用户用户启动

相关推荐
ServBay1 天前
告别面条代码,PSL 5.0 重构 PHP 性能与安全天花板
后端·php
JaguarJack4 天前
FrankenPHP 原生支持 Windows 了
后端·php·服务端
BingoGo4 天前
FrankenPHP 原生支持 Windows 了
后端·php
JaguarJack5 天前
PHP 的异步编程 该怎么选择
后端·php·服务端
BingoGo5 天前
PHP 的异步编程 该怎么选择
后端·php
JaguarJack5 天前
为什么 PHP 闭包要加 static?
后端·php·服务端
ServBay6 天前
垃圾堆里编码?真的不要怪 PHP 不行
后端·php
用户962377954487 天前
CTF 伪协议
php
BingoGo9 天前
当你的 PHP 应用的 API 没有限流时会发生什么?
后端·php
JaguarJack9 天前
当你的 PHP 应用的 API 没有限流时会发生什么?
后端·php·服务端