















测试系统 CentOS 7.6
安装宝塔
yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec
输入y回车确认安装
输入n回去取消开启SSL
安装环境
nginx1.18
mysql5.6
php5.6
开放端口:1:65535
关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
上传服务端sqsd.zip到服务器根目录/
解压
cd /
unzip sqsd.zip
给权限
chmod 777 -R /data
chmod 777 -R /www/wwwroot
设置数据库密码为:0987abc123
修改数据库文件IP 搜:61.171.65.229
\data\sql\h5.sql
\data\sql\globaldata.sql
导入数据库
cd /data
./sk
添加myadmin外网用户
mysql -uroot -p0987abc123
GRANT ALL PRIVILEGES ON *.* TO ‘myadmin’@’%’ IDENTIFIED BY ‘*%^OJDdas57@#$%’ WITH GRANT OPTION;
flush privileges;
quit
添加网站
IP:81端口
网站目录设置为
\www\wwwroot\game
修改服务端文件IP 搜:61.171.65.229
\www\wwwroot\game\login\getlogininfo.php
修改服务器时间:
date -s “2022-5-30 0:00:00”
启动游戏
cd /data/s1001
./start_server.sh
游戏地址:http://ip:81
GM后台:
http://ip:81/ht/cdk
GM码:syymw.com
http://ip:81/ht/pay
http://ip:81/ht/gm
————————————————————————————
本期教程到此结束。