【梦幻诛仙之无极梦诛13职业】站长推荐角色扮演类Q萌动作回合手游-2023年8月6日最新打包Linux服务端源码视频架设教程-多功能GM网页后台工具-安卓苹果IOS双端版本!
【梦幻诛仙之无极梦诛13职业】站长推荐角色扮演类Q萌动作回合手游-2023年8月6日最新打包Linux服务端源码视频架设教程-多功能GM网页后台工具-安卓苹果IOS双端版本!






























测试系统 centos 7.6
安装宝塔直接运行命令即可。
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
输入y回车确认安装
安装环境
nginx1.18
mysql5.6
php5.6宝塔放行端口:1-65535
为了安全考虑你也可以不关闭防火墙直接单独放行
关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service上传mhzx.zip到服务器根目录/(根目录不是root目录!!!!){使用WinSCP或其他工具上传数据}
上传好后,解压
cd /
unzip mhzx.zip给予 777权限
chmod -R 777 /home
chmod -R 777 /root
chmod -R 777 /www
chmod -R 777 /usr/bin/mz安装环境
cd /root
./jdk-6u21-linux-x64-rpm.bin修复运行库(出现8002错误)
cd /usr/lib64
ln -s libpcre.so.1.2.0 libpcre.so.0创建网站,端口88
网站目录指向:/www/wwwroot/game/宝塔设置数据库密码为:syymw.com
导入数据库
cd /root
./sk修改服务端IP
/home/mhzx/zdir/android/meta → servers.xml
/home/mhzx/zdir/android/meta → version.xml/home/mhzx/zdir/ios/meta → servers.xml
/home/mhzx/zdir/ios/meta → version.xml输入
mzqd
mz
gb
启动游戏
cd /home/mhzx/au
./start.shcd /home/mhzx/matcher
./start.shcd /home/mhzx/mhzx_4095/ghubd
./starthub.shcd /home/mhzx/mhzx_4095/
./run.shcd /home/mhzx/mhzx_4095/gs
./rungs.shcd /home/mhzx/zdir/android
./service.sh startcd /home/mhzx/zdir/ios
./service.sh start关闭游戏
killall gdeliverd
killall zdir_android
killall zdir_ios
killall ghubd
killall java
killall zlogd
killall logservice
killall glinkd
killall gs
启动后台
cd
nohup /root/jre1.8.0_181/bin/java -jar /root/gm.jar &关闭后台
cd
ps -ef | grep gm.jar | grep -v grep | awk '{print $2}' | xargs kill -9后台地址:IP:2023
查看后台地址:
/root/application-houtai.yml
后台提权去数据库houtai把user表里面的privilege设置到10就行了,然后重启后台。
客户端修改:
安卓客户端:
\assets\config\all_platform_config.xml
苹果客户端:
\Payload\mhzx.app\Data\Raw\config\all_platform_config.xml
PS:
1丶查看端口
netstat -lntp
3丶梦诛删档:
运行命令
rm -f /home/mhzx/logs/*.log
rm -rf /home/mhzx/au/xbackup
rm -rf /home/mhzx/au/xdb
rm -rf /home/mhzx/au/logs
rm -rf /home/mhzx/au/au.pid
rm -rf /home/mhzx/matcher/xbackup
rm -rf /home/mhzx/matcher/xdb
rm -rf /home/mhzx/matcher/logs
rm -rf /home/mhzx/matcher/matcher.pid
rm -rf /home/mhzx/mhzx_4095/uniqname/uqxbackup
rm -rf /home/mhzx/mhzx_4095/uniqname/uqxdb
rm -rf /home/mhzx/mhzx_4095/uniqname/uniqname.pid
rm -rf /home/mhzx/mhzx_4095/uniqname/uniqname.log
rm -rf /home/mhzx/mhzx_4095/gs/xbackup
rm -rf /home/mhzx/mhzx_4095/gs/xdb
rm -rf /home/mhzx/mhzx_4095/gdeliver/*.pid
rm -rf /home/mhzx/mhzx_4095/gdeliver/*.log
rm -rf /home/mhzx/mhzx_4095/ghubd/*.pid
rm -rf /home/mhzx/mhzx_4095/ghubd/*.log
rm -rf /home/mhzx/mhzx_4095/link/*.pid
rm -rf /home/mhzx/mhzx_4095/link/*.log
rm -rf /home/mhzx/mhzx_4095/logservice/*.pid
rm -rf /home/mhzx/mhzx_4095/logservice/*.log
rm -rf /home/mhzx/mhzx_4095/gs/*.pid
rm -rf /home/mhzx/mhzx_4095/gs/*.log
rm -rf /home/mhzx/zdir/android/*.pid
rm -rf /home/mhzx/zdir/android/logs
rm -rf /home/mhzx/zdir/ios/*.pid
rm -rf /home/mhzx/zdir/ios/logs关服后删档,删档后请把数据库删除重新导入
4丶本地验证修改
安卓:
smali\com\zulong\sdk\constant\HttpConstant.smali
iOS苹果:
.ipa\Payload\mhzx.app\mhzx
替换以下网址的永久验证
------------------------------------------------------------------------------------
本期教程到此结束。