In this example, discuz Forum is built on the basis of LNMP,lnmp Environment of the building, in the previous blog has been introduced, here is not to repeat.
the address of the download discuz Source package is: HTTP://WWW.COMSENZ.COM/DOWNLOADS/INSTALL/DISCUZX
In this example, the latest version of the 3.2 is selected , and after downloading, the files in the upload are uploaded to the bbs directory.
[Email protected] ~]# Mkdir/usr/src/discuz
[Email protected] ~]# Unzip discuz_x3.2_sc_utf8.zip-d/usr/src/discuz
[Email protected] ~]# cp-r/usr/src/discuz/upload/*/usr/local/nginx/html/bbs/
[Email protected] ~]# chmod-r 777/usr/local/nginx/html/bbs/config/
[Email protected] ~]# chmod-r 777/usr/local/nginx/html/bbs/data/
[Email protected] ~]# chmod-r 777/usr/local/nginx/html/bbs/uc_client/data/cache/
[Email protected] ~]# chmod-r 777/usr/local/nginx/html/bbs/uc_server/data/
[[Email protected] ~]# service Nginx restart
Discuz is a dynamic Web site based on PHP , and much of the data needs to be kept in the database. Therefore, we need to create a forum database for the forum in the MySQL database and create a database management account and password:/usr/local/mysql/bin/mysql-u root-p
Create database BBS;
' bbs_admin ' @ ' % ' identified by ' admin123 '
The client accesses http://10.10.10.128/bbs/install/index.php through the browser
Completes the initialization operation.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6E/2B/wKiom1V1TIGj-SptAAP8ONQJiac418.jpg "title=" 1.png " alt= "Wkiom1v1tigj-sptaap8onqjiac418.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/27/wKioL1V1TjGTpTmSAAKBQnUaniI853.jpg "title=" 2.png " alt= "Wkiol1v1tjgtptmsaakbqnuanii853.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/27/wKioL1V1Tj7DNgqZAAGtn7CTwM4954.jpg "title=" 3.png " alt= "Wkiol1v1tj7dngqzaagtn7ctwm4954.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/2B/wKiom1V1TKqQEno7AAJU4iHCsuE620.jpg "title=" 4.png " alt= "Wkiom1v1tkqqeno7aaju4ihcsue620.jpg"/>
After you have completed the above initialization, be sure to delete the/usr/local/nginx/html/bbs/install/index.php to prevent multiple initialization operations. At this time the client through the browser to access the forum,http://10.10.10.128/bbs/index.php, You can login forum home.
Build Discuz Forum on the basis of LNMP