【大话回合精品西游之封神西游】站长推荐经典Q萌回合手游-2023年9月14日最新打包Linux服务端源码视频架设教程-GM总运营管理后台-安卓苹果IOS双端版本!
【大话回合精品西游之封神西游】站长推荐经典Q萌回合手游-2023年9月14日最新打包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.7
PHP7.3宝塔开启端口:1:65535
关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service上传服务端jpxy.tar.gz到服务器根目录:/
解压
cd /
tar xvzf jpxy.tar.gz给权限
chmod -R 777 /home/xy-server
chmod -R 777 /opt
chmod -R 777 /www安装环境
cd /opt
tar xvzf environment.tar.gzln -s /opt/environment/pm2/bin/pm2 /usr/local/bin/pm2
修改配置/etc/profile在最后一行添加:
export PATH=$PATH:/opt/environment/node/bin
立即生效
source /etc/profile
安装PM2
npm install pm2
安装jdk
yum install java-1.8.0-openjdk.x86_64
修改配置/etc/profile在最后一行添加:
JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.322.b07-2.el8_5.x86_64
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME CLASSPATH PATH立即生效
source /etc/profile
设置数据库root密码为:123456
打开软件商店--已安装--MySQL设置--配置修改-在26行下面添加
lower_case_table_names=1
重载数据库配置
重启数据库导入数据库
cd /home
./sk创建网站
端口88
目录指向www/wwwroot/game
修改服务端IP
/home/xy-server/conf/GameConf.ts
/www/wwwroot/game/project.manifest
/www/wwwroot/game/version.manifest
启动命令:
cd /home/xy-server/
pm2 start dbserv.ts --time --interpreter /opt/environment/node/bin/ts-nodepm2 start gate.ts --time --interpreter /opt/environment/node/bin/ts-node
pm2 start game.ts --time --interpreter /opt/environment/node/bin/ts-node
停止命令
pm2 stop all启动后台
cd /home/rabbit
./rabbit nohup java -jar rabbit.jar >log.log 2>&1 &关闭后台
sudo fuser -k 9090/tcpsudo fuser -k 29631/tcp
后台地址:
http://IP:9091
账号:admin
密码:123456
进入网页后台修改IP
游戏配置-游戏配置-游戏地址改为:http://IP:9361
邀请码:12345