Journey to the West H5 Linux Setup Tutorial
Preparation tools:
Termux (Android)
Notepad++
SecureCRT
WinSCP
Install the 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:
CENTOS 7.2 or above system
Nginx1.15
mysql5.6
php5.4
Linux builds a game server! ".
Let's start building
1. Close the firewall and open the port
The mobile phone uses Termux to run or the computer uses the XShell command line tool to run the following command
systemctl stop firewalld.service
systemctl disable firewalld.service
Pagoda release port: 1:65535
2. Upload the game source code compressed package to the server/directory (upload according to the actual situation of the end, and some are uploaded to the root directory)
You can upload directly on Pagoda or use auxiliary tools such as WinSCP to upload
After uploading, unzip
Direct decompression does not need to execute the following command
cd /
tar zxvf xy.zip
Give root 777 permission after decompression (this is required)
chmod 777 -R /root
3. Set the database password to: hujiayucc.cn (set directly in the pagoda)
After the password is changed, use Termux to run or other command line tools to run the following command
cd
./sk
Create USER database end
4. Build a website and upload website data
Website directory settings \www\wwwroot\xy
===========================
5. IP modification
Modify and modify the IP in the following files to your own external network ip
The website directory is based on your actual website directory
\www\wwwroot\xy\index1.php
About line 243 and 270
=======================
At this point, the basic construction is completed, let's start it and see.
9. Start the game service
start command
cd /root/server/sh
./gamectl.sh startall
stop order
cd /root/server/sh
./gamectl.sh stopall
This concludes the tutorial.
PS:
GM background address:
http://your IP or domain name/gm account admin password hujiayucc.cn