[Dragon Ball Awakening] Latest arrangement of Linux manual server + rare card mobile game CDK background + video tutorial
Building instructions:
Warm reminder: No matter what is built, the server must install the required environment, close the firewall, and open all ports.
Close the server firewall and open all ports. Refer to Baidu
Dragon Ball Linux setup tutorial
Server system: centos7.6
Just install Pagoda and run the command directly.
yum install -y wget wget -O install.sh http://download.bt.cn/install/install_6.0.sh sh install.sh
Build environment:
nginx 1.18
MySQL 5.6
PHP 7.0 Here is 7.0
1. Close the firewall and open ports
Pagoda release port: 1:65535
Turn off firewall
systemctl start firewalld
systemctl disable firewalld
2. IP modification
Since there are many things that need to be changed, directly decompress them locally and use notepad++ to modify 192.168.200.129.
I have replaced 644 places here
After modification, package it as lz.zip (name whatever you like)
3. Upload lz.zip to the server root directory (the root directory is not the root directory!!!)
Unzip lz.zip
cd /
unzip lz.zip
PS: Enter A when prompted and press Enter to continue.
Grant 777 permissions
chmod -R 777 /data
4. Environment configuration
Install erl
cd /usr/lib tar -zxvf erl.tgz
make it effective
source /etc/profile
Install screen
yum install -y screen
The last pagoda panel - restart NG
5. Set the database password to: Android (set directly in the Pagoda)
Enter the command to import the database
cd /data
./sk
Database creation is completed. You can check whether the creation is successful through the pagoda. (Database - click Get from Server to get 2, which is correct)
6. Install the node: # The first server is cross-server # Open several areas and install several. If you only open one, install sszg_symlf_1 separately. It depends on you.
/data/zone/sszg_center_6/ctl.sh install
/data/zone/sszg_symlf_1/ctl.sh install
/data/zone/sszg_symlf_2/ctl.sh install
/data/zone/sszg_symlf_3/ctl.sh install
/data/zone/sszg_symlf_4/ctl.sh install
/data/zone/sszg_symlf_5/ctl.sh install
/data/zone/sszg_symlf_6/ctl.sh install
This is enough to consider the server side. Let’s take a look at the client side.
7. Start the game service
First enter the command: screen
/data/zone/sszg_center_6/ctl.sh start
/data/zone/sszg_symlf_1/ctl.sh start
/data/zone/sszg_symlf_2/ctl.sh start
/data/zone/sszg_symlf_3/ctl.sh start
/data/zone/sszg_symlf_4/ctl.sh start
After startup, you can pass
Port view command netstat -lntp
Just see this one in area 9000 9001
9002 District 2
9003 Phase III
8. Client modification (client default address 192.168.200.129)
Android
assetssrcconfig_demo.luac
assetssrcgameloginviewuser_panel.lua
Here we take Android as an example
Decompile the client (ApkToolAid is used here)
I have compiled it before so I won’t repeat it.
then find
config_demo.luac one place
user_panel.lua two places
Change the IP inside to your actual IP
Compile it back after all modifications.
Compilation will not be demonstrated.
Try starting it below
Can log in normally
alright. This concludes this tutorial.
Good luck to you. . . .
Do other research on your own. . .
PS:
Briefly introduce the use of GM backend
http://ip:804/ht/gz.php Authorization code: ******
Generate CDK: http://ip:804/ht/cdk.php Authorization code: *********
Activate CDK: http://ip:804/ht/pay.php
PS:
1.
Game pop-up announcement modification address: /data/gonggao.php
Game area name modification address: /data/dev_www/web/www/api/role.php
2. Optimization tutorial (you don’t have to do anything below)
Pagoda Project Mission
find /data/zone -name "*.log" -exec rm -rf {} ;
rm -rf /data/zone/sszg_symlf_1/screenlog.0
rm -rf /data/zone/sszg_symlf_2/screenlog.0
rm -rf /data/zone/sszg_symlf_3/screenlog.0
rm -rf /data/zone/sszg_symlf_4/screenlog.0
Remember to turn off database logs
Collection of game setup peripheral tools:
Link: https://pan.baidu.com/s/1tDZQgJCYUM-3fT-OJeJyLw
Extraction code: 6rsp