【口袋觉醒伪28SS铁甲勇士端】站长推荐经典日系动漫卡通3D横版卡牌回合手游-2023年6月2日最新打包Ubuntu服务端源码视频架设教程-GM运营管理后台-GM授权后台-安卓苹果IOS双端版本!
【口袋觉醒伪28SS铁甲勇士端】站长推荐经典日系动漫卡通3D横版卡牌回合手游-2023年6月2日最新打包Ubuntu服务端源码视频架设教程-GM运营管理后台-GM授权后台-安卓苹果IOS双端版本!
上面视频教程链接如果失效,请在源码包内观看超清视频教程!
上面视频教程链接如果失效,请在源码包内观看超清视频教程!
上面视频教程链接如果失效,请在源码包内观看超清视频教程!
服务器版本为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 nginx 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 disable5、上传mongodb.zip到/home/ubuntu/目录
cd /
tar zxvf mongodb.tar.gz把mongodb.zip到解压到/
把default解压到/etc/nginx/sites-available/
把mnt.tar.gz解压到/mnt/
cd /etc/nginx/sites-available/
unzip default.zipcd /mnt/
tar zxvf mnt.tar.gzwww.zip 解压到/ 根目录下
安装mongodb
apt-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.12rm -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
重新加载nginx
nginx -s reload给予权限
chmod 755 -R /mnt
-------------------------------------------------------------------------------------------------
修改IP把后面的ip换成你自己的,然后执行
find /mnt -type f -name '*.py' | xargs sed -i 's/www.syymw.net/43.139.129.244/g'
find /mnt -type f -name '*.json' | xargs sed -i 's/www.syymw.net/43.139.129.244/g'
find /mnt -type f -name '*.plist' | xargs sed -i 's/www.syymw.net/43.139.129.244/g'或者
修改服务端 搜:www.syymw.com
/www/wwwroot/game/pokemon/patch/1022/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 /mnt/pokemon/patch/1022/res/version.plist # 复制输出的md5码
ls -l /mnt/pokemon/patch/1022/res/version.plist # 获取文件size大小值修改服务端文件
/mnt/pokemon/release/login/patch/cn/1022.json # 将version.plist的md5码和size更新一下并保存退出创建网站:
IP:82
网站目录:/www/wwwroot/syymw.com/启动游戏
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 status关闭游戏:
supervisorctl reload
---------------------------------------------------
如果提示没有启动命令请安装下面命令!yum install -y supervisor
---------------------------------------------------
13、启动服务器
cd /mnt/pokemon/deploy_dev
rm supervisor.sock
supervisord -c supervisord.conf
supervisorctl start all ★启动服务端★
supervisorctl status ★查看启动状态★
重启服务端!命令是:supervisorctl reload客户端修改:
安卓
\assets\res\version.plist苹果
\Payload\MyLuaGame.app\res\version.plist后台地址
管理后台:http://IP:39981/login
账号:admin
密码:qq123456..邮件发送格式:{"指令":数量}
授权GM后台:
http://IP:82/gm.php
GM码:syymw.com玩家后台:
http://IP:82/
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!,保存友情提示:如果是阿里云或者腾讯云架设 请注意端口是否开放。
(E-mail:1228689277@qq.com) 记住本站域名:www.syymw.net 站长:Q:1228689277