目前最為成熟的一種企業(yè)網(wǎng)站應(yīng)用模式,可提供動(dòng)態(tài)Web站點(diǎn)應(yīng)用及開(kāi)發(fā)環(huán)境。
遼陽(yáng)縣ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場(chǎng)景,ssl證書(shū)未來(lái)市場(chǎng)廣闊!成為成都創(chuàng)新互聯(lián)的ssl證書(shū)銷(xiāo)售渠道,可以享受市場(chǎng)價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:028-86922220(備注:SSL證書(shū)合作)期待與您的合作!
Linux、Apache、 MySQL、 PHP/Per/Python
成本低廉
可定制、易于開(kāi)發(fā)
方便易用、安全和穩(wěn)定
(1)通過(guò)Samba服務(wù),從我的宿主機(jī)將整個(gè)LAMP部署所需的壓縮包,掛載到“/mnt/”目錄下。
smbclient -L //192.168.100.50/ //查看共享的文件
mount.cifs //192.168.100.50/LAMP-C7 /mnt/ //掛載我們所需要的文件
(2)將安裝Apache需要的用到的壓縮包解壓到“/opt/”目錄下。
[root@localhost mnt]# tar zxvf apr-1.6.2.tar.gz -C /opt/ //跨平臺(tái)所需組件包
....... //省略過(guò)程
[root@localhost mnt]# tar zxvf apr-util-1.6.0.tar.gz -C /opt/ //跨平臺(tái)所需組件包
....... //省略過(guò)程
[root@localhost mnt]# tar jxvf httpd-2.4.29.tar.bz2 -C /opt/ //服務(wù)包
....... //省略過(guò)程
(3)將兩個(gè)組件包的目錄文件移動(dòng)到httpd文件目錄下面,并分別重命名為apr、apr-util
[root@localhost mnt]# cd ../opt/
[root@localhost opt]# ls
apr-1.6.2 apr-util-1.6.0 httpd-2.4.29 rh
[root@localhost opt]# mv apr-1.6.2/ httpd-2.4.29/srclib/apr
[root@localhost opt]# ls
apr-util-1.6.0 httpd-2.4.29 rh
[root@localhost opt]# mv apr-util-1.6.0/ httpd-2.4.29/srclib/apr-util
[root@localhost opt]# ls
httpd-2.4.29 rh
[root@localhost opt]#
(4)安裝編譯Apache服務(wù)以及服務(wù)所需的相關(guān)工具。
[root@localhost opt]# yum -y install \
> gcc \
> gcc-c++ \
> make \
> pcre-devel \
> expat-devel \
> perl
....... //省略過(guò)程
(5)進(jìn)入到“/opt/httpd-2.4.29/”目錄下,進(jìn)行對(duì)Apache服務(wù)器的配置。
[root@localhost opt]# ls
httpd-2.4.29 rh
[root@localhost opt]# cd httpd-2.4.29/
[root@localhost httpd-2.4.29]# ls
ABOUT_APACHE BuildBin.dsp emacs-style LAYOUT NOTICE srclib
acinclude.m4 buildconf httpd.dep libhttpd.dep NWGNUmakefile support
Apache-apr2.dsw CHANGES httpd.dsp libhttpd.dsp os test
Apache.dsw CMakeLists.txt httpd.mak libhttpd.mak README VERSIONING
apache_probes.d config.layout httpd.spec LICENSE README.cmake
ap.d configure include Makefile.in README.platforms
build configure.in INSTALL Makefile.win ROADMAP
BuildAll.dsp docs InstallBin.dsp modules server
[root@localhost httpd-2.4.29]# ./configure \
> --prefix=/usr/local/httpd \ //安裝路徑
> --enable-so \ //啟用動(dòng)態(tài)加載模塊支持
> --enable-rewrite \ //啟用網(wǎng)頁(yè)地址重寫(xiě)功能
> --enable-charset-lite \ //啟用字符集支持
> --enable-cgi //啟用CGI腳本程序支持
....... //省略過(guò)程
(6)編譯安裝Apache服務(wù)。
[root@localhost httpd-2.4.29]# make && make install
....... //省略過(guò)程(編譯時(shí)間較長(zhǎng)耐心等待)
#make進(jìn)行編譯,將源代碼轉(zhuǎn)換為可執(zhí)行程序。make install 進(jìn)行安裝。
(7)將“/usr/local/httpd/bin/”目錄下的“apachectl”文件移動(dòng)到“/etc/init.d/”目錄下,并在文件開(kāi)頭添加chkconfig識(shí)別配置,然后將其添加為標(biāo)準(zhǔn)的Linux系統(tǒng)服務(wù)。
[root@localhost httpd-2.4.29]#ls /usr/local/httpd/
bin build cgi-bin conf error htdocs icons include lib logs man manual modules
[root@localhost httpd-2.4.29]# cp /usr/local/httpd/bin/apachectl /etc/init.d/httpd
[root@localhost httpd-2.4.29]# ls /etc/init.d/
functions httpd netconsole network README
[root@localhost httpd-2.4.29]#
#/usr/local/httpd/目錄下的,主要子目錄的用途:
#/usr/local/httpd/bin //存放各種執(zhí)行程序文件
#/usr/local/httpd/conf //存放各種配置文件
#/usr/local/httpd/htdocs //存放網(wǎng)頁(yè)文檔
#/usr/local/httpd/logs //存放日志文件
#/usr/local/httpd/modules //存放各種模塊文件
#/usr/local/httpd/cgi-bin //存放各種CGI程序文件
[root@localhost httpd-2.4.29]# vim /etc/init.d/httpd
#!/bin/sh
# chkconfig: 35 85 21 //服務(wù)識(shí)別參數(shù),在級(jí)別3、5中啟動(dòng):?jiǎn)?dòng)和關(guān)閉的順序分別為85、21
# description: Apache is a World Wide Web server //服務(wù)描述信息
#
# Licensed to the Apache Software Foundation (ASF) under one or more
.......... //省略部分內(nèi)容
[root@localhost httpd-2.4.29]# chkconfig --add httpd //將httpd服務(wù)添加為系統(tǒng)服務(wù)
[root@localhost httpd-2.4.29]#
(8)編輯httpd服務(wù)的主配置文件,配置網(wǎng)站名稱(chēng),這里以為“www.yun.com:80”為例。將監(jiān)聽(tīng)地址改為網(wǎng)站服務(wù)器的IP地址“192.168.52.132:80”,端口為80,我這里直接監(jiān)聽(tīng)當(dāng)前主機(jī)的IP地址。將監(jiān)聽(tīng)ipv6IP地址的命令行注釋掉。
[root@localhost httpd-2.4.29]# vim /usr/local/httpd/conf/httpd.conf
ServerName www.yun.com:80 //配置網(wǎng)站名稱(chēng)
Listen 192.168.52.132:80 //配置IPv4監(jiān)聽(tīng)地址
#Listen 80
(9)優(yōu)化配置文件與執(zhí)行路徑,在系統(tǒng)默認(rèn)的配置文件目錄“/etc/下”建立httpd服務(wù)配置文件的軟鏈接,同時(shí)在系統(tǒng)識(shí)別的環(huán)境變量目錄“/usr/local/bin/”下,建立httpd服務(wù)執(zhí)行程序的軟鏈接。
[root@localhost httpd-2.4.29]# ln -s /usr/local/httpd/conf/httpd.conf /etc/
[root@localhost httpd-2.4.29]# ln -s /usr/local/httpd/bin/* /usr/local/bin/
[root@localhost httpd-2.4.29]#
(10)對(duì)服務(wù)的命令對(duì)配置內(nèi)容進(jìn)行語(yǔ)法檢查,用“httpd -t”或“apachectl -t”都可以,“Syntax OK”表示沒(méi)有語(yǔ)法錯(cuò)誤,沒(méi)有錯(cuò)誤我們直接開(kāi)啟服務(wù),然后檢查能否監(jiān)聽(tīng)TCP的80端口。最后關(guān)閉防火墻和增強(qiáng)性安全功能。
[root@localhost httpd-2.4.29]# httpd -t
Syntax OK
[root@localhost httpd-2.4.29]# apachectl -t
Syntax OK
[root@localhost httpd-2.4.29]# service httpd start //開(kāi)啟服務(wù)
[root@localhost httpd-2.4.29]# netstat -ntap | grep 80 //檢查能否監(jiān)聽(tīng)TCP的80端口
tcp 0 0 192.168.52.132:80 0.0.0.0:* LISTEN 34935/httpd
[root@localhost httpd-2.4.29]# systemctl stop firewalld.service //關(guān)閉防火墻
[root@localhost httpd-2.4.29]# setenforce 0 //關(guān)閉增強(qiáng)性安全功能
[root@localhost httpd-2.4.29]#
(11)用我們的宿主機(jī)去訪問(wèn)搭建好的http服務(wù)。
(1)安裝編譯MySQL服務(wù)以及服務(wù)所需的相關(guān)工具。
[root@localhost httpd-2.4.29]# yum install -y ncurses-devel autoconf cmake
....... //省略過(guò)程
(2)將MySQL服務(wù)的源碼包解壓到“/opt/”目錄下。
[root@localhost mnt]#cd /mnt/
[root@localhost mnt]# tar zxvf mysql-5.6.26.tar.gz -C /opt/
....... //省略過(guò)程
(3)進(jìn)入“opt/mysql-5.6.26/”,對(duì)服務(wù)進(jìn)行配置。
[root@localhost mnt]# cd /opt/mysql-5.6.26/
[root@localhost mysql-5.6.26]# ls
BUILD config.h.cmake extra libmysqld packaging sql-bench unittest
BUILD-CMAKE configure.cmake include libservices plugin sql-common VERSION
client COPYING INSTALL-SOURCE man README storage vio
cmake dbug INSTALL-WIN-SOURCE mysql-test regex strings win
CMakeLists.txt Docs libevent mysys scripts support-files zlib
cmd-line-utils Doxyfile-perfschema libmysql mysys_ssl sql tests
[root@localhost mysql-5.6.26]# cmake \
> -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \ //指定安裝路徑
> -DDEFAULT_CHARSET=utf8 \ //指定默認(rèn)字符集
> -DDEFAULT_COLLATION=utf8_general_ci \ //指定默認(rèn)字符集的校對(duì)規(guī)則
> -DEXTRA_CHARSETS=all \ //指定額外支持的其它字符集
> -DSYSCONFIDIR=/etc \ //指定初始化參數(shù)文件目錄
> -DMYSQL_DATADIR=/home/mysql/ \ //指定數(shù)據(jù)文件目錄
> -DMYSQL_UNIX_ADDR=/home/mysql/mysql.sock //指定連接數(shù)據(jù)庫(kù)的文件
....... //省略過(guò)程
(4)編譯安裝MySQL。
[root@localhost mysql-5.6.26]# make&&make install
....... //省略過(guò)程(編譯時(shí)間較長(zhǎng)耐心等待)
#make進(jìn)行編譯,將源代碼轉(zhuǎn)換為可執(zhí)行程序。make install 進(jìn)行安裝。
(5)建立配置文件,用我們?cè)创a包里自帶的默認(rèn)配置文件,去覆蓋系統(tǒng)默認(rèn)的MySQL服務(wù)配置文件。
[root@localhost mysql-5.6.26]# cp support-files/my-default.cnf /etc/my.cnf
cp:是否覆蓋"/etc/my.cnf"? yes
[root@localhost mysql-5.6.26]#
(6)先將將腳本文件“mysql.server”從“support-files/”目錄下復(fù)制到“/etc/init.d/”目錄下,重命名為“mysqld”,同時(shí)給腳本文件添加執(zhí)行權(quán)限。然后將MySQL服務(wù)添加為系統(tǒng)服務(wù),并設(shè)置MySQL的環(huán)境變量。
[root@localhost mysql-5.6.26]# cp support-files/mysql.server /etc/init.d/mysqld //將腳本文件復(fù)制到/etc/init.d/目錄
[root@localhost mysql-5.6.26]# ls -l /etc/init.d/mysqld
-rw-r--r--. 1 root root 10870 10月 18 17:28 /etc/init.d/mysqld
[root@localhost mysql-5.6.26]# chmod +x /etc/init.d/mysqld //添加執(zhí)行權(quán)限
[root@localhost mysql-5.6.26]# ls -l /etc/init.d/mysqld
-rwxr-xr-x. 1 root root 10870 10月 18 17:28 /etc/init.d/mysqld
[root@localhost mysql-5.6.26]# chkconfig --add /etc/init.d/mysqld //添加為系統(tǒng)服務(wù)
[root@localhost mysql-5.6.26]# chkconfig mysqld --level 35 on
[root@localhost mysql-5.6.26]# echo "PATH=$PATH:/usr/local/mysql/bin" >> /etc/profile //設(shè)置環(huán)境變量
[root@localhost mysql-5.6.26]# source /etc/profile //重新執(zhí)行一下,刷新配置
[root@localhost mysql-5.6.26]# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/mysql/bin
[root@localhost mysql-5.6.26]#
(7)創(chuàng)建一個(gè)mysql用戶,設(shè)為禁止登陸。然后將“/usr/local/mysql/”目錄下的所有文件目錄的屬主、屬組改為mysql。
[root@localhost mysql-5.6.26]# useradd -s /sbin/nologin mysql //添加用戶
[root@localhost mysql-5.6.26]# chown -R mysql:mysql /usr/local/mysql/ //更改屬主、屬組,-R表示遞歸
[root@localhost mysql-5.6.26]# ls -l /usr/local/mysql/
總用量 152
drwxr-xr-x. 2 mysql mysql 4096 10月 18 17:27 bin
-rw-r--r--. 1 mysql mysql 17987 7月 15 2015 COPYING
drwxr-xr-x. 3 mysql mysql 18 10月 18 17:27 data
drwxr-xr-x. 2 mysql mysql 55 10月 18 17:27 docs
drwxr-xr-x. 3 mysql mysql 4096 10月 18 17:27 include
-rw-r--r--. 1 mysql mysql 104897 7月 15 2015 INSTALL-BINARY
drwxr-xr-x. 3 mysql mysql 4096 10月 18 17:27 lib
drwxr-xr-x. 4 mysql mysql 30 10月 18 17:27 man
drwxr-xr-x. 10 mysql mysql 4096 10月 18 17:27 mysql-test
-rw-r--r--. 1 mysql mysql 2496 7月 15 2015 README
drwxr-xr-x. 2 mysql mysql 30 10月 18 17:27 scripts
drwxr-xr-x. 28 mysql mysql 4096 10月 18 17:27 share
drwxr-xr-x. 4 mysql mysql 4096 10月 18 17:27 sql-bench
drwxr-xr-x. 2 mysql mysql 136 10月 18 17:27 support-files
[root@localhost mysql-5.6.26]#
(8)初始化數(shù)據(jù)庫(kù)。
[root@localhost mysql-5.6.26]# /usr/local/mysql/scripts/mysql_install_db \
> --user=mysql \ //管理用戶
> --ldata=/var/lib/mysql \ //數(shù)據(jù)目錄
> --basedir=/usr/local/mysql \ //工作目錄
> --datadir=/home/mysql //數(shù)據(jù)目錄
....... //省略過(guò)程
(9)為連接數(shù)據(jù)庫(kù)的文件“mysql.sock”在目錄“/home/mysql/”下建立一個(gè)軟鏈接,方便使用。
[root@localhost mysql-5.6.26]# ln -s /var/lib/mysql/mysql.sock /home/mysql/mysql.sock
[root@localhost mysql-5.6.26]#
(10)對(duì)配置文件進(jìn)行修改,添加我們的工作目錄與數(shù)據(jù)存放目錄。
[root@localhost mysql-5.6.26]# vim /etc/init.d/mysqld
basedir=/usr/local/mysql
datadir=/home/mysql
(11)開(kāi)啟mysql服務(wù),同時(shí)檢查是否監(jiān)聽(tīng)到TCP協(xié)議端口3306。
[root@localhost mysql-5.6.26]# service mysqld start //啟動(dòng)服務(wù)
Starting MySQL. SUCCESS!
[root@localhost mysql-5.6.26]# netstat -anpt | grep 3306
tcp6 0 0 :::3306 :::* LISTEN 53852/mysqld
[root@localhost mysql-5.6.26]#
(12)修改mysql數(shù)據(jù)庫(kù)的管理員密碼。
[root@localhost mysql-5.6.26]# mysqladmin -u root -p password "abc123"
Enter password: //這里輸入原始密碼,原始密碼為空,直接回車(chē)即可
Warning: Using a password on the command line interface can be insecure.
[root@localhost mysql-5.6.26]#
(13)嘗試進(jìn)入mysql數(shù)據(jù)庫(kù),檢查數(shù)據(jù)庫(kù)是否搭建成功。
[root@localhost mysql-5.6.26]# mysql -u root -p //登錄
Enter password: //輸入上一步設(shè)置的密碼
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.26 Source distribution
Copyright (c) 2000, 2015, 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> show databases; //查看數(shù)據(jù)庫(kù)
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
+--------------------+
4 rows in set (0.00 sec)
mysql> quit //退出
Bye
[root@localhost mysql-5.6.26]#
(1)安裝編譯PHP服務(wù)以及服務(wù)所需的相關(guān)工具。
[root@localhost mysql-5.6.26]# yum -y install \
> gd \
> libpng \
> libpng-devel \
> pcre \
> pcre-devel \
> libxml2-devel \
> libjpeg-devel
....... //省略過(guò)程
(2)將PHP服務(wù)的源碼包解壓到“/opt/”目錄下。
[root@localhost mysql-5.6.26]#cd /mnt/
[root@localhost mnt]# ls
apr-1.6.2.tar.gz Discuz_X2.5_SC_UTF8.zip LAMP-php5.6.txt php-5.6.11.tar.bz2
apr-util-1.6.0.tar.gz httpd-2.4.29.tar.bz2 mysql-5.6.26.tar.gz
[root@localhost mnt]# tar jxvf php-5.6.11.tar.bz2 -C /opt/
....... //省略過(guò)程
(3)進(jìn)入“/opt/php-5.6.11/”目錄下,對(duì)PHP服務(wù)進(jìn)行配置。
[root@localhost mnt]# cd /opt/php-5.6.11/
[root@localhost php-5.6.11]# ./configure \
> --prefix=/usr/local/php5 \ //指定安裝路徑
> --with-gd \ //圖片處理庫(kù)
> --with-zlib \ //壓縮函數(shù)庫(kù)
> --with-apxs2=/usr/local/httpd/bin/apxs \ //設(shè)置Apache HTTP Server提供的apxs模塊支持程序的文件位置
> --with-mysql=/usr/local/mysql \ //設(shè)置MySQL數(shù)據(jù)庫(kù)服務(wù)程序安裝位置
> --with-config-file-path=/usr/local/php5 \ //設(shè)置PHP的配置文件php.ini將要存放的位置
> --enable-mbstring //啟用多字節(jié)字符串功能
....... //省略過(guò)程
(4)編譯安裝PHP
[root@localhost php-5.6.11]# make&& make install
....... //省略過(guò)程(編譯時(shí)間較長(zhǎng)耐心等待)
#make進(jìn)行編譯,將源代碼轉(zhuǎn)換為可執(zhí)行程序。make install 進(jìn)行安裝。
(5)將源碼包里的配置文件復(fù)制到“/usr/local/php5/”目錄下,并重命名為“php.ini”,然后同時(shí)在系統(tǒng)識(shí)別的環(huán)境變量目錄“/usr/local/bin/”下,建立PHP服務(wù)執(zhí)行程序的軟鏈接。
[root@localhost php-5.6.11]# cp php.ini-development /usr/local/php5/php.ini
[root@localhost php-5.6.11]# ln -s /usr/local/php5/bin/* /usr/local/bin/
[root@localhost php-5.6.11]#
(6)對(duì)httpd服務(wù)的配置文件“httpd.conf”進(jìn)行修改,使httpd服務(wù)器支持PHP頁(yè)面解析功能。
[root@localhost php-5.6.11]# vim /etc/httpd.conf
<IfModule dir_module>
DirectoryIndex index.html index.php //添加默認(rèn)首頁(yè)識(shí)別php格式文件類(lèi)型
</IfModule>
AddType application/x-httpd-php .php //添加對(duì)“.php”類(lèi)型網(wǎng)頁(yè)文件的支持
AddType application/x-httpd-php-source .phps
(7)重新啟動(dòng)httpd服務(wù),不建議用“restart”,因?yàn)椤皉estart”有些進(jìn)程不會(huì)結(jié)束。
[root@localhost php-5.6.11]# service httpd stop
[root@localhost php-5.6.11]# service httpd start
[root@localhost php-5.6.11]#
(8)修改首頁(yè)文件內(nèi)容,并將首頁(yè)文件“index.html”重命名為“index.php”。
[root@localhost php-5.6.11]# cd /usr/local/httpd/htdocs/
[root@localhost htdocs]# ls
index.html
[root@localhost htdocs]# vim index.html
<?php
phpinfo();
?>
[root@localhost htdocs]# mv index.html index.php
[root@localhost htdocs]# ls
index.php
[root@localhost htdocs]#
(9)此時(shí)再用我們的宿主機(jī)去訪問(wèn)http服務(wù),結(jié)果如下。
(1)進(jìn)入MySQL,為論壇創(chuàng)建一個(gè)名為“bbs”的數(shù)據(jù)庫(kù),
[root@localhost htdocs]# cd /mnt/
[root@localhost mnt]# ls
apr-1.6.2.tar.gz Discuz_X2.5_SC_UTF8.zip LAMP-php5.6.txt php-5.6.11.tar.bz2
apr-util-1.6.0.tar.gz httpd-2.4.29.tar.bz2 mysql-5.6.26.tar.gz
[root@localhost mnt]# mysql -u root -p //登錄
Enter password: //輸入密碼
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.6.26 Source distribution
Copyright (c) 2000, 2015, 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)建數(shù)據(jù)庫(kù)
Query OK, 1 row affected (0.03 sec)
mysql> grant all on bbs.* to 'bbsuser'@'%' identified by 'admin123'; //給bbs數(shù)據(jù)庫(kù)中的所有表格提升權(quán)限,同時(shí)創(chuàng)建管理數(shù)據(jù)庫(kù)的用戶"bbsuser",設(shè)置密碼。"%"表示可以從所有終端訪問(wèn)
Query OK, 0 rows affected (0.01 sec)
mysql> flush privileges; //刷新數(shù)據(jù)庫(kù)
Query OK, 0 rows affected (0.01 sec)
mysql> quit //退出
Bye
[root@localhost mnt]#
(2)將Discuz壓縮包,解壓到“/opt/”目錄下,命名為“dis”。
[root@localhost mnt]# ls
apr-1.6.2.tar.gz Discuz_X2.5_SC_UTF8.zip LAMP-php5.6.txt php-5.6.11.tar.bz2
apr-util-1.6.0.tar.gz httpd-2.4.29.tar.bz2 mysql-5.6.26.tar.gz
[root@localhost mnt]# unzip Discuz_X2.5_SC_UTF8.zip -d /opt/dis
(3)用“cp -r”命令把“upload/”目錄遞歸復(fù)制到,httpd服務(wù)存放網(wǎng)頁(yè)文檔的目錄“/usr/local/httpd/htdocs/”下面,命名為bbs。
[root@localhost mnt]# cd /opt/
[root@localhost opt]# ls
dis httpd-2.4.29 mysql-5.6.26 php-5.6.11 rh
[root@localhost opt]# cd dis/
[root@localhost dis]# ls
readme upload utility
[root@localhost dis]# cp -r upload/ /usr/local/httpd/htdocs/bbs
[root@localhost bbs]#
(4)分別將下列文件或目錄的屬主改為“daemon”。
[root@localhost dis]# cd /usr/local/httpd/htdocs/bbs/
[root@localhost bbs]# ls
admin.php config data home.php misc.php search.php uc_client
api connect.php favicon.ico index.php plugin.php source uc_server
api.php cp.php forum.php install portal.php static userapp.php
archiver crossdomain.xml group.php member.php robots.txt template
[root@localhost bbs]# chown -R daemon ./config //更改屬主
[root@localhost bbs]# chown -R daemon ./data //更改屬主
[root@localhost bbs]# chown -R daemon ./uc_client //更改屬主
[root@localhost bbs]# chown -R daemon ./uc_server/data //更改屬主
[root@localhost bbs]#
(5)在我們的宿主機(jī)瀏覽器輸入http://192.168.52.132/bbs,進(jìn)入論壇安裝界面點(diǎn)擊我同意。
(6)點(diǎn)擊下一步。
(7)選擇全新安裝,點(diǎn)擊下一步。
(8)按照下圖輸入數(shù)據(jù)庫(kù)相關(guān)信息,然后點(diǎn)擊下一步,安裝數(shù)據(jù)庫(kù)。
安裝完畢如下圖:
(9)重新輸入http://192.168.52.132/bbs,成功進(jìn)入論壇。
文章標(biāo)題:CentOS7源碼編譯安裝LAMP架構(gòu),搭建Discuz論壇(詳細(xì)過(guò)程解析)
網(wǎng)頁(yè)鏈接:http://aaarwkj.com/article38/isgpsp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供App開(kāi)發(fā)、做網(wǎng)站、網(wǎng)站建設(shè)、搜索引擎優(yōu)化、微信公眾號(hào)、商城網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
全網(wǎng)營(yíng)銷(xiāo)推廣知識(shí)