本文主要是介绍三端多人游戏冰雪搭建教程,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
---------------------------------------------------------------------------------------------------
CENTOS7系列
---------------------------------------------------------------------------------------------------
安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
---------------------------------------------------------------------------------------------------
环境安装
Nginx1.8
Mysql5.6
php5.6
---------------------------------------------------------------------------------------------------
关闭防火墙
systemctl start firewalld
systemctl disable firewalld
---------------------------------------------------------------------------------------------------
上传20166.tar.gz到根目录
cd / && tar -zxvf 20166.tar.gz
---------------------------------------------------------------------------------------------------
输入命令:
ln -sf /usr/lib64/mysql/libmysqlclient.so.18 /usr/lib64/libmysqlclient.so.16
---------------------------------------------------------------------------------------------------
创建网站
路径指向:/www/wwwroot/20166
---------------------------------------------------------------------------------------------------
chmod -R 777 /data
chmod -R 777 /www/wwwroot/20166
---------------------------------------------------------------------------------------------------
宝塔修改数据库密码为ZuoyouBL20166
---------------------------------------------------------------------------------------------------
放行端口:1:65535
---------------------------------------------------------------------------------------------------
开放权限:
mysql -uroot -pZuoyouBL20166
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'ZuoyouBL20166' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit
创建并导入数据库
zgame_name
zgame_command
zgame_amdb
web
mmo_account
log_s1
actor_cross1
actor_c1001
---------------------------------------------------------------------------------------------------
修改IP
data\Debug\LogicServer\CrossSourceServer.config
data\Debug\LogicServer\data\config\Cross\CrossSourceServer.config
data\Debug_cross\LogicServer\data\config\Cross\CrossSourceServer.config
/www/wwwroot/game/index.js
/www/wwwroot/game/index1.js
/www/wwwroot/game/GetServerList.php
---------------------------------------------------------------------------------------------------
/data/Debug/LogicServer/data/config/editionConf.config 第7行 开服天数 0无限制
/data/Debug/LogicServer/LogicServerLinux.txt 开服-合区日期
---------------------------------------------------------------------------------------------------
启动命令:
cd /data/build
./run.sh
cd /data/Debug
./run.sh
cd /data/Debug_cross
./run.sh
停止命令:
cd /data/build
./stop.sh
cd /data/Debug
./stop.sh
cd /data/Debug_cross
./stop.sh
---------------------------------------------------------------------------------------------------
游戏地址:http://IP
---------------------------------------------------------------------------------------------------
GM后台:http://IP/gm
GM码:123456
这篇关于三端多人游戏冰雪搭建教程的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!