Home > OS >  H5 god beast, yo-yo, cattle, cattle small day, cow, the supreme sky such as scaffolding tutorial
H5 god beast, yo-yo, cattle, cattle small day, cow, the supreme sky such as scaffolding tutorial

Time:10-06

A: preparation

A server, it is suggested that use ali cloud, a number of public notice is need service, registered less than rent also can contact me, if the right domain name for the record, if you are ali ali cloud cloud server needs to put on record domain name, if it is tencent tencent cloud cloud server needs to put on record domain name, if it is other server such as huawei cloud using ordinary record domain name can, do not suggest to buy baidu cloud because rarely see baidu cloud record domain name, get basic domain names for a few days was hanging off the table so as far as possible to buy that kind of easy to get the domain name on the market,

2: the server configuration

Server operating system installed centos 7.2/7.4 game adaptation is better, in addition to buy remember when writing your own password novice don't use the key to this kind of thing, server security groups need to add the port number to come in, need to add an extra 80888888 8 and a port range, the cheat tutorial examples with 6000/9000 of 6000 to 9000 (mean),

Download a xshell, open after installation, the newly built site input server IP address is the default root password input account when buying a server you fill in the password, login link up after entering the following command to install pagoda,

Yum install wget - y & amp; & Wget - O the sh http://download.bt.cn/install/install.sh & amp; & Sh the sh

Lose points after the enter key, a moment will appear below prompt, enter y remember is lowercase, uppercase, then press the return key,

According to the video server performance, a few minutes to half an hour to complete installation, after the completion of the following figure, will give you the address and account password of the pagoda, below, for example,
After opening copy the address to the browser, open the address is the pagoda of the login page, enter the account password to log in, enter will pop up after the installation of the software version of the software, please refer to below, the selection can choose the speed so fast installation,
Three: the game installation configuration

After the installation is complete, click the left side menu inside the site - & gt; Add site, domain name you have resolution of domain name, write some submitted, submitted after the completion of the point under the site directory path can be added into your site's root directory, and point to upload here, upload the source code to come in,

Points on the left side menu database - & gt; Add database, enter the database name, username, password are presented, and the right side in the newly generated database point management into phpadmin page, phpadmin is an online database management tool, click on the left side of your new database select it, then click the "import" in a line of text, then click upload your database file page left "execution", the database is added to complete,

Open the data/conf - & gt; Db. PHP, type the name of the database account password, corresponding to the diagram below:
Ditto, open the auto/php54n - & gt; Config.php, change the database information and domain information, pictures as follows, need to refer to the account name password sequence,
In 6000-9000, pay attention to the colon is among, note game point release,

Click on the left menu bar "site", a set on the right side you add site, point Settings - & gt; Choose thinkphp pseudo static, the following figure,
Click on the left side menu website, enter the auto folder, and then click on the root directory of this position, the following image path replication and reopen the xshell files, make sure that is a link to the server, enter the CD and then paste the path of the just copy, point enther button, at this point to the auto folder, and then do the following two commands,

PHP server. PHP start - d

./run. Sh

Every input point enter is to execute the command,

Log on to the public, found on the left side of the "Settings" - & gt; No. The public Settings - & gt; Feature set in web authorized domain name to fill in your domain name and then save, (need to TXT documents first to the root directory, the public, it will have prompt, download the inside of the public, TXT documents upload site root directory) found on the left side of the menu bar "development" - & gt; After the basic configuration, developers password reset, reset the appid and appsecript copy saved for later use, IP white list added to your server IP,

Enter the website backstage, generally is the domain name/admin can input password to enter, some on the left menu bar system Settings - & gt; WeChat Settings, fill out the appid WeChat above to WeChat appid, this column will appsecript onto WeChat key this column, fill the save, pay attention to is definitely the save, then click access,

To all this configuration is complete, enter your domain name within WeChat open and have a look,

The following is a common attention,

1: enter the background address has directly jump to the front desk, backstage address encryption

2: enter the background address 404 error, can't find the website

3: in less than the hall inside the

4: the hall, into the game open building 404 error

5: change the default background account password

6: the background after delete users, WeChat enter game always hang back

7: enter pagoda address tip can't find the site, can not be opened phpadmin

# 8: the background configuration through the public information open tip WeChat intercept or open is somebody else's configuration of the public, or open always prompt public, error messages,

9: modify the game port