Ask the game private server setup + detailed construction tutorial + extranet tutorial

Construction conditions:
1. One server,
2. Download server


Construction tutorial:
1. Install the pagoda first
. 2. Release the corresponding ports of the security group.
The specific ports to be released are: 3306, 888, 8888, 5000, 8101, 8110, 8120, 8160-8168 (this is the range of 8160 is the first line, in order analogy)


3. Install the database and configure the environment
Log in to the Pagoda panel, select the environment to be installed in the pop-up box on the homepage, the third one does not need to be selected, among which mysql is changed to 5.1, phpmyadmin is changed to 4.0, and then choose to compile and install. Wait for about 30-50 minutes for the automatic installation to end


4. Configure the database
①, set the password of the super user (root) of the database, and add the root account that allows remote access
②, use the software management page of the pagoda panel, reload the mysql service configuration, and make the remote access we added take effect


5. Start deploying game data
①. For the first time, use N11 to connect to the mysql database of our server (choose utf8 for the connection code), execute the all.sql file to create the database and basic data required by the game ②
, disconnect the database connection, and set The database connection code is 936, and then reconnect, and save the dl_adb_all database as a sql file (structure and data)
③. Use n++ to edit the dl_adb_all.sql file we saved. The specific operation is to replace all the external network ip in it with our own If you need to change the district name, replace all the districts in it with the district name you want
④, use n11 to delete the table in the dl_adb.all database, and then run the dl_adb_all.sql file we saved for Rebuild table structure and data


6. Deploy server-side files
1. Configure server-side files, modify the information in the ini configuration file under the aaa ccs csa dba directory
① Modify the database-related IP to 127.0.0.1, and modify the address of ***_daili to the server’s IP
② Modify The data password is the database password we set
2. Copy the line driver file rungs (copy a few if you want to set up several lines), copy the gs1.ini file in the gs/gs directory (copy a few for the same lines)
① Modify the ip in gs1.ini to the server IP
② Modify the line name in gs*.ini Ask yourself the line name set in the database


7. Install the gateway
1. Start to install net core, five fixed commands:


sudo rpm --import
sudo sh -c 'echo -e' [packages-microsoft-com-prod]
name=packages-microsoft-com-prod
baseurl=https://packages.microsoft.com/yumrepos/microsoft-rhel7.3 -prod
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc”>/etc/yum.repos.d/dotnetdev.repo'
sudo yum update
sudo yum install libunwind libicu
sudo yum install dotnet-runtime-2.0.7
2. Upload the wangguan file to the home directory of the server and set 0777 permission
chmod-R 777/home/
3. Start the gateway command:
cd /home/wangguan
nohup dotnet WDserver.dll
4. Enter hppt://your ip:5000 login gateway background

8. Start the game and gateway (reboot the server first, the restart command is reboot)
cd/home/wendao/1
./1
cd/home/wendao/aaa
./runaaa
cd/home/wendao/dba
./rundba
cd/home/wendao/ccs
./runccs
cd/home/wendao/csa
./runcsa
cd/home/wendao/gs
./rungs1
cd/home/wendao/gs
./rungs2
cd/home/wendao/gs
./rungs3
cd /home/wendao/gs
./rungs4
cd /home/wangguan
nohup dotnet WDserver.dll

9. After starting the game and the gateway, you can close the command window after the game lines are all run. Now you can play to your heart's content

 

Guess you like

Origin blog.csdn.net/chiwang_andy/article/details/130638526