论坛搭建.

目录

一.配置软件仓库

[二.安装http php miriadb](#二.安装http php miriadb)

三.配置数据库


一.配置软件仓库

1.进入仓库目录

cd /etc/yum.repos.d

2.创建仓库文件

vim local.repo

3.在 local.repo中写入:(粘贴的时候注意位置)

biaoshi\] 仓库标识符 name=miaoshu 仓库的名称 baseurl=/mnt/BaseOS 仓库的URL,软件包文件存储的位置 enable=1 仓库是否启用的参数 gpgcheck=0 禁用 GPG 签名检查 \[biaoshi2

name=miaoshu2

baseurl=/mnt/AppStream

enable=1

gpgcheck=0

4.将光驱里的镜像iso挂载到/mnt

mount /dev/sr0 /mnt

5.安装httpd

yum install httpd

6.启动 httpd 服务:

systemctl start httpd

7.开机自动启动:

systemctl enable httpd

二.安装http php miriadb

dnf install httpd php* mariadb mariadb-server

三.配置数据库

systemctl start httpd //启动httpd服务

systemctl start mariadb //启动mariadb服务

mysql -uroot -p //设置用户名及密码

create database luntan; //创建luntan数据库

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('redhat123'); //更改密码生效

cd /var/www/html

将论坛压缩包拖拽到虚拟机中

unzip Discuz_X3.5_SC_UTF8_20230520.zip //解压

解压文件需重新输入

cd upload/

firewall-cmd --permanent --add-service=http

firewall-cmd --reload

systemctl restart httpd

进入浏览器输入:192.168.233.132/upload

对部分缺少权限的文件赋予权限:

chmod 777 data/ uc_client uc_server/ config/ -R

setenforce 0

界面参数设置:

相关推荐
Flash.kkl6 小时前
Linux——进程信号
运维·服务器
苏宸啊7 小时前
Linux权限
linux·运维·服务器
Gofarlic_oms17 小时前
Windchill用户登录与模块访问失败问题排查与许可证诊断
大数据·运维·网络·数据库·人工智能
xqhoj7 小时前
Linux——make、makefile
linux·运维·服务器
文亭湖畔程序猿8 小时前
Debian 12 日常命令 & nano 快捷键速查表
运维·debian
张童瑶8 小时前
Linux 在线安装编译Python3.11
linux·运维·python3.11
ziqibit8 小时前
debian Live with Persistence 持久化U盘的debian系统
运维·debian
Shi_haoliu8 小时前
SolidTime 在 Rocky Linux 9.5 上的完整部署流程
linux·运维·nginx·postgresql·vue·php·laravel
Lkygo8 小时前
LlamaIndex使用指南
linux·开发语言·python·llama
qq_254617779 小时前
nslookup 这个命令解析dns,和系统接口gethostbyname解析区别在哪?
linux·网络