Compile and install Discuz forums for LNMP architecture
LNMP architecture LNMP platform is the combined architecture of Linux,Nginx,MySQL,PHP, which requires Linux server, MySQL server and PHP parsing environment.
Step 6: install Discuz Forum package 1 and unzip the Forum package to / opt And copy the contents of the directory to the bbs site [root@localhost etc] # cd / abc [root@localhost abc] # unzip Discuz_X3.4_SC_UTF8.zip-d / opt # # decompress to / opt [root@localhost abc] # cd / opt [root@localhost opt] # lsdir_SC_UTF8 mysql-5.7.20 nginx-1.12.2 php-7.1.10 rh description .htm [root@localhost opt] # cd dir_SC_UTF8/ # # cut into the forum directory [root@localhost dir_SC_UTF8] # cp-r upload/ / usr/local/nginx/html/bbs/ # # copy all the contents in the / opt directory to the bbs site directory 2 Enter the site and give the program user rights [root@localhost dir_SC_UTF8] # cd / usr/local/nginx/html/bbs/ # # cut into the bbs site directory [root@localhost bbs] # chown-R root:nginx. / config/ # # the rights of the user of the program [root@localhost bbs] # chown-R root:nginx. / data/ # # modify the nginx attribute Group [root@localhost bbs] # chmod-R root:nginx. / uc_client/ [root @ localhost bbs] # chown-R root:nginx. / uc_server/ [root @ localhost bbs] # chmod-R 777. / config/ # # modify all permissions [root@localhost bbs] # chmod-R 777. / data/ [root@localhost bbs] # chmod-R 777. / uc_client/ [root @ localhost bbs] # chmod-R 777. / uc_server/3 Enter the 192.168.235.158/bbs/install/index.php site in the browser to enter the Discuz Forum Wizard
4, set up the running environment and do a new installation
5. Install the database data server: 192.168.235.158 (enter the IP to create the database host here) Database name: bbs database user name: bbsusers (user name can be changed on the command line) Database password: admin123 (password can be changed on the command line) administrator account: admin (this account is the default) password: 123123 (password can be set directly on the web page)
Seventh, visit the forum and start posting!