【口袋觉醒宝可梦伪29SS暴龙神端】怀旧3D日系风格横版卡牌宠物小精灵回合手游-2023年6月12日最新打包Ubuntu源码详细架设教程-GM总运营管理后台-多功能GM授权后台-安卓苹果ISO双端版本!
上面视频教程链接如果失效,请在源码包内观看超清视频教程!
上面视频教程链接如果失效,请在源码包内观看超清视频教程!
上面视频教程链接如果失效,请在源码包内观看超清视频教程!
服务器版本为ubuntu server 18.04
1、执行设置密码
sudo passwd root
2、执行输入刚刚设置的密码
su root
安装环境
apt-get install expect subversion build-essential lib32stdc++6 gcc-multilib g++-multilib python-dev pypy-dev gdb python2.7-dbg libcurl4-openssl-dev graphviz openssl libssl-dev swig gawk iotop lsof iftop ifstat iptraf htop dstat iotop ltrace strace sysstat bmon nethogs silversearcher-ag libsasl2-2 sasl2-bin libsasl2-modules python-setuptools luajit curl wget unzip python-pipapt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
echo “deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 main” | tee /etc/apt/sources.list.d/mongodb-org-3.6.list
安装宝塔:
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh
输入y回车确认安装
输入n回车取消开启SSL安装环境
Nginx 1.18
MySQL 5.6
Php 7.1内存不够的-软件商店-系统工具-安装linux工具箱-增加虚拟内存
宝塔-安全-放行端口:1:65535
关闭防火墙
sudo ufw disable上传服务端kdjx.tar.gz到服务器/home/ubuntu文件夹
解压
cd /home/ubuntu
tar -zxvf kdjx.tar.gz安装芒果数据库
sudo apt-get updatemv /home/ubuntu/mongodb.tar.gz /
cd /
tar -zxvf mongodb.tar.gzapt-get install mongodb-org=3.6.12 mongodb-org-server=3.6.12 mongodb-org-shell=3.6.12 mongodb-org-mongos=3.6.12 mongodb-org-tools=3.6.12
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==2.6
——————–移动文件目录——————————–
sudo mv /home/ubuntu/default /etc/nginx/sites-available
sudo mv /home/ubuntu/pokemon_server_test.tar.gz /mnt
sudo mv /home/ubuntu/game.tar.gz /www/wwwroot
—————————-解压文件————————-
cd /mnt
tar -zxvf pokemon_server_test.tar.gzcd /www/wwwroot
tar -zxvf game.tar.gz重新加载nginx
nginx -s reload给予权限
chmod 755 -R /mnt
chmod 777 -R /www/wwwroot/——————————–修改服务端IP————————————–二选一———————–
10、修改IP把后面的ip换成你自己的,然后执行
find /mnt -type f -name ‘*.py’ | xargs sed -i ‘s/www.syymw.net/123.207.42.5/g’
find /mnt -type f -name ‘*.json’ | xargs sed -i ‘s/www.syymw.net/123.207.42.5/g’
find /mnt -type f -name ‘*.plist’ | xargs sed -i ‘s/www.syymw.net/123.207.42.5/g’
find /www -type f -name ‘*.plist’ | xargs sed -i ‘s/www.syymw.net/123.207.42.5/g’修改服务端 搜:www.syymw.com
/www/wwwroot/game/pokemon/patch/1028/res/version.plist
/www/wwwroot/game/pokemon/patch/768/res/version.plist
/www/wwwroot/game/pokemon/patch/789/res/version.plist
/mnt/pokemon/release/login/conf/dev/serv.json
/mnt/pokemon/release/login/conf/serv.json
/mnt/pokemon/release/login/defines.json
/mnt/pokemon/release/game_defines.py
/mnt/pokemon/release/payment_defines.py
——————————————————————————————————-
查看md5和获取文件size
md5sum /www/wwwroot/game/pokemon/patch/1028/res/version.plist # 复制输出的md5码
ls -l /www/wwwroot/game/pokemon/patch/1028/res/version.plist # 获取文件size大小值修改服务端文件
/mnt/pokemon/release/login/patch/cn/1028.json # 将version.plist的md5码和size更新一下并保存退出ecd552021de694b3d011ee9cb6607ffc
993
创建网站:
IP:81
网站目录:/www/wwwroot/game/启动游戏
cd /mnt/pokemon/deploy_devrm supervisor.sock
supervisord -c supervisord.conf
supervisorctl start all
supervisorctl status
小内存 手动启动方式————————-
cd /mnt/pokemon/deploy_dev
rm supervisor.sock
supervisord -c supervisord.confsupervisorctl start nsqd
supervisorctl start nsqadmin
supervisorctl start nsqlookupd
supervisorctl start account_db_server
supervisorctl start storage_server
supervisorctl start disable_word_check_server
supervisorctl start pvp_serversupervisorctl start anti_cheat_server
supervisorctl start payment_server
supervisorctl start crash_platform_server
supervisorctl start gm_server
supervisorctl start login_server
supervisorctl start game_mongodb
supervisorctl start game_serversupervisorctl start account_db_server
supervisorctl start storage_server关闭游戏:
supervisorctl reload
客户端修改:
安卓
\assets\res\version.plist苹果
\Payload\MyLuaGame.app\res\version.plist后台地址
管理后台:http://IP:39981/login
账号:admin
密码:qq123456..邮件发送格式:{“指令”:数量}
授权GM后台:
http://IP:81/gm/gm.php
GM码:syymw.com玩家后台:
http://IP:81/gm/
GM码:syymw.comPS:
大区名字
mnt/pokemon/release/login/conf/serv.json公告
mnt/pokemon/release/login/conf/cn/notice.json游戏正常启动示列
root@VM-4-17-ubuntu:/mnt/pokemon/deploy_dev# supervisorctl status
account_db_server RUNNING pid 4443, uptime 0:12:26
crash_platform_server EXITED Aug 10 07:28 PM
disable_word_check_server RUNNING pid 4445, uptime 0:12:26
game_mongodb RUNNING pid 4442, uptime 0:12:26
game_server RUNNING pid 4448, uptime 0:12:26
gm_server RUNNING pid 4450, uptime 0:12:26
login_server RUNNING pid 4451, uptime 0:12:26
nsqadmin RUNNING pid 4440, uptime 0:12:26
nsqd RUNNING pid 4439, uptime 0:12:26
nsqlookupd RUNNING pid 4441, uptime 0:12:26
payment_server RUNNING pid 4447, uptime 0:12:26
pvp_server RUNNING pid 4446, uptime 0:12:26
storage_server RUNNING pid 4444, uptime 0:12:26
这样才算正常。。。。。文件内的编辑指令
1.编辑:按下i,进入编辑模式
2.返回命令模式:按下 Esc,返回命令模式
3.在命令模式下,按下 :wq!,保存并退出
4.退出, 按下 :q,退出
5.强制退出,按下 :q!,强制退出
6.保存,按下 :w,保存
7.保存并退出,按下 :wq,保存
8.强制保存并退出,按下 :wq!,保存————————————————————————————
本期教程到此结束。
暂无评论内容