【放开那三国H5】手游 一键即玩服务端+手工外网端+图文教程
0.安装CENTOS 7以上系统并关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
1.安装宝塔 (Nginx1.12 mysql5.6 php5.4自行宝塔里安装)
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
2.设置数据库密码为:gudanboke
mysql -u root -pgudanboke
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY 'gudanboke' WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'gudanboke' WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'gudanboke' WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit
宝塔-安全-设置放行1:65535
宝塔--mysql5.6设置--配置修改-第24行按回车键-第25行加入
lower_case_table_names =1
保存--重启数据库
导入数据库admin.sql
3.上传服务端到根目录下解压并设置权限
tar -zxvf dcsg.tar.gz
chmod -R 777 /dcsg/
新建网站
上传web.tar.gz到网站目录,web.tar.gz自行解压到你的网站目录下!
4.服务端IP修改:把以下路径文件里面的192.168.200.129修改成你的外网IP
dcsg\server\sh\configure.xml
dcsg\server\sh\configure_center.xml
dcsg\server\sh\configure_cross.xml
网站:game\index.html
5.启动关闭
启动:
cd /dcsg/server/sh
sh gamectl.sh startall
关闭:
cd /dcsg/server/sh
sh gamectl.sh stopall
【放开那三国H5】手游 一键即玩服务端+手工外网端+图文教程
【放开那三国H5】手游 一键即玩服务端+手工外网端+图文教程
【放开那三国H5】手游 一键即玩服务端+手工外网端+图文教程
|