4015 发表于 2024-2-5 17:58:38

白娘子 架设教程


[*]需要的系统是
[*]CentOS 7.2
[*]
[*]
[*]★关闭防火墙
[*]systemctl stop firewalld.service
[*]systemctl disable firewalld.service
[*]
[*]1安装宝塔
[*]
[*]yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
[*]
[*]
[*]Nginx1.1.4
[*]php5.4
[*]
[*]mongodb 这个在软件管理
[*]
[*]mongodb安装好后复制下面的
[*]
[*]mongo
[*]use admin
[*]db.createUser({user:"root",pwd:"YXTxsaj22WSJ7wTG",roles:[{role:"root",db:"admin"}]})
[*]exit
[*]
[*]
[*]2.上传home.zip到根目录解压
[*]
[*]
[*]
[*]pip install DBUtils
[*]cd /home/pymongo-3.5.1
[*]python setup.py install
[*]
[*]pip install setuptools
[*]
[*]
[*]
[*]
[*]
[*]chmod -R 777 /home
[*]
[*]放全部端口 1:65535
[*]
[*]启动游戏
[*]cd /home/snake
[*]./all_start.sh
[*]
[*]关闭游戏
[*]pkill skynet
[*]
[*]客户端
[*]
[*]解包客户端里面的script,修改CServerPhoneCtrl.lua里面ID1001开头的就可以了,然后打包回去
[*]
[*]
[*]

复制代码
页: [1]
查看完整版本: 白娘子 架设教程