标签:vhost base 转换 restart 启动 文件 gre load ase
测试:
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‘ ##登录用户及密码
填写:
下一步:
搭建成功!
标签:vhost base 转换 restart 启动 文件 gre load ase
原文地址:http://www.cnblogs.com/cc-Study/p/6407314.html