mkdir /data/www
cd /data/www
unzip Discuz_X3.2_SC_UTF8.zip
ls upload/ //主配置文件
mv upload/ ./
rm -fr readme/ utility/ upload/ Discuz_X3.2_SC_UTF8.zip
vi /usr/local/apache2.4/conf/httpd.conf
去掉vhost前的#
vi /usr/local/apache2.4/conf/extra/httpd-vhosts.conf
vi /usr/local/apache2.4/conf/extra/httpd-vhosts.conf //配置根目录、域名和别名
/usr/local/apache2.4/bin/apachectl -t
/usr/local/apache2.4/bin/apachectl graceful
修改window的hosts文件
Ping测试。防火墙
Windows访问。
右边当前状态显示不可写,如何让他们可写呢?
解决办法:
ps -aux|grep http //想要它们可写需要设置成daemon
root 2240 0.0 2.5 258312 12704 ? Ss 05:01 0:00 /usr/local/apache2.4/bin/httpd -k graceful
daemon 2435 0.0 2.4 807284 12280 ? Sl 05:12 0:00 /usr/local/apache2.4/bin/httpd -k graceful
chown -R daemon config data uc_client/data/ uc_server/data/
默认“下一步”
vi /etc/profile
粘贴PATH=$PATH:/usr/local/mysql/bin/
Mysql
create database discuz;
grant all on discuz. to 'lshx'@'localhost' identified by '123456';
安装完成
cd /data/www
unzip Discuz_X3.2_SC_UTF8.zip
ls upload/ //主配置文件
mv upload/ ./
rm -fr readme/ utility/ upload/ Discuz_X3.2_SC_UTF8.zip
vi /usr/local/apache2.4/conf/httpd.conf
去掉vhost前的#
vi /usr/local/apache2.4/conf/extra/httpd-vhosts.conf
vi /usr/local/apache2.4/conf/extra/httpd-vhosts.conf //配置根目录、域名和别名
/usr/local/apache2.4/bin/apachectl -t
/usr/local/apache2.4/bin/apachectl graceful
修改window的hosts文件
Ping测试。防火墙
Windows访问。
右边当前状态显示不可写,如何让他们可写呢?
解决办法:
ps -aux|grep http //想要它们可写需要设置成daemon
root 2240 0.0 2.5 258312 12704 ? Ss 05:01 0:00 /usr/local/apache2.4/bin/httpd -k graceful
daemon 2435 0.0 2.4 807284 12280 ? Sl 05:12 0:00 /usr/local/apache2.4/bin/httpd -k graceful
chown -R daemon config data uc_client/data/ uc_server/data/
默认“下一步”
vi /etc/profile
粘贴PATH=$PATH:/usr/local/mysql/bin/
Mysql
create database discuz;
grant all on discuz. to 'lshx'@'localhost' identified by '123456';
安装完成
本文转自 虾米的春天 51CTO博客,原文链接:http://blog.51cto.com/lsxme/2048913,如需转载请自行联系原作者