【兵临三国-已清档】站长推荐稀有3D横版卡牌三国策略回合手游-最新整理2024年2月27日打包Ubuntu服务端全套源码视频架设教程-完善GM运营后台-GM多功能授权后台-安卓版!
【兵临三国-已清档】站长推荐稀有3D横版卡牌三国策略回合手游-最新整理2024年2月27日打包Ubuntu服务端全套源码视频架设教程-完善GM运营后台-GM多功能授权后台-安卓版!






















服务器系统:Ubuntu Server 18.04.1 LTS 64位
-------------------------------------------------------------------------------------------------------------------
用户名为ubuntu
输入 sudo su 回车 获取管理员权限 ($是普通权限 #是管理员权限)
3、执行下面命令安装环境
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 ed8484bec安装环境
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 update5、上传mongodb.zip到/home/ubuntu/目录
上传之后,把mongodb.zip到解压到/根目录
mv /home/ubuntu/mongodb.tar.gz /
cd /
tar -zxvf mongodb.tar.gz6、安装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-infopip 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.67、上传default.zip和pokemon_server_test.tar.gz到/home/ubuntu/目录
上传之后
把pokemon_server_test.tar.gz解压到/mnt/
sudo mv /home/ubuntu/pokemon_server_test.tar.gz /mnt
cd /mnt
tar -zxvf pokemon_server_test.tar.gz把game.tar.gz 解压到 /www/wwwroot
sudo mv /home/ubuntu/game.tar.gz /www/wwwrootcd /www/wwwroot
tar -zxvf game.tar.gz8、重新加载nginx
nginx -s reload9、给予权限
chmod 755 -R /mnt/
chmod 777 -R /www/wwwroot/10、修改IP把后面的ip换成你自己的,然后执行---------------二选一---------
1------命令修改
find /mnt -type f -name '*.py' | xargs sed -i 's/www.ymui.cn/你的IP/g'
find /mnt -type f -name '*.json' | xargs sed -i 's/www.ymui.cn/你的IP/g'
find /www -type f -name '*.plist' | xargs sed -i 's/www.ymui.cn/你的IP/g'2-----手动修改
/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
此端没有热更无需修改MD5
此端没有热更无需修改MD5---------------------------------------------------------------------------------------------
创建网站:
IP:81
网站目录:/www/wwwroot/syymw.com/13、启动服务器
cd /mnt/pokemon/deploy_dev
rm supervisor.sock
supervisord -c supervisord.conf
supervisorctl start all ★启动服务端★
supervisorctl status ★查看启动状态★
重启服务端!命令是:supervisorctl reload关闭游戏:
supervisorctl reload
14、查看服务状态,如果有没启动的再次start all,如果启动多次crash_platform总是FATAL,请reboot
supervisorctl status管理后台:http://IP:39981/login
账号:admin
密码:syymw.com邮件发送格式:{"指令":数量}
授权GM后台:
http://IP:81/gm/gm.php
GM码:syymw.com.com玩家后台:
http://IP:81/gm/
GM码:syymw.com.com