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/install/index.php
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 777 config/ data/ uc_client/ uc_server/
4、修改数据库,用于操作
[root@localhost ~]# mysql -uroot -p"123123" mysql> create database bbs; Query OK, 1 row affected (0.01 sec) mysql> grant all on bbs.* to 'bbs'@'localhost' identified by 'bbs123123'; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec)