解压密码:
您所在的用户组暂无权查看,请登录后查看。
影忍者之王者之战 Linux 搭建教程
测试系统:CentOS 7.6 4h8g
yum -y update && yum -y upgrade
安装宝塔:
yum install -y wget && wget -O install.sh <a href="https://download.bt.cn/install/install_6.0.sh" target="_blank">https://download.bt.cn/install/install_6.0.sh</a> && sh install.sh ed8484bec
输入y回车确认安装
安装环境
NG1.22
Mysql5.6
php5.6(安装redis扩展)
redis7.2
宝塔放行端口:1-65535
关闭防火墙:
systemctl stop firewalld.service
systemctl disable firewalld.service
上传服务端kdjx.zip到服务器根目录/:
解压:
cd /
unzip hy.zip #根据你上传的名字修改
遇到提示输入大写A回车
给权限:
chmod -R 777 /mnt
chmod -R 777 /root
chmod -R 777 /www/wwwroot
安装环境:
yum install epel-release
yum install -y supervisor
systemctl enable supervisord
yum install -y expect
yum install -y subversion
yum install python-devel-y
yum install pypy-devel -y
yum install gdb -y
yum install libcurl4-openssl-dev -y
yum install graphviz -y
yum install openssl -y
安装mongodb
cd /opt/module
tar -zxvf mongodb_centos.tgz
mv mongodb-linux-x86_64-rhel70-3.6.23 mongodb
修改/etc/profile在最后面增加:
#MONGODB_HOME
export MONGODB_HOME=/opt/module/mongodb
export PATH=$PATH:$MONGODB_HOME/bin
使其生效
source /etc/profile
sleep 2
. /etc/profile
安装 pip 并安装py支持库
cd /mnt/pokemon_server_tool/
python get-pip.py
rm -rf /usr/lib/python2.7/dist-packages/OpenSSL
rm -rf /usr/lib/python2.7/dist-packages/pyOpenSSL-0.15.1.egg-info
pip install cython six lz4==0.8.2 numpy==1.16.0 xlrd xdot rpdb psutil fabric==1.7.3 pycurl pycrypto M2Crypto==0.36.0 objgraph msgpack-python backports.ssl-match-hostname Markdown toro pymongo pyrasite pyopenssl ThinkingDataSdk==1.4.0
pip install tornado==4.4.2
pip install Supervisor==3.3.0
pip install cryptography
验证安装结果
pip install msgpack-python
只要没出红字就说明安装成功了
单独给权限
chmod 755 -R /www/wwwroot/web/pokemon/patch
修改服务端文件IP: 替换:124.223.187.70
\mnt\pokemon\release\login\conf\dev\serv.json
\mnt\pokemon\release\login\conf\serv.json
\mnt\pokemon\release\login\defines.json
\mnt\pokemon\release\payment_defines.py
\mnt\pokemon\release\game_defines.py
\mnt\pokemon\deploy_dev\supervisord.dir\disable_word_check_server.ini
\www\wwwroot\web\pokemon\patch\2\res\version.plist
\www\wwwroot\web\pokemon\patch\2\src\app.game_app
\www\wwwroot\web\pokemon\patch\2\src\app.views.login.view
\www\wwwroot\web\dl\public\layuiAdmin\modules\modules\agency\dictionary\dictionary_list.js
\www\wwwroot\web\dl\public\layuiAdmin\modules\agency\dictionary\dictionary_list.js
\www\wwwroot\web\dl\encryption\PlayersPay.php
\www\wwwroot\web\dl\application\frame_admin_api\controller\Pay.php
查看文件MD5值
md5sum /www/wwwroot/web/pokemon/patch/2/res/version.plist
md5sum /www/wwwroot/web/pokemon/patch/2/src/app.game_app
md5sum /www/wwwroot/web/pokemon/patch/2/src/app.views.login.view
获取文件size
ls -l /www/wwwroot/web/pokemon/patch/2/res/version.plist
ls -l /www/wwwroot/web/pokemon/patch/2/src/app.game_app
ls -l /www/wwwroot/web/pokemon/patch/2/src/app.views.login.view
修改文件的MD5值和大小值
/mnt/pokemon/release/login/patch/cn/2.json
将version.plist的md5码和size改成上面获取的
将app.game_app的md5码和size改成上面获取的
将app.views.login.view的md5码和size改成上面获取的
创建网站:
IP:81
目录指向:\www\wwwroot\90gm.com
127.0.0.2:82
目录:/www/wwwroot/pay
127.0.0.3:83
目录:/www/wwwroot/sdk
127.0.0.4:84
目录:/www/wwwroot/dl
运行目录:/public
伪静态:
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
设置数据库密码为:wch123.com
导入数据库:
cd /opt
./sk
启动游戏:
cd /mnt/pokemon/deploy_dev
rm supervisor.sock
supervisord -c supervisord.conf
supervisorctl start all
supervisorctl status
客户端修改
安卓:
\assets\res\version.plist 搜索106.54.39.6 修改成你自己的服务器IP
苹果:
/paylod/MyLuaGame.app/res/version.plist 搜索106.54.39.6 修改成你自己的服务器IP
代理后台:
http://IP:84
账号:admin
密码:123123
注册地址:
http://IP:84/admin_login/login_account/player?agency_user_id=2&game_type=2
GM授权后台:
http://IP:81/gm/gm.php
GM码:123123
用户后台 http://IP:81/gm/
运营后台:http://IP:39081
账号admin 密码qq123456..
ps:
修改你的易支付配置:/www/wwwroot/pay/SDK/lib/epay.config.php
修改游戏区名:
\mnt\pokemon\release\login\conf\serv.json
公告修改:
\mnt\pokemon\release\login\conf\notice.json
app_defines.lua 渠道显示 (就是修改区前面的名字)
\mnt\pokemon\release\anti_cheat\game_scripts\application\src\app\defines\app_defines.lua
/mnt/pokemon/deploy_dev/game_db
删除这目录下的所有文件,就删档了
|
评分
-
查看全部评分
|