构建教程
查找双核4G内存的系统Centos7.2配置要求。
宽带推荐安装宝塔yum install -y wget unzip gperf tools -devel &;& amphttp://download.bt.cn/install/install_6.0.sh & amp;& ampbash install.sh
安装ningx 1.14 MySQL -5.6 PHP 5.6宝塔
-数据库- root密码输入123456,提交宝塔然后导入压缩包里的数据库,不用创建。
-网站-添加站点输入IP根目录/www/wwwroot/
game.tar.gz
上传到网站目录给予许可,用宝塔解压s1.tar.gz。
上传到/root/s1目录获取权限,用宝塔将新的s1文件夹动态库文件解压到cd /usr/lib64/ldconfig。
yum安装gcc* -y
yum安装libtocmalloc* -y
修改三个xml文件root/server/sh configure _ center . XML configure _ cross.xmlgame/config.php数据库账号密码root 123456 game/index.html并修改index中的区域名称。
chmod -R 777
systemctl停止防火墙服务
systemctl禁用防火墙
启动游戏cd /root/s1/server/sh。
sh gamectl.sh startbg
sh gamectl.sh startbase
sh gamectl.sh centerbg
sh gamectl.sh crossbg
关闭游戏cd /root/s1/server/sh。
sh gamectl.sh停止
就这么简单
提取代码:5n0z