Linux上搭建Discuz论坛
一.准备工作
1.下载php*,mariadb-server
2.上传Discuz3.5压缩包并解压
二.搭建过程
基于redhat 9 版本和Discuz3.5,php8.0,mariadb10.5演示
一.准备工作
1.下载php*,mariadb-server
[root@redhat9 aaa]# yum install -y php*
[root@redhat9 aaa]# yum install -y mariadb-server
2.上传Discuz3.5压缩包并解压
[root@redhat9 aaa]# unzip Discuz_X3.5_SC_UTF8_20230316.zip
#/aaa目录是我用于存放Discuz的目录
[root@redhat9 aaa]# ll
总用量 11620
#解压后内容
-rw-r--r--. 1 root root 11766137 3月 25 11:40 Discuz_X3.5_SC_UTF8_20230316.zip
-rw-r--r--. 1 root root 4 3月 25 11:42 index.html
-rw-r--r--. 1 root root 8181 3月 17 09:42 LICENSE
-rw-r--r--. 1 root root 33294 12月 21 03:42 qqqun.png
drwxr-xr-x. 2 root root 124 3月 17 09:52 readme
-rw-r--r--. 1 root root 70226 3月 16 19:54 readme.html
drwxrwxrwx. 12 root root 4096 3月 17 09:52 upload
-rw-r--r--. 1 root root 140 2月 12 15:13 utility.html
二.搭建过程
(1)开启数据库服务
[root@redhat9 ~]# systemctl start mariadb
(2)初始化数据库(里面需要选择的内容可以直接回车跳过)
[root@redhat9 ~]# mysql_secure_installation
简单参考信息
[root@redhat9 ~]# mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDBSERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
haven't set the root password yet, you should just press enter here.Enter current password for root (enter for none): #输入根的当前密码
OK, successfully used password, moving on...Setting the root password or using the unix_socket ensures that nobody
can log into the MariaDB root user without the proper authorisation.You already have your root account protected, so you can safely answer 'n'.Switch to unix_socket authentication [Y/n] #切换到unix_socket身份验证
Enabled successfully!
Reloading privilege tables..... Success!You already have your root account protected, so you can safely answer 'n'.Change the root password? [Y/n] #是否更改根用户密码
New password:
Re-enter new password:
Sorry, you can't use an empty password here.New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..... Success!By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.Remove anonymous users? [Y/n] #是否删除匿名用户... Success!Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.Disallow root login remotely? [Y/n] #是否禁止远程root登录... Success!By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.Remove test database and access to it? [Y/n] #是否删除测试数据库并访问它- Dropping test database...... Success!- Removing privileges on test database...... Success!Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.Reload privilege tables now? [Y/n] #是否立即重新加载权限表... Success!Cleaning up...All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.Thanks for using MariaDB!
(3)登录数据库,-u指定用户,-p指定密码
[root@redhat9 ~]# mysql -uroot -p123
(4)查看当前的数据库信息,并新建启用自己的数据库
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
+--------------------+
3 rows in set (0.003 sec)
MariaDB [(none)]> create database luntan;
Query OK, 1 row affected (0.000 sec)MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| luntan |
| mysql |
| performance_schema |
+--------------------+
4 rows in set (0.000 sec)
MariaDB [(none)]> use luntan;
Database changed
(5)exit退出
MariaDB [(none)]> exit
Bye
[root@redhat9 ~]# systemctl restart mariadb.service
(6)更改httpd相关配置文件
将/etc/httpd/conf.d/下的自己的配置文件改到你解压Discuz压缩包的目录,并在这个目录下新建一个index.html文件并写入内容,更改完成后重启服务
[root@redhat9 ~]# vim /etc/httpd/conf.d/work.conf
<VirtualHost 192.168.2.135>servername www.openlab.comdocumentroot /aaa<Directory /aaa>allowoverride nonerequire all granted</Directory>
</VirtualHost>
[root@redhat9 ~]# cd /aaa
[root@redhat9 aaa]# ll
total 11620
-rw-r--r-- 1 root root 11766137 Mar 25 11:40 Discuz_X3.5_SC_UTF8_20230316.zip
-rw-r--r-- 1 root root 555 Mar 26 19:52 index.html #自己新建
-rw-r--r-- 1 root root 8181 Mar 17 09:42 LICENSE
-rw-r--r-- 1 root root 33294 Dec 21 03:42 qqqun.png
drwxr-xr-x 2 root root 124 Mar 17 09:52 readme
-rw-r--r-- 1 root root 70226 Mar 16 19:54 readme.html
drwxrwxrwx 12 root root 4096 Mar 17 09:52 upload #主要是要访问这个目录
-rw-r--r-- 1 root root 140 Feb 12 15:13 utility.html
[root@redhat9 aaa]# vim /aaa/index.html
<!DOCTYPE html>
<html><head><meta charset="utf-8"><title></title><style>.openlab{font-size: 66px;color: red;text-align: center;text-decoration: none;}</style></head><body><div class="openlab"><a href="http://192.168.2.135/upload">点击进入论坛!!!</div></body>
</html>
(7)重启服务完成后到浏览器访问/upload
[root@redhat9 aaa]# systemctl restart httpd
(8)同意安装向导
(9)更改所示文件和目录权限问题
[root@redhat9 aaa]# cd upload/
[root@redhat9 upload]# ll
total 72
-rw-r--r-- 1 root root 2869 Mar 17 09:52 admin.php
drwxr-xr-x 10 root root 149 Mar 17 09:52 api
-rw-r--r-- 1 root root 727 Mar 17 09:52 api.php
drwxr-xr-x 2 root root 23 Mar 17 09:52 archiver
drwxr-xr-x 2 root root 90 Mar 17 09:52 config
-rw-r--r-- 1 root root 1040 Mar 17 09:52 connect.php
-rw-r--r-- 1 root root 106 Mar 17 09:52 crossdomain.xml
drwxr-xr-x 12 root root 178 Mar 17 09:52 data
-rw-r--r-- 1 root root 5558 Mar 17 09:42 favicon.ico
-rw-r--r-- 1 root root 2357 Mar 17 09:52 forum.php
-rw-r--r-- 1 root root 906 Mar 17 09:52 group.php
-rw-r--r-- 1 root root 1325 Mar 17 09:52 home.php
-rw-r--r-- 1 root root 6912 Mar 17 09:52 index.php
drwxr-xr-x 5 root root 64 Mar 17 09:52 install
-rw-r--r-- 1 root root 998 Mar 17 09:52 member.php
-rw-r--r-- 1 root root 2410 Mar 17 09:52 misc.php
-rw-r--r-- 1 root root 1790 Mar 17 09:52 plugin.php
-rw-r--r-- 1 root root 1086 Mar 17 09:52 portal.php
-rw-r--r-- 1 root root 639 Mar 17 09:52 robots.txt
-rw-r--r-- 1 root root 1755 Mar 17 09:52 search.php
drwxr-xr-x 10 root root 168 Mar 17 09:52 source
drwxr-xr-x 7 root root 86 Mar 17 09:52 static
drwxr-xr-x 3 root root 38 Mar 17 09:52 template
drwxr-xr-x 8 root root 146 Mar 17 09:52 uc_client
drwxr-xr-x 13 root root 4096 Mar 17 09:52 uc_server
[root@redhat9 upload]# chmod +777 -R config/ data/ uc*
全新安装
填写好你自己的信息
之后就可以以管理员身份登录或者注册新用户了
相关文章:
![](https://img-blog.csdnimg.cn/1abe7e972a5d46038ce5eb1a37e05398.png)
Linux上搭建Discuz论坛
一.准备工作 1.下载php*,mariadb-server 2.上传Discuz3.5压缩包并解压 二.搭建过程 基于redhat 9 版本和Discuz3.5,php8.0,mariadb10.5演示 一.准备工作 1.下载php*,mariadb-server [rootredhat9 aaa]# yum install -y php*…...
![](https://img-blog.csdnimg.cn/3a297cd8f156439caa5d919c4a4c0fa8.png)
【蓝桥杯专题】 树状数组(C++ | 洛谷 | acwing | 蓝桥)
菜狗现在才开始备战蓝桥杯QAQ 文章目录【蓝桥杯专题】 (C | 洛谷 | acwing | 蓝桥)什么是线段数组??1264. 动态求连续区间和数星星线段树AcWing 1270. 数列区间最大值PPPPPPP【蓝桥杯专题】 (C | 洛谷 | acwing | 蓝桥) 什么是…...
![](https://img-blog.csdnimg.cn/093706d56d8a4769b1816075ec295931.png#pic_center)
QCefView编译配置(Windows-MSVC)(11)
QCefView编译配置(Windows-MSVC) 文章目录QCefView编译配置(Windows-MSVC)1、概述2、准备工作3、添加环境变量4、更换cef源码版本5、CMake构建6、Visual Studio编译7、安装编译后的文件8、验证编译结果更多精彩内容👉个…...
![](https://www.ngui.cc/images/no-images.jpg)
Token原理
Q:分布式场景下如何生成token以及使用token的流程: 在分布式场景下,可以采用以下方式生成 token 和进行权限认证: 1. 生成 token: 使用JWT(JSON Web Token)生成 token。JWT 是一种基于 JSON …...
![](https://img-blog.csdnimg.cn/20a7f1b58dfb4660b75d7f021c157d57.png#pic_center)
③【Java组】蓝桥杯省赛真题 持续更新中...
个人简介:Java领域新星创作者;阿里云技术博主、星级博主、专家博主;正在Java学习的路上摸爬滚打,记录学习的过程~ 个人主页:.29.的博客 学习社区:进去逛一逛~ 蓝桥杯真题--持续更新中...一、错误票据题目描…...
![](https://img-blog.csdnimg.cn/img_convert/e33637908a8e2c2f0cadfb6b6c630ad9.gif)
linux实验之shell编程基础
这世间,青山灼灼,星光杳杳,秋风渐渐,晚风慢慢 shell编程基础熟悉shell编程的有关机制,如标准流。学习Linux环境变量设置文件及其内容/etc/profile/etc/bashrc/etc/environment~/.profile~/.bashrc熟悉编程有关基础命令…...
![](https://img-blog.csdnimg.cn/img_convert/c018c9be6d97f2c690306cb2d94b5255.png)
C语言小程序:通讯录(静态版)
哈喽各位老铁们,今天给大家带来一期通讯录的静态版本的实现,何为静态版本后面会做解释,话不多说,直接开始!关于通讯录,其实也就是类似于我们手机上的通讯录一样,有着各种各样的功能,…...
![](https://www.ngui.cc/images/no-images.jpg)
写CSDN博客两年半的收获--总结篇
👨💻作者简介:练习时长两年半的java博主 🎟️个人主页:君临๑ ps:点赞是免费的,却可以让写博客的作者开心好几天😎 不知不觉间,在csdn写博客也有两年半的时间了&#x…...
![](https://img-blog.csdnimg.cn/7d16f95fd8b5448fa2a44e53578be9a3.png)
中科亿海微FPGA应用(一、点灯)
1.软件: https://download.csdn.net/download/weixin_41784968/87564071 需要申请license才能使用:软件试用申请_软件试用申请_中科亿海微电子科技(苏州)有限公司 2.开发板: 芯片EQ6HL45,42.5k LUT。 3…...
![](https://www.ngui.cc/images/no-images.jpg)
ElasticSearch - SpringBoot整合ES:实现搜索结果排序 sort
文章目录00. 数据准备01. Elasticsearch 默认的排序方式是什么?02. Elasticsearch 支持哪些排序方式?03. ElasticSearch 如何指定排序方式?04. ElasticSearch 如何按照相关性排序?05. ElasticSearch 查询结果如何不按照相关性排序…...
![](https://img-blog.csdnimg.cn/img_convert/1a4db016ad334bd3bff86ff82a31f554.png)
IDEA的全新UI可以在配置里启用了,快来试试吧!
刚看到IDEA官方昨天发了这样一条推:IDEA的新UI可以在2022.3版本上直接使用了!开启方法如下:打开IDEA的Setting界面,在Appearance & Behavior下有个被标注为Beta标签的New UI菜单,具体如下图:勾选Enable…...
![](https://www.ngui.cc/images/no-images.jpg)
第九章 镜像架构和规划 - 备份处于活动状态时自动进行故障转移
文章目录第九章 镜像架构和规划 - 备份处于活动状态时自动进行故障转移备份处于活动状态时自动进行故障转移备份不活动时的自动故障转移对各种中断场景的镜像响应响应主要中断场景的自动故障转移第九章 镜像架构和规划 - 备份处于活动状态时自动进行故障转移 备份处于活动状态…...
![](https://img-blog.csdnimg.cn/img_convert/4330a86bfdcdb793ac38e77461798d33.webp?x-oss-process=image/format,png)
Barra模型因子的构建及应用系列七之Liquidity因子
一、摘要 在前期的Barra模型系列文章中,我们构建了Size因子、Beta因子、Momentum因子、Residual Volatility因子、NonLinear Size因子和Book-to-Price因子,并分别创建了对应的单因子策略,其中Size因子和NonLinear Siz因子具有很强的收益能力…...
![](https://img-blog.csdnimg.cn/598207aac0f5449abf5776e0e590c60d.png)
走进二叉树的世界 ———性质讲解
二叉树的性质和证明前言1.二叉树的概念和结构特殊的二叉树:二叉树的性质前言 本篇博客主要讲述的是有关二叉树的一些概念,性质以及部分性质的相关证明,如果大伙发现了啥错误,可以在评论区指出😘😘 1.二叉树…...
![](https://img-blog.csdnimg.cn/20a7f1b58dfb4660b75d7f021c157d57.png#pic_center)
【SSM】Spring + SpringMVC +MyBatis 框架整合
个人简介:Java领域新星创作者;阿里云技术博主、星级博主、专家博主;正在Java学习的路上摸爬滚打,记录学习的过程~ 个人主页:.29.的博客 学习社区:进去逛一逛~ SSM框架整合一、导入相关依赖二、配置web.xml文…...
![](https://img-blog.csdnimg.cn/dd52615e6d4d419bb71365add1e3c7ac.png#pic_center)
【算法基础】一篇文章彻底弄懂Dijkstra算法|多图解+代码详解
博主简介:努力学习的大一在校计算机专业学生,热爱学习和创作。目前在学习和分享:算法、数据结构、Java等相关知识。博主主页: 是瑶瑶子啦所属专栏: 算法 ;该专栏专注于蓝桥杯和ACM等算法竞赛🔥近期目标&…...
![](https://img-blog.csdnimg.cn/img_convert/e81ce2c68c9e825ecbd927cf5df44dd0.jpeg)
第二十三天01MySQL多表查询与事务
目录 1. 多表查询 1.1 概述 1.1.1 数据准备 1.1.2 介绍 1.1.3 分类 1.2 内连接 1.2.1 语法 1.2.2 案例演示 1.3 外连接 1.3.1 语法 1.3.2 案例演示 1.4 子查询 1.4.1 介绍 1.4.2 标量子查询 1.4.3 列子查询 1.4.4 行子查询 1.4.5 表子查询 1.5 案例 1.5.1 介…...
![](https://img-blog.csdnimg.cn/img_convert/8f7ec6370a6e6a16510db6cad5c73635.png)
TCP协议详解
1.TCP的准备条件在古代的时候,古人们经常写书信进行交流,写书信的前提是你要知道这份信是要寄给谁在网络中,我们通过ip端口号找对目标对象,但是现在网站一般会对ip端口注册一个域名,所以我们一般就是对域名进行查找&am…...
![](https://img-blog.csdnimg.cn/img_convert/c2c35e3f8e9d5de0ae93995ef197aa58.png)
Activiti7与Spring、Spring Boot整合开发
Activiti整合Spring 一、Activiti与Spring整合开发 1.1 Activiti与Spring整合的配置 1)、在pom.xml文件引入坐标 如下 <properties><slf4j.version>1.6.6</slf4j.version><log4j.version>1.2.12</log4j.version> </properties> <d…...
![](https://img-blog.csdnimg.cn/1bbb0d6ffed4426594469d353af6fc01.png)
基于SpringBoot实现冬奥会运动会科普平台【源码+论文】
基于SpringBoot实现冬奥会科普平台演示开发语言:Java 框架:springboot JDK版本:JDK1.8 服务器:tomcat7 数据库:mysql 5.7 数据库工具:Navicat11 开发软件:eclipse/myeclipse/idea Maven包&#…...
![](https://img-blog.csdnimg.cn/e15b88a853574cf790eab90d2fca6520.gif#pic_center)
一文吃透SpringBoot整合mybatis-plus(保姆式教程)
✅作者简介:2022年博客新星 第八。热爱国学的Java后端开发者,修心和技术同步精进。 🍎个人主页:Java Fans的博客 🍊个人信条:不迁怒,不贰过。小知识,大智慧。 💞当前专栏…...
![](https://www.ngui.cc/images/no-images.jpg)
C++ primer plus(第六版)编程练习答案 第4章 复合类型
一、程序清单 arrayone.cpp // arrayone.cpp -- small arrays of integers #include <iostream> int main() {using namespace std;int yams[3]; // creates array with three elementsyams[0] = 7; // assign value to first elementyams[1] = 8;yams[2] = 6;i…...
![](https://img-blog.csdnimg.cn/8d444ca57623469bacac3e96d379fdbf.png)
Kafka源码分析之Producer(一)
总览 根据kafka的3.1.0的源码example模块进行分析,如下图所示,一般实例代码就是我们分析源码的入口。 可以将produce的发送主要流程概述如下: 拦截器对发送的消息拦截处理; 获取元数据信息; 序列化处理;…...
![](https://img-blog.csdnimg.cn/9f1affa0db554326a58d3e2c1a41bb48.png)
springboot校友社交系统
050-springboot校友社交系统演示录像开发语言:Java 框架:springboot JDK版本:JDK1.8 服务器:tomcat7 数据库:mysql 5.7(一定要5.7版本) 数据库工具:Navicat11 开发软件:e…...
![](https://img-blog.csdnimg.cn/img_convert/67a0a2292e41f9ba37d2a44d836945d0.png)
python flask项目部署
flask上传服务器pyhon安装下载Anacondasudo wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.3.1-Linux-x86_64.sh可根据需要安装对应的版本https://repo.anaconda.com/archive/解压anaconda压缩包bash Anaconda3-5.3.1-Linux-x86_64.sh解压过程中会…...
![](https://img-blog.csdnimg.cn/1a863479bc7f4e4281caf0cad00268ad.png)
常见排序算法(C语言实现)
文章目录排序介绍插入排序直接插入排序希尔排序选择排序选择排序堆排序交换排序冒泡排序快速排序递归实现Hoare版本挖坑法前后指针版本非递归实现Hoare版本挖坑法前后指针版本快排的优化三值取中小区间优化归并排序递归实现非递归实现计数排序排序算法复杂度及稳定性分析不同算…...
![](https://img-blog.csdnimg.cn/img_convert/73a5f96c5ae144f79b93c6c9d58e8083.png)
基于jsp+ssm+springboot的小区物业管理系统【设计+论文+源码】
摘 要随着科学技术的飞速发展,各行各业都在努力与现代先进技术接轨,通过科技手段提高自身的优势;对于小区物业管理系统当然也不能排除在外,随着网络技术的不断成熟,带动了小区物业管理系统,它彻底改变了过去…...
![](https://img-blog.csdnimg.cn/f9bca6ee56b041b99e0a55b4df039a96.png)
Elasticsearch 学习+SpringBoot实战教程(三)
需要学习基础的可参照这两文章 Elasticsearch 学习SpringBoot实战教程(一) Elasticsearch 学习SpringBoot实战教程(一)_桂亭亭的博客-CSDN博客 Elasticsearch 学习SpringBoot实战教程(二) Elasticsearch …...
![](https://www.ngui.cc/images/no-images.jpg)
try-with-resource
try-with-resource是Java 7中引入的新特性,它可以方便地管理资源,自动关闭资源,从而避免了资源泄漏的问题。 作用 使用try-with-resource语句可以简化代码,避免了手动关闭资源的繁琐操作,同时还可以保证资源的正确关闭…...
![](https://www.ngui.cc/images/no-images.jpg)
leetcode148_排序链表的3种解法
1. 题目2. 解答 2.1. 解法12.2. 解法22.3. 解法3 1. 题目 给你链表的头结点head,请将其按升序排列并返回排序后的链表。 /*** Definition for singly-linked list.* struct ListNode {* int val;* ListNode *next;* ListNode() : val(0), next(nullp…...
![](https://img-blog.csdnimg.cn/img_convert/08cd494acfa269d7394262af5fd696bb.png)
邳州做网站的公司/b2b网站免费推广
于戴尔笔记本怎么重装系统呢?其实关于戴尔笔记本怎么重装系统的方法小编也是说过的了,但是还是有不少的用户不知道戴尔笔记本电脑怎么重装系统,接下来是小编为大家收集的dell2900如何重装系统,欢迎大家阅读。dell2900如何重装系统第一步、设…...
![](/images/no-images.jpg)
青岛移动公司网站/工具站seo
早晨起床时间:7:00 晚上休息时间:22:55 全天处理事件:1.面试。2.出去游玩。 处事经验总结:暂无。 人生感悟:暂无。 其它:暂无。...
![](https://img2020.cnblogs.com/i-beta/1829785/202003/1829785-20200319221920515-444324241.png)
现在做网站开发/电商运营培训学费多少
常用工具介绍当 Docker 部署规模逐步变大后,可视化监控容器环境的性能和健康状态将会变得越来越重要。 Docker的图形化管理工具,提供状态显示面板、应用模板快速部署、容器镜像网络数据卷的基本操作(包括上传下载镜像,创建容器等操…...
![](/images/no-images.jpg)
改变网站字体/百度空间登录
Lucene的概述: Lucene(发音为 [lusen] )是一个非常优秀的开源的全文搜索引擎,我们可以在它的上面开发出各种全文搜索的应用来。Lucene在国外有很高的知名度,现在已经是Apache的顶级项目,在国内,Lucene的应用也越来越多。 Lucene的…...
![](https://img-blog.csdnimg.cn/20210714212927725.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQxOTM0OTkw,size_16,color_FFFFFF,t_70)
博客式笑话网站织梦源码/潍坊seo招聘
Spring AOP AOP介绍 Aop为Aspect Oriented Programming的缩写,面向切面编程,是通过预编译方式和运行期动态代理实现程序功能的统一维护的一种技术。 AOP 是 OOP 的延续,是软件开发中的一个热点,也是Spring框架中的一个重要内容&…...
![](https://img-blog.csdnimg.cn/562bd38e914e45c4bb3578f88c366457.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBASGFvX0p1bkppZQ==,size_20,color_FFFFFF,t_70,g_se,x_16)
高新技术企业网站怎么做/做推广的都是怎么推
一、定义: Java 语言提供了对象终止(finalization)机制来允许开发人员提供对象被销毁之前的自定义出来逻辑 二、执行时机: 当垃圾回收发现没有一个引用指向一个对象,即:垃圾回收此对象之前,总…...