S1:下载discuz程序
discuz官网:http://www.discuz.net/forum.php
-
#yum install -y git
-
#git clone https://gitee.com/ComsenzDiscuz/DiscuzX.git
-
#cp -r DiscuzX/upload /tmp/wwwroot/bbs.leon.cc
-
#ls !$
S2:定义虚拟主机配置文件
- 1)#cd /etc/nginx/conf.d
- 2)#cp blog.leon.cc.conf bbs.leon.cc.conf
- 3)修改bbs.leon.cc.conf里的目录 :1,$#blog.leon.cc#bbs.leon.cc#g
- 4)nginx -t && nginx -s reload
S3:开始安装
-
1)改权限
#cd /tmp/wwwroot/bbs.leon.cc
#chown -R php-fpm config data uc_server/data uc_client/data
-
2)数据库设置
#mysql -uroot -proot
-
>create database bbs;
-
>grant all on bbs.* to 'bbs'@'127.0.0.1' identified by 'root';
-
>exit
#mysql -uroot -proot -h127.0.0.1
3)