Under Centos7 deployment environment to build discuz Forum

1. Set up a lnmp environment

2. Copy the git address (https://gitee.com/ComsenzDiscuz/DiscuzX) from the official website, installed on the server command git

yum install git -y # install git commands

git clone discuz address #git clone download

 

 After downloading, in the current directory folder there will be a DiscuzX

3. Copy all the files upload files in the folder to the Discuz under nginx web directory, it is recommended to create a new discuz folder (mkdir / usr / etc / ngin / html / discuz) in nginx directory

If you do not know nginx directory, you can directly find / -type d -name that is to find the root of the file type is called html file address of the folder. The following directory is the time I installed, nginx less write one x

Into the upload folder, execute the following command

cp -rf ./*  /usr/etc/ngin/html/discuz

After copying the past, the need to increase the write permissions, otherwise the time of installation error. Production environment, do not engage in 777

 

 4. browser to visit the address below to start the installation

http://ip/discuz/install/

The following is part of the database.

 

The deployment is complete

 

Guess you like

Origin www.cnblogs.com/biaopei/p/11683407.html