[Email protected] ~]# mkdir/data/www
[Email protected] ~]# cd/data/www
[email protected] www]# wget Http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_GBK.zip
[[email protected] www]# Unzip Discuz_x3.2_sc_gbk.zip//Unzip
[[email protected] www]# ls
Discuz_x3.2_sc_gbk.zip Readme Upload Utility//program stored in upload directory
[[Email protected] www]# mv upload/*./(Bring all the files from the upload directory)
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7A/F6/wKiom1bDJ1PThxutAAArmOq2d80365.png "title=" Remove upload file "alt=" Wkiom1bdj1pthxutaaarmoq2d80365.png "/>
[[email protected] www]# RM-RF readme/utility/upload/discuz_x3.2_sc_gbk.zip//delete redundant directories
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7A/F6/wKioL1bDKHHTednTAAAkOuJWjHY917.png "title=" remaining Files " alt= "Wkiol1bdkhhtedntaaakoujwjhy917.png"/>
Check if Apache is started, indicating that it is not started
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7A/F6/wKioL1bDKQHw58VlAAAP9iQyI88775.png "title=" Check Apache "alt=" Wkiol1bdkqhw58vlaaap9iqyi88775.png "/>
Start configuring the virtual host below:
650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M00/7A/F6/wKiom1bDKybiBVVTAAAOayiKu14830.png "title=" Configure the virtual host "alt=" Wkiom1bdkybibvvtaaaoayiku14830.png "/>
Press the ESC key, press the/key, enter vhosts,//search for this file.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7A/F6/wKioL1bDLivCgyFsAAAOU-gI1qs656.png "title=" vhosts "alt=" Wkiol1bdlivcgyfsaaaou-gi1qs656.png "/>
The configuration file for the virtual host strips the # number under the extra directory in the Conf directory
Include conf/extra/httpd-vhosts.conf
Press ESC,:WQ to save the exit
This file has been loaded in effect.
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7A/F6/wKiom1bDLmngdmHqAAAORnmiFHA165.png "title=" BZP " alt= "Wkiom1bdlmngdmhqaaaornmifha165.png"/>
Edit a virtual host configuration file
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7A/F6/wKioL1bDL1Pxt1bMAAA_K0o6qx0796.png "title=" a "alt= "Wkiol1bdl1pxt1bmaaa_k0o6qx0796.png"/>
Edit as:
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7A/F6/wKioL1bDL6LRp0rEAAAlv65tBu0569.png "title=" B "alt= "Wkiol1bdl6lrp0reaaalv65tbu0569.png"/>
Check file for errors
[Email protected] www]# /usr/local/apache2/bin/apachectl-t
Syntax OK
Vim/usr/local/apache2/conf/httpd.conf
/ServerName//Search this file
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7A/F6/wKioL1bDMC6RatnLAAAnjI34aGA492.png "title=" SN "alt = "Wkiol1bdmc6ratnlaaanji34aga492.png"/>
ServerName www.example.com:80//Remove # #, save exit OK.
Configuring the Hosts file (parsing the meaning of the Ip,dns service)
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7A/F6/wKiom1bDMHvTWhWuAAAKw1cUYgY900.png "title=" CK "alt = "Wkiom1bdmhvtwhwuaaakw1cuygy900.png"/>
[Email protected] www]# vim/etc/hosts
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7A/F6/wKiom1bDMQXRRfFRAAA1s6BAIiQ268.png "title=" hosts " alt= "Wkiom1bdmqxrrffraaa1s6baiiq268.png"/>
Ping Baidu, the local entry into force.
Locate the Hosts file under Windows, edit 192.168.1.105 www.test.com www.aaa.com Save exit
[Email protected] www]# vim/usr/local/apache2/conf/httpd.conf
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7A/F6/wKiom1bDNjmT5j1nAAAadzfM_GI029.png "title=" C1 "alt = "Wkiom1bdnjmt5j1naaaadzfm_gi029.png"/>
Change to such as:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7A/F6/wKioL1bDNueRdcCqAAAajnVCue4628.png "title=" C2 "alt = "Wkiol1bdnuerdccqaaaajnvcue4628.png"/>
[Email protected] www]#/usr/local/apache2/bin/apachectl-t
Syntax OK
[Email protected] www]#/usr/local/apache2/bin/apachectl restart
[Email protected] www]#
running in IE www.test.com Figure 1
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7A/F6/wKioL1bDOD2AaE5UAABasmUvjpI026.png "title=" T1 "alt = "Wkiol1bdod2aae5uaabasmuvjpi026.png"/>
Figure 2:
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7A/F6/wKioL1bDOJzzqkWJAAA6_ywEElw011.png "title=" T2 "alt = "Wkiol1bdojzzqkwjaaa6_yweelw011.png"/>
Figure 3:
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7A/F6/wKiom1bDOH6jr8CsAABnWulXdGY968.png "title=" T3 "alt = "Wkiom1bdoh6jr8csaabnwulxdgy968.png"/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7A/F6/wKioL1bDOXvxE1l1AAAi5L4iYLc585.png "title=" DM "alt=" Wkiol1bdoxvxe1l1aaai5l4iylc585.png "/>//means Apache runs as daemon user
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/7A/F6/wKiom1bDOX3ThQvmAAAhOFK_ero694.png "title=" ls "alt = "Wkiom1bdox3thqvmaaahofk_ero694.png"/>
[[email protected] www]# chown-r daemon config data uc_client/data uc_server/data///This directory file permissions changed to writable state
[Email protected] www]#
Refresh IE on the go.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7A/F6/wKiom1bDOezA1DjrAAA7DvpcH1Y843.png "title=" CS "alt = "Wkiom1bdoeza1djraaa7dvpch1y843.png"/>
Next
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7A/F6/wKiom1bDOkixN3xzAACQMySpt5o741.png "title=" HJ "alt = "Wkiom1bdokixn3xzaacqmyspt5o741.png"/>
First install, directly next.
Configuration database:
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7A/F6/wKiom1bDOwPQ8s7uAAA1cNo5q08982.png "title=" PK "alt = "Wkiom1bdowpq8s7uaaa1cno5q08982.png"/>
[[email protected]/]# whereis mysql// find previously configured MySQL path
MySQL:/usr/lib64/mysql/usr/local/mysql/usr/share/mysql
[[email protected]/]# RPM-QA |grep mysql*// view MySQL package name
Mysql-libs-5.1.73-5.el6_6.x86_64
[[email protected]/]# yum remove MySQL //uninstall previously configured MySQL because Discuz comes with a database
If you want to use MySQL directly, you need to edit the environment variables.
[[email protected] www]# MySQL
-bash:mysql:command not found
[Email protected] www]# vim/etc/profile.d/path.sh
Edit the contents as follows:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7A/F6/wKiom1bDO4LzCrkSAAA3SJWPLBA891.png "title=" BJMYSQLHJBL "alt=" Wkiom1bdo4lzcrksaaa3sjwplba891.png "/>
[Email protected] www]# source!$
source/etc/profile.d/path.sh
[[email protected] www]# MySQL
Welcome to the MySQL Monitor. Commands End With; or \g.
Your MySQL Connection ID is 6
Server version:5.1.73 MySQL Community Server (GPL)
Copyright (c) and/or, Oracle, its affiliates. All rights reserved.
Oracle is a registered trademark of the Oracle Corporation and/or its
Affiliates. Other names trademarks of their respective
Owners.
Type ' help ', ' or ' \h ' for help. Type ' \c ' to clear the current input statement.
Mysql> quit
Bye
[[email protected] www]# which MySQL
/usr/local/mysql/bin/mysql
[[email protected] www]# MySQL
Welcome to the MySQL Monitor. Commands End With; or \g.
Your MySQL Connection ID is 7
Server version:5.1.73 MySQL Community Server (GPL)
Copyright (c) and/or, Oracle, its affiliates. All rights reserved.
Oracle is a registered trademark of the Oracle Corporation and/or its
Affiliates. Other names trademarks of their respective
Owners.
Type ' help ', ' or ' \h ' for help. Type ' \c ' to clear the current input statement.
mysql> CREATE DATABASE discuz; Create a database
Query OK, 1 row affected (0.04 sec)
Mysql> Grant all on discuz.* to ' ajing ' @ ' localhost ' identified by ' ajing '; Create a user and password for the library
Query OK, 0 rows affected (0.06 sec)
Mysql>
After the above parameters are configured OK, edit the database information. Example: (Here the Administrator password is 123456)
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7A/F6/wKiom1bDPBmgkyLtAADIWFGL0Tw580.png "title=" xkm " alt= "Wkiom1bdpbmgkyltaadiwfgl0tw580.png"/>
Next, as shown in the following process:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7A/F6/wKioL1bDPOXShsT4AAFOYI8hl5M957.png "title=" W "alt= "Wkiol1bdpoxshst4aafoyi8hl5m957.png"/>
Click on your forum to complete the installation, click here to access
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7A/F6/wKioL1bDPUGzs5VuAABSzmjnnQ8958.png "title=" OK "alt = "Wkiol1bdpugzs5vuaabszmjnnq8958.png"/>
This article is from the "11068581" blog, please be sure to keep this source http://11078581.blog.51cto.com/11068581/1742581
Installing discuz! under CentOS