Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Discue Forum of LNMP Architecture

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

LNMP architecture LNMP platform is the combined architecture of Linux,Nginx,MySQL,PHP, which requires Linux server, MySQL server, PHP parsing environment components Linux is a kind of Unix computer operating system, is the most popular free operating system. Nginx is a high-performance HTTP and reverse proxy server. Mysql is a small relational database management system. PHP is a scripting language that embeds HTML documents executed on the server side. LAMP has the advantages of stable performance, rich functions, simple operation and maintenance, fast processing of static files and low consumption of system resources. Nginx is compact and efficient. First, share the compression package needed by LAMP on Windows (if you have any questions here, please see the previous blog article)

8. Enter the database to create the bbs database and set the administrator and password [root@localhost etc] # mysql-u root-pEnter password: # # enter the database with the password of abc23mysql > CREATE DATABASE BBS; # # to create the bbs database Query OK, 1 row affected (0.00 sec) mysql > GRANT all ON bbs.* TO 'bbsusers'@'%' IDENTIFIED BY' admin123' # # upgrade database user bbsuser as administrator and set password Query OK, 0 rows affected, 1 warning (0.00 sec) mysql > GRANT all ON bbs.* TO 'bbsusers'@'localhost' IDENTIFIED BY' admin123';Query OK, 0 rows affected, 1 warning (0.00 sec) mysql > flush privileges # # Refresh database Query OK, 0 rows affected (0.00 sec) mysql > quit # # exit [root@localhost etc] # vim / usr/local/nginx/html/index.php # # Test database connection status [root@localhost etc] # systemctl restart nginx.service # # restart service

6. Install Discuz Forum package 1 and unzip it to / opt And copy the contents of the directory to the bbs site [root@localhost etc] # cd / mnt [root@localhost mnt] # unzip Discuz_X3.4_SC_UTF8.zip-d / opt # # decompress to / opt [root@localhost mnt] # 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/ # # enter the forum directory [root@localhost dir_SC_UTF8] # cp-r upload/ / usr/local/nginx/html/bbs/ # # copy the contents of the / opt directory to the bbs directory of the html site 2 Enter the site and give the program user the right [root@localhost dir_SC_UTF8] # cd / usr/local/nginx/html/bbs/ # # enter the bbs site directory [root@localhost bbs] # chown-R root:nginx. / config/ # # raise the right for the program user [root@localhost bbs] # chown-R root:nginx. / data/ # # modify the group [root@localhost Bbs] # chown-R root:nginx. / uc_client/ [root @ localhost bbs] # root-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 Visit the 192.168.235.137/bbs site and install the Discuz forum

4. Set the running environment to a new installation

5. Install the database data server: 192.168.13.130 (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 (the account is the default) password: 123123 (password can be set directly on the web page)

Seventh, successfully build and visit the forum

Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report