測試:
vim /etc/hosts ##ip地址轉換
修改windows 的配置文件,寫字板打開
vim /usr/local/apache/conf/httpd.conf
vim /usr/local/apache/conf/extra/httpd-vhosts.conf
mkdir /data/www
cd /data/www/
wget 'http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_GBK.zip'
unzip Discuz_X3.2_SC_GBK.zip
mv upload/* ./ ##只要upload
rm -rf readme/ utility/ upload/ Discuz_X3.2_SC_GBK.zip ##刪除沒用的
vim /usr/local/apache/conf/httpd.conf ##修改權限 允許所有
/usr/local/apache/bin/apachectl -t ##監測配置文件是否有錯
/usr/local/apache/bin/apachectl restart ##重啟apache
打開網頁:
http://www.test.com/
ps aux |grep http
修改屬主(看不可寫的所有目錄):
chown -R daemon config data uc_client/data uc_server/data
配置mysql啟動項:
vim /etc/profile.d/path.sh
source /etc/profile.d/path.sh
創建數據庫:
mysql
create database discuz;
grant all on discuz.* to 'cc'@'localhost' identified by '123456' ##登錄用戶及密碼
填寫:
下一步:
搭建成功!
http://www.bkjia.com/Linuxjc/1193617.html TechArticle