1、准备环节

[root@localhost ~]# unzip ComsenzDiscuz-DiscuzX-master.zip    //解包
[root@localhost ~]# cd DiscuzX/ [root@localhost DiscuzX]# ls upload/
admin.php crossdomain.xml index.php portal.php uc_client
api data install robots.txt uc_server
api.php favicon.ico m search.php
archiver forum.php member.php source
config group.php misc.php static
connect.php home.php plugin.php template

2、上传bbs代码

[root@localhost DiscuzX]# mv upload/ /usr/local/nginx/html/bbs

进网页,浏览器访问http://192.168.200.111/bbs


部署ComsenzDiscuz BBS论坛系统-LMLPHP

3、设置模板文件及权限

[root@localhost ~]# cd /usr/local/nginx/html/bbs/config
[root@localhost config]# cp config_global_default.php config_global.php
[root@localhost config]# cp config_ucenter_default.php config_ucenter.php [root@localhost ~]# cd /usr/local/nginx/html/bbs/
[root@localhost bbs]# chmod -R config/ data/ uc_client/ uc_server/

部署ComsenzDiscuz BBS论坛系统-LMLPHP

4、修改数据库,用于操作

[root@localhost ~]# mysql -uroot -p""
mysql> create database bbs;
Query OK, row affected (0.01 sec)
mysql> grant all on bbs.* to 'bbs'@'localhost' identified by 'bbs123123';
Query OK, rows affected, warning (0.00 sec)
mysql> flush privileges;
Query OK, rows affected (0.00 sec)

部署ComsenzDiscuz BBS论坛系统-LMLPHP

05-24 07:19