Discuz:
cd /root/Desktop/LAMP/
unzip Discuz_7.2_FULL_SC_GBK.zip
cp -rupload/ /usr/local/apache/htdocs/或直接把安装包拿到/usr/local/apache/htdocs/下解压
chmod 777 -R /usr/local/apache/htdocs/upload/
测试:在linux-firefox浏览器地址栏输入http://127.0.0.1/upload/install (本机测试)
或在win-IE浏览器地址栏输入http://xxx.xxx.xxx.xxx/upload/install (支持中文,桥接/NAT模式)
进入Discuz论坛安装界面

搭建过程中遇到的问题:
1.安装MySQL,执行./INSTALL-SOURCE时,遇到以下两种情况:
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... No
.................
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
原因:未装gcc等编译工具
解决:# yum install gcc* -y再./INSTALL-SOURCE
checking for tgetent in -lncurses... no lncurses======>l : lib
checking for tgetent in -lcurses... No ==>ncurses: 库名(待装)
checking for tgetent in -ltermcap... no
checking for termcap functions library... configure: error: No curses/termcap library found
make: *** 没有指明目标并且找不到 makefile。 停止。
make: *** 没有规则可以创建目标“install”。 停止。
cp: 无法 stat “support-files/my-medium.cnf”: 没有那个文件或目录
./INSTALL-SOURCE: line 6: cd: /usr/local/mysql: 没有那个文件或目录
./INSTALL-SOURCE: line 7: bin/mysql_install_db: 没有那个文件或目录
chown: 无法访问 “var”: 没有那个文件或目录
./INSTALL-SOURCE: line 11: bin/mysqld_safe: 没有那个文件或目录
原因:ncurses/curses/termcap 库没有安装
解决:
① 下载一个ncurses-5.6.tar.gz,wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz
tar zxvf ncurses-5.6.tar.gz
cd ncurses-5.6
./configure –prefix=/usr –with-shared –without-debug
make
make install clean
② 或者yum install ncurses* -y
再./INSTALL-SOURCE
