溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

LNMP架構(gòu)搭建Discuz論壇(實戰(zhàn)?。?/h1>
發(fā)布時間:2020-09-01 11:50:20 來源:網(wǎng)絡(luò) 閱讀:1225 作者:wx5d2c2d660c282 欄目:系統(tǒng)運維

什么是LNMP架構(gòu)

LNMP平臺就是Linux、Ngnix、 MySQL、 PHP的組合架構(gòu),需要Linux服務(wù)器、MySQL數(shù)據(jù)庫、PHP解析環(huán)境

MySQL安裝配置

為了與Nginx、PHP環(huán)境保持一致,此處選擇采用源代碼編譯的方式安裝MySQL組件

MySQL部署的方法

  • 編譯安裝MySQL
  • 優(yōu)化調(diào)整
  • 初始化數(shù)據(jù)庫
  • 啟動mysq|服務(wù)并設(shè)置root數(shù)據(jù)庫賬號的密碼

PHP解析環(huán)境的安裝

配置網(wǎng)頁動靜分離,解析PHP,有兩種方法可以選擇

  • 使用PHP的FPM模塊
  • 將訪問PHP頁面的Web請求轉(zhuǎn)交給Apache服務(wù)器去處理

較新版本的PHP已經(jīng)自帶FPM模塊,用來對PHP解析實例進(jìn)行管理、優(yōu)化解析效率

  • FastCGI將Http Server和動態(tài)腳本語言分離開
  • Nginx專門處理靜態(tài)請求,轉(zhuǎn)發(fā)動態(tài)請求
  • PHP_FPM專門 ]解析PHP動態(tài)請求

單服務(wù)器的LNMP架構(gòu)通常使用FPM的方式來解析PHP,本次也使用FPM模塊處理動態(tài)請求。

PHP編譯安裝步驟

  • 編譯安裝PHP
  • 編譯選項時添加"--enable-fpm” 以啟用此模塊
  • 安裝后的調(diào)整,主要是配置文件的建立與相應(yīng)命令工具的路徑優(yōu)化
  • 安裝ZendGuardloader (提高PHP解析效率),并進(jìn)行加載配置

實驗準(zhǔn)備

1.將宿主機(jī)上的工具包共享出去

LNMP架構(gòu)搭建Discuz論壇(實戰(zhàn)?。?></p>
<h4>2.通過Samba服務(wù)將工具包掛載到Linux系統(tǒng)</h4>
<pre><code>[root@localhost ~]# mkdir /mnt/tools
[root@localhost ~]# smbclient -L //192.168.100.50/
Enter SAMBA\root's password: 
OS=[Windows 10 Enterprise LTSC 2019 17763] Server=[Windows 10 Enterprise LTSC 2019 6.3]

    Sharename       Type      Comment
    ---------       ----      -------
    IPC$            IPC       遠(yuǎn)程 IPC
    share           Disk      
    tools           Disk      
    Users           Disk      
Connection to 192.168.100.50 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
NetBIOS over TCP disabled -- no workgroup available
[root@localhost ~]# mount.cifs //192.168.100.50/tools /mnt/tools/
Password for root@//192.168.100.50/tools:  
[root@localhost ~]# </code></pre>
<h2>編譯安裝Nginx服務(wù)</h2>
<h4>1.將nginx服務(wù)源碼包解壓到“/opt/”目錄</h4>
<pre><code>[root@localhost ~]# cd /mnt/tools/
[root@localhost tools]# ls
awstats-7.6.tar.gz                extundelete-0.2.4.tar.bz2  forbid.png                 jdk-8u191-windows-x64.zip  LAMP-C7  picture.jpg
cronolog-1.6.2-14.el7.x86_64.rpm  fiddler.exe                intellijideahahau2018.rar  john-1.8.0.tar.gz          LNMP
[root@localhost tools]# cd LNMP/
[root@localhost LNMP]# ls
Discuz_X3.4_SC_UTF8.zip  mysql-boost-5.7.20.tar.gz  nginx-1.12.2.tar.gz  php-7.1.10.tar.bz2  php-7.1.20.tar.gz
[root@localhost LNMP]# tar zxvf nginx-1.12.2.tar.gz -C /opt/
...............//省略解壓過程
[root@localhost LNMP]#</code></pre>
<h4>2.安裝編譯所需工具包</h4>
<pre><code>[root@localhost ~]# yum install gcc gcc-c++ pcre-devel zlib-devel -y
...........//省略安裝過程
[root@localhost ~]#</code></pre>
<h4>3.切換到nginx服務(wù)源碼包目錄,創(chuàng)建一個nginx用戶</h4>
<pre><code>[root@localhost LNMP]# cd /opt/
[root@localhost opt]# ls
nginx-1.12.2  rh
[root@localhost opt]# cd nginx-1.12.2/
[root@localhost nginx-1.12.2]# ls
auto  CHANGES  CHANGES.ru  conf  configure  contrib  html  LICENSE  man  README  src
[root@localhost nginx-1.12.2]# 
[root@localhost nginx-1.12.2]# useradd -M -s /sbin/nologin nginx    //-M 不創(chuàng)建家目錄
[root@localhost nginx-1.12.2]# id nginx
uid=1001(nginx) gid=1001(nginx) 組=1001(nginx)
[root@localhost nginx-1.12.2]# </code></pre>
<h4>4.配置nginx服務(wù)</h4>
<pre><code>[root@localhost nginx-1.12.2]# ./configure \
> --prefix=/usr/local/nginx \      //安裝路徑
> --user=nginx \    //屬主
> --group=nginx \   //屬組
> --with-http_stub_status_module   //啟用統(tǒng)計模塊</code></pre>
<h4>5.編譯安裝nginx服務(wù)</h4>
<pre><code>[root@localhost nginx-1.12.2]# make && make install
..........//省略過程
[root@localhost nginx-1.12.2]#</code></pre>
<h4>6.在易于系統(tǒng)識別的目錄下,建立nginx服務(wù)命令的軟鏈接</h4>
<pre><code>[root@localhost nginx-1.12.2]# ln -s /usr/local/nginx/sbin/* /usr/local/sbin/   //建立軟鏈接
[root@localhost nginx-1.12.2]# nginx -t    //配置文件測試
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
[root@localhost nginx-1.12.2]# </code></pre>
<h4>7.制作nginx服務(wù)管理腳本(任選一種即可)</h4>
<p><strong>腳本一:通過“systemctl”命令管理</strong></p>
<pre><code>[root@localhost nginx-1.12.2]# cd /lib/systemd/system
[root@localhost system]# vim nginx.service

[Unit]
Description=nginx
After=network.target
[Service]
Type=forking
PIDFile=/usr/local/nginx/logs/nginx.pid
ExecStart=/usr/local/nginx/sbin/nginx
ExecReload=/usr/bin/kill -s HUP $MAINPID
ExecStop=/usr/bin/kill -s QUIT $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target

[root@localhost system]# chmod 754 nginx.service     //添加執(zhí)行權(quán)限
[root@localhost system]# systemctl start nginx.service   //開啟服務(wù)
[root@localhost system]# netstat -ntap | grep 80   //查看tcp80端口
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      52924/nginx: master 
[root@localhost system]# 
[root@localhost system]# systemctl stop firewalld.service   //關(guān)閉防火墻
[root@localhost system]# setenforce 0
[root@localhost system]# </code></pre>
<p><strong>腳本二:通過“service”命令管理</strong></p>
<pre><code>[root@nginx nginx-1.12.2]# vim /etc/init.d/nginx

#!/bin/bash
# chkconfig: - 99 20
# description: Nginx Service Control Script
PROG=

8.用宿主機(jī)瀏覽器訪問nginx服務(wù)

LNMP架構(gòu)搭建Discuz論壇(實戰(zhàn)?。?></p>
<h2>編譯安裝MySQL</h2>
<h4>1.安裝編譯mysql所需環(huán)境包</h4>
<pre><code>[root@localhost system]# yum install ncurses ncurses-devel bison cmake -y
.........//省略安裝過程
[root@localhost system]# </code></pre>
<h4>2.添加一個mysql用戶</h4>
<pre><code>[root@localhost system]# useradd -s /sbin/nologin mysql
[root@localhost system]#</code></pre>
<h4>3.將mysql源碼包解壓到“/opt/”目錄下</h4>
<pre><code>[root@localhost system]# cd /mnt/tools/LNMP/
[root@localhost LNMP]# ls
Discuz_X3.4_SC_UTF8.zip  mysql-boost-5.7.20.tar.gz  nginx-1.12.2.tar.gz  php-7.1.10.tar.bz2  php-7.1.20.tar.gz
[root@localhost LNMP]# tar zxvf mysql-boost-5.7.20.tar.gz -C /opt/
............//省略解壓過程
[root@localhost LNMP]#</code></pre>
<h4>4.配置mysql服務(wù)</h4>
<pre><code>[root@localhost LNMP]#cd /opt/mysql-5.7.20/
[root@localhost mysql-5.7.20]# ls
boost                cmd-line-utils           Docs                 libevent         mysys      source_downloads  VERSION
BUILD                config.h.cmake           Doxyfile-perfschema  libmysql         mysys_ssl  sql               VERSION.dep
client               configure.cmake          extra                libmysqld        packaging  sql-common        vio
cmake                COPYING                  include              libservices      plugin     storage           win
CMakeCache.txt       CPackConfig.cmake        info_macros.cmake    make_dist.cmake  rapid      strings           zlib
CMakeFiles           CPackSourceConfig.cmake  INSTALL              Makefile         README     support-files
cmake_install.cmake  CTestTestfile.cmake      libbinlogevents      man              regex      testclients
CMakeLists.txt       dbug                     libbinlogstandalone  mysql-test       scripts    unittest
[root@localhost mysql-5.7.20]# cmake \
> -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \     //安裝路徑
> -DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql.sock \    //定義sock文件連接數(shù)據(jù)庫文件
> -DSYSCONFDIR=/etc \    //配置文件目錄
> -DSYSTEMD_PID_DIR=/usr/local/mysql \   //PID文件目錄
> -DDEFAULT_CHARSET=utf8 \    //指定字符集,utf8支持中文字符
> -DDEFAULT_COLLATION=utf8_general_ci \    指定字符集默認(rèn)
> -DWITH_INNOBASE_STORAGE_ENGINE=1 \    存儲引擎
> -DWITH_ARCHIVE_STORAGE_ENGINE=1 \
> -DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
> -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \
> -DMYSQL_DATADIR=/usr/local/mysql/data \     //數(shù)據(jù)庫數(shù)據(jù)文件目錄
> -DWITH_BOOST=boost \     //底層運行庫
> -DWITH_SYSTEMD=1      //主從參數(shù)</code></pre>
<h4>5.編譯安裝MySQL服務(wù)</h4>
<pre><code>[root@localhost mysql-5.7.20]# make && make install
...........//省略編譯過程
[root@localhost mysql-5.7.20]#</code></pre>
<h4>6.更改數(shù)據(jù)庫目錄屬主、屬組</h4>
<pre><code>[root@localhost mysql-5.7.20]# chown -R mysql:mysql /usr/local/mysql/
[root@localhost mysql-5.7.20]# </code></pre>
<h4>7.修改配置文件</h4>
<pre><code>[root@localhost mysql-5.7.20]# vim /etc/my.cnf
[client]                            //客戶端
port = 3306
default-character-set=utf8
socket = /usr/local/mysql/mysql.sock

[mysql]                           //客戶端
port = 3306
default-character-set=utf8
socket = /usr/local/mysql/mysql.sock

[mysqld]                         //服務(wù)器
user = mysql                  //用戶
basedir = /usr/local/mysql      //設(shè)置mysql的安裝目錄
datadir = /usr/local/mysql/data    //設(shè)置mysql數(shù)據(jù)庫的數(shù)據(jù)的存放目錄
port = 3306                    //設(shè)置3306端口
character_set_server=utf8           //中文字符集
pid-file = /usr/local/mysql/mysqld.pid     //pid文件路徑
socket = /usr/local/mysql/mysql.sock     //sock文件路徑
server-id = 1                                     //主從參數(shù)

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,PIPES_AS_CONCAT,ANSI_QUOTES
//支持模塊</code></pre>
<h4>8.將mysql相關(guān)命令添加本地環(huán)境配置中</h4>
<pre><code>[root@localhost mysql-5.7.20]# echo 'PATH=/usr/local/mysql/bin:/usr/local/mysql/lib:$PATH' >> /etc/profile
//將MySQL寫到本地環(huán)境配置中
[root@localhost mysql-5.7.20]# echo 'export PATH' >> /etc/profile   //設(shè)置全局環(huán)境配置
[root@localhost mysql-5.7.20]# source /etc/profile    //重新加載配置文件
[root@localhost mysql-5.7.20]#</code></pre>
<h4>9.初始化數(shù)據(jù)庫</h4>
<pre><code>[root@localhost mysql-5.7.20]# cd /usr/local/mysql/
[root@localhost mysql]# ls
bin  COPYING  COPYING-test  docs  include  lib  man  mysql-test  README  README-test  share  support-files  usr

[root@localhost mysql]# bin/mysqld \
> --initialize-insecure \    //初始化
> --user=mysql \   //用戶
> --basedir=/usr/local/mysql \    //安裝目錄
> --datadir=/usr/local/mysql/data   //數(shù)據(jù)庫數(shù)據(jù)文件目錄</code></pre>
<h4>10.將MySQL服務(wù)配置文件復(fù)制到/usr/lib/systemd/system/下便于使用systemctl管理</h4>
<pre><code>[root@localhost mysql]# cp usr/lib/systemd/system/mysqld.service /lib/systemd/system/
//復(fù)制
[root@localhost mysql]# systemctl start mysqld.service   //啟動服務(wù)
[root@localhost mysql]# netstat -ntap | grep 3306    //查看tcp3306端口
tcp6       0      0 :::3306                 :::*                    LISTEN      78684/mysqld        
[root@localhost mysql]# </code></pre>
<h4>11.配置MySQL密碼</h4>
<pre><code>[root@localhost mysql]# mysqladmin -u root -p password
Enter password: 
New password: 
Confirm new password: 
Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.
[root@localhost mysql]#</code></pre>
<h4>12.嘗試登陸MySQL數(shù)據(jù)庫</h4>
<pre><code>[root@localhost mysql]# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.7.20 Source distribution

Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> quit    //退出數(shù)據(jù)庫
Bye
[root@localhost mysql]# </code></pre>
<h2>編譯安裝PHP</h2>
<h4>1.安裝編譯所需環(huán)境包</h4>
<pre><code>[root@localhost mysql]# yum -y install \
> libjpeg libjpeg-devel \   //jpeg圖片格式和開發(fā)包
> libpng libpng-devel \     //png圖片和開發(fā)包
> freetype freetype-devel \    //字體庫
> libxml2 libxml2-devel \    xml文件庫
> zlib zlib-devel \   //壓縮庫
> curl curl-devel \   //支持?jǐn)?shù)據(jù)文件下載工具
> openssl openssl-devel    //安全訪問連接</code></pre>
<h4>2.解壓源碼包</h4>
<pre><code>[root@localhost mysql]# cd /mnt/tools/LNMP/
[root@localhost LNMP]# ls
Discuz_X3.4_SC_UTF8.zip  mysql-boost-5.7.20.tar.gz  nginx-1.12.2.tar.gz  php-7.1.10.tar.bz2  php-7.1.20.tar.gz
[root@localhost LNMP]# tar jxvf php-7.1.10.tar.bz2 -C /opt/
..........//省略過程
[root@localhost LNMP]#</code></pre>
<h4>3.配置PHP服務(wù)</h4>
<pre><code>[root@localhost LNMP]# cd /opt/php-7.1.10
[root@localhost php-7.1.10]# ./configure 
--prefix=/usr/local/php                        //安裝路徑
--with-mysql-sock=/usr/local/mysql/mysql.sock   //連接文件建立通信橋梁
--with-mysqli                                    //客戶端支持庫
--with-zlib                                         //壓縮
--with-curl                                        //支持上傳下載功能
--with-gd                                          //gd圖像支持圖片處理庫
--with-jpeg-dir                                  //jpeg
--with-png-dir                                   //png
--with-freetype-dir                            //字體
--with-openssl                                  //安全訪問連接
--enable-fpm                                    //fpm支持動態(tài)請求模塊
--enable-mbstring                            //支持多字節(jié)的字符串
--enable-xml                                    //xml文件
--enable-session                             //session支持會話
--enable-ftp                                     //ftp服務(wù)
--enable-pdo                                   //驅(qū)動連接管理
--enable-tokenizer                          //PHP自帶函數(shù)
--enable-zip                                    //zip壓縮包</code></pre>
<h4>4.編譯安裝</h4>
<pre><code>[root@localhost php-7.1.10]# make && make install
..........//省略過程
[root@localhost php-7.1.10]#</code></pre>
<h4>5.配置核心配置文件(php.ini核心配置文件,php-fpm.conf進(jìn)程服務(wù)配置文件,www.conf擴(kuò)展配置文件 )</h4>
<pre><code>[root@localhost php-7.1.10]# cp php.ini-development /usr/local/php/lib/php.ini   //復(fù)制到安裝目錄lib庫中
[root@localhost php-7.1.10]# vim /usr/local/php/lib/php.ini    //配置核心配置文件

mysqli.default_socket = /usr/local/mysql/mysql.sock    //默認(rèn)連接文件
date.timezone = Asia/Shanghai     //時區(qū)

[root@localhost php-7.1.10]# /usr/local/php/bin/php -m
[PHP Modules]
Core
ctype
curl
date
...........//省略部分內(nèi)容
zip
zlib

[Zend Modules]

[root@localhost php-7.1.10]# </code></pre>
<h4>6.配置及優(yōu)化FPM模塊</h4>
<pre><code>[root@localhost php-7.1.10]# cd /usr/local/php/etc/
[root@localhost etc]# ls
pear.conf  php-fpm.conf.default  php-fpm.d
[root@localhost etc]# cp php-fpm.conf.default php-fpm.conf   //優(yōu)化復(fù)制默認(rèn)進(jìn)程服務(wù)配置文件
[root@localhost etc]# vim php-fpm.conf

pid = run/php-fpm.pid    //開啟fpm.pid進(jìn)程

[root@localhost etc]#
[root@localhost etc]# ls
pear.conf  php-fpm.conf  php-fpm.conf.default  php-fpm.d
[root@localhost etc]# cd php-fpm.d/
[root@localhost php-fpm.d]# ls
www.conf.default
[root@localhost php-fpm.d]# cp www.conf.default www.conf    //優(yōu)化復(fù)制擴(kuò)展配置文件
[root@localhost php-fpm.d]# /usr/local/php/sbin/php-fpm -c /usr/local/php/lib/php.ini 
[root@localhost php-fpm.d]# netstat -ntap | grep 9000   //查看端口信息
tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      87363/php-fpm: mast 
[root@localhost php-fpm.d]# ln -s /usr/local/php/bin/* /usr/local/bin/   //查看端口信息
[root@localhost php-fpm.d]# </code></pre>
<h4>7.讓Nginx支持PHP功能</h4>
<pre><code>[root@localhost php-fpm.d]# vim /usr/local/nginx/conf/nginx.conf    //配置nginx配置文件

        location ~ \.php$ {
            root           html;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  /usr/local/nginx/html$fastcgi_script_name;  //修改站點路徑
            include        fastcgi_params;
        }

[root@localhost php-fpm.d]# systemctl stop nginx.service    //關(guān)閉服務(wù)
[root@localhost php-fpm.d]# systemctl start nginx.service   //開啟服務(wù)
[root@localhost php-fpm.d]# </code></pre>
<h4>8.創(chuàng)建PHP測試網(wǎng)頁</h4>
<pre><code>[root@localhost php-fpm.d]# cd /usr/local/nginx/html/
[root@localhost html]# ls
50x.html  index.html
[root@localhost html]# mv index.html index.php   //修改名稱
[root@localhost html]# ls
50x.html  index.php
[root@localhost html]# vim index.php 

<?php
phpinfo();
?>
[root@localhost html]# </code></pre>
<h4>9.用宿主機(jī)訪問網(wǎng)頁</h4>
<p><img src=

10.進(jìn)入MySQL數(shù)據(jù)庫創(chuàng)建bbs數(shù)據(jù)庫

[root@localhost html]# mysql -u root -p
Enter password:     //進(jìn)入數(shù)據(jù)庫,密碼為之前設(shè)定的
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.7.20 Source distribution

Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database bbs;   //創(chuàng)建bbs數(shù)據(jù)庫
Query OK, 1 row affected (0.01 sec)

mysql> grant all on bbs.* to 'bbsuser'@'%' identified by 'admin123';
//給bbs數(shù)據(jù)庫中的所有表格提升權(quán)限,同時創(chuàng)建管理數(shù)據(jù)庫的用戶"bbsuser",設(shè)置密碼。
"%"表示可以從所有終端訪問
Query OK, 0 rows affected, 1 warning (0.02 sec)

mysql> grant all on bbs.* to 'bbsuser'@'localhost' identified by 'admin123';
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> flush privileges;   //刷新數(shù)據(jù)庫
Query OK, 0 rows affected (0.01 sec)

mysql> quit   //退出
Bye
[root@localhost html]#

安裝Discuz論壇

1.將discuz壓縮包解壓到“/opt/”目錄下

[root@localhost html]# cd /mnt/tools/LNMP/
[root@localhost LNMP]# ls
Discuz_X3.4_SC_UTF8.zip  mysql-boost-5.7.20.tar.gz  nginx-1.12.2.tar.gz  php-7.1.10.tar.bz2  php-7.1.20.tar.gz
[root@localhost LNMP]# unzip Discuz_X3.4_SC_UTF8.zip -d /opt/     //解壓
............//省略過程
[root@localhost LNMP]#

2.將解壓目錄下的upload復(fù)制到html站點中,命名為bbs

[root@localhost LNMP]# cd /opt/dir_SC_UTF8/
[root@localhost dir_SC_UTF8]# ls
readme  upload  utility
[root@localhost dir_SC_UTF8]# cp -r upload/ /usr/local/nginx/html/bbs
[root@localhost dir_SC_UTF8]#

3.進(jìn)入bbs站點目錄,給相關(guān)目錄文件修改屬組和提權(quán)

[root@localhost dir_SC_UTF8]# cd /usr/local/nginx/html/bbs/
[root@localhost bbs]# chown -R root:nginx ./config/
[root@localhost bbs]# chown -R root:nginx ./data/
[root@localhost bbs]# chown -R root:nginx ./uc_client/
[root@localhost bbs]# chown -R root:nginx ./uc_server/
[root@localhost bbs]# chmod -R 777 ./config/
[root@localhost bbs]# chmod -R 777 ./data/
[root@localhost bbs]# chmod -R 777 ./uc_client/
[root@localhost bbs]# chmod -R 777 ./uc_server/

4.訪問192.168.52.133/bbs站點,安裝Discuz論壇

LNMP架構(gòu)搭建Discuz論壇(實戰(zhàn)!)

LNMP架構(gòu)搭建Discuz論壇(實戰(zhàn)?。?></p>
<h4>5.設(shè)置運行環(huán)境為全新安裝</h4>
<p><img src=向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI