剑舞龙城私服游戏搭建教程,剑舞龙城私服游戏怎么搭建?
系统: CentOS 7.2 64位本地更新最好5M以上的带宽,或者用CDN。
1.安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
安装 Nginx1.16、MySQL5.6、PHP5.6
关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
上传tt.ccoox.cn.zip到根目录
解压
cd /
unzip tt.ccoox.cn.zip
给权限
chmod -R 777 /jwlc
4.安装java
cd /root
rpm -ivh jdk-8u144-linux-x64.rpm
5.修改宝塔端口为5555
6.创建网站
域名或IP:81 指向目录 /jwlc/你的文件夹名
7.在宝塔-软件商店-MySQL 5.6-设置-配置修改中第26行添加lower_case_table_names=1 然后服务--重启MYSQL
修改数据库root密码为123456
创建并导入数据库(这个要等宝塔安装完mysql才可以操作慢慢等)
mysql -uroot -p123456
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY '123456' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION;
create database account;
create database cross;
(cross可能会出错,自己宝塔导入即可)
create database log_1;
create database login_1;
create database log_2;
create database login_2;
create database pay_1;
create database pay_2;
create database extgame1;
create database extgame2;
create database session1;
create database session2;
use account;
set names utf8;
source /root/sql/account.sql;
use cross;
set names utf8;
source /root/sql/cross.sql;
use login_1;
set names utf8;
source /root/sql/login_1.sql;
use login_2;
set names utf8;
source /root/sql/login_2.sql;
use extgame1;
set names utf8;
source /root/sql/extgame1.sql;
use extgame2;
set names utf8;
source /root/sql/extgame2.sql;
use log_1;
set names utf8;
source /root/sql/log_1.sql;
use log_2;
set names utf8;
source /root/sql/log_2.sql;
use pay_1;
set names utf8;
source /root/sql/pay_1.sql;
use pay_2;
set names utf8;
source /root/sql/pay_2.sql;
use session1;
set names utf8;
source /root/sql/session1.sql;
use session2;
set names utf8;
source /root/sql/session2.sql;
flush privileges;
exit 回车退出
如果导入出错可以自己导入
8.修改IP(替换43.226.158.140为你的IP)
/jwlc/LF/serverlist.xml
/jwlc/server1/config.xml
/jwlc/server1/serverlist.xml
/jwlc/server1/battleserverlist.xml
/jwlc/server2/config.xml
/jwlc/server2/serverlist.xml
/jwlc/server2/battleserverlist.xml
/jwlc/qcymwcn/getcfg.php
/jwlc/qcymwcn/getzones.php
/jwlc/qcymwcn/mine.php
/jwlc/qcymwcn/selectzone.php
解密证书 : 输入指令查看 MAC
ifconfig
MAC是 HWaddr 后面字符
解密以后 替换服务端证书
\jwlc\jwlc\LF
\jwlc\server1
\server1\PayTest
\jwlc\server2
\server2\PayTest
替换上面五个地方
10.启动和关闭
启动一区
cd /jwlc/server1 && ./start_debug.sh
启动二区
cd /jwlc/server2 && ./start_debug.sh
启动连服区
cd /jwlc/LF && ./start_debug.sh
关闭一区
cd /jwlc/server1 && ./stop_debug.sh
关闭二区
cd /jwlc/server2 && ./stop_debug.sh
关闭连服区
cd /jwlc/LF && ./stop_debug.sh
客户端修改:
安卓(替换43.226.158.140为你的IP) :
剑舞本地.apk\assets\bin\Data\Managed\Assembly-CSharp.dll
\smali\com\maiy\sdk\util\Constants.smali
苹果:
替换45.125.56.96为你的IP,12位IP限制
剑舞本地.ipa\Payload\jwlc.app\Data\Managed\Metadata\global-metadata.dat
替换 jwlc.aib9952.cn为你的15位域名或IP
剑舞本地.ipa\Payload\jzzh.app\jwlc
后台
http://IP:81/gm/ 玩家后台
http://IP:81/gm/gm.php 管理授权后台GM码:123456
跨服战场需要开服10天才可以
如果要测试 跨服功能 可以调整服务器时间 启动以后往后调
调整日期 date -s 2020/09/30
调整时间 date -s 22:00:00
剑舞龙城私服游戏源码下载
路过,学习下 每日一回领金币 看看撒发发发发 uuuuuuuuuuu 我是来刷分的,嘿嘿 你牛逼还是你牛逼 前排支持下分享 常回家看看看看 帮你顶下哈!!
页:
[1]
2