LNMP 应用--搭建属于自己的Discuz 论坛

一、搭建Discuz 论坛

注:论坛的搭建需要LNMP网站服务器的支持,关于网站服务搭建详细流程在上篇博文中已详细介绍,敬请关注!

二、架设Discuz 论坛实验

2.1、上传解压论坛压缩包

#将压缩包传入/opt下面##
[root@localhost opt]# cd /opt
[root@localhost opt]# yum -y install unzip
[root@localhost opt]# unzip Discuz_X3.4_SC_UTF8.zip -d /tmp
[root@localhost opt]# cd /tmp/dir_SC_UTF8/

2.2、设置论坛权限

[root@localhost dir_SC_UTF8]# cp -r upload/ /usr/local/nginx/html/bbs/
[root@localhost dir_SC_UTF8]# cd /usr/local/nginx/html/bbs/
[root@localhost bbs]# chown -R root:nginx ./config/
[root@localhost bbs]# chown -R root:nginx ./data/
[root@localhost bbs]# chown -R root:nginx ./uc_client/
[root@localhost bbs]# chown -R root:nginx ./uc_server/
[root@localhost bbs]# chmod -R 777 ./config/
[root@localhost bbs]# chmod -R 777 ./data/
[root@localhost bbs]# chmod -R 777 ./uc_client/
[root@localhost bbs]# chmod -R 777 ./uc_server/

2.3、访问论坛

http://20.0.0.25/bbs/install/index.php
数据库服务器:localhost   #本地架设就用 localhost,如果不是在本机上就要填写IP地址和端口
数据库名字: bbs
数据库用户名: bbsadm
数据库密码:admin123
管理员账号:admin123
管理员密码:Abc123
[root@localhost bbs]# cd /usr/local/nginx/html/bbs/
[root@localhost bbs]# mv install/ install.lock
[root@localhost bbs]# chmod 600 install.lock/  ##安全性考虑,防止该论坛被其他用户登录,需要将这个文件删除或者改名##
http://20.0.0.25/bbs/admin.php    ##管理后台##
账户:admin
密码:Abc123
http://20.0.0.25/bbs/index.php

2.4、进行验证访问论坛

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
这边论坛就搭建好了

猜你喜欢

转载自blog.csdn.net/weixin_48191211/article/details/108494198