操作系统: Linux Centos7.x
搭建坏境:nginx1.16+mysql5.5+php7.2
开放端口:443 9101-9105
一、网站设置
1.添加伪静态
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
2.安装php扩展fileinfo
3.关闭防跨站,默认启动目录public
二、网站访问
1.前台
http://域名:443/enter.php?qq=97887526
特别说明:网站添加了防封防查机制,因此直接使用【http://域名:443】是不能访问的。
2.后台
http://域名:443/admin
账号:admin
密码:123456
三、启动命令
php /www/wwwroot/网站的目录/simplewind/GatewayWorker/start.php start -d
四、数据库配置
/simplewind/GatewayWorker/Applications/YourApp/Config/Db.php 替换数据库
/data/conf/database.php 替换数据库
五、禁用函数
/www/server/php/72/etc 搜索替换 disable_functions
替换disable_functions = passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_waitpid,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
六、微信公众号设置
/app/index/controller/WeixinController.php
—————————————-
$appid=”公众号id”;
$key=”公众号密钥”;
—————————————-
改成你微信公众号的,有两个地方要改,最好使用批量替换操作
七、其他设置
/网站目录/public/static/hongbao/js/main.js第184行 修改成自己的IP即可
八、云代付设置
app/common.php 第198行和206行,修改云代付ID秘钥
九、数据库修改
找到数据表cmf_option,打开修改site_info里的gameurl字段为你的网站域名
十、同一台服务器搭建多个红包网站,需要修改workerman的端口,
修改simplewind\GatewayWorker\Applications\YourApp 下面
start_businessworker.php
start_gateway.php
start_postpackage.php
start_register.php
修改里面的9101 9102 9103这几个端口,例如改成8101 8102 8103
![图片[1]-正版士兵红包扫雷完整完美运营修复卡顿-源码快车](http://47.94.12.254/wp-content/uploads/2025/12/202503311743419821904012.png)




暂无评论内容