初探 discuz,discuz

來源:互聯網
上載者:User

初探 discuz,discuz

測試:

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'   ##登入使用者及密碼

 

填寫:

 

 下一步:

 

搭建成功!

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.