前提:LNMP平臺已搭建好,centos6.4,ip地址192.168.0.105。php
一、下載論壇程序到相應的目錄下
html
[root@client ~]# cd /usr/local/nginx/html/ //進入默認的網頁目錄 [root@client html]# wget http://download.comsenz.com/DiscuzX/3.1/Discuz_X3.1_SC_UTF8.zip [root@client html]# unzip Discuz_X3.1_SC_UTF8.zip //解壓 [root@client html]# mv upload/* . //將upload下的內容移到當前目錄 [root@client html]# ls admin.php crossdomain.xml index.php robots.txt upload api data install search.php userapp.php api.php Discuz_X3.1_SC_UTF8.zip member.php source utility archiver favicon.ico misc.php static config forum.php plugin.php template connect.php group.php portal.php uc_client cp.php home.php readme uc_server [root@client html]# rm -rf readme/ utility/ upload/ Discuz_X3.1_SC_UTF8.zip //刪除多餘的目錄,只保留upload下的內容,網站的程序是放在upload下的。 [root@client html]# chown -R php-fpm data config uc_client/data uc_server/data //設置權限 [root@client html]# service mysqld start //開啓mysql Starting MySQL SUCCESS!
二、進入http://192.168.0.105網頁,根據網頁提示進行論壇安裝。mysql