Discuz论坛的搭建
(1)连接光驱,将光驱挂载到/mnt目录下
[root@localhost ~]
(2)配置本地源
[root@localhost ~]
[root@localhost yum.repos.d]
[base]
name = baseos
baserul = file:///mnt
gpgcheck = 0
(3)从本地源里面安装httpd服务器环境
[root@localhost yum.repos.d]
已加载插件:langpacks, product-id, search-disabled-repos, subscription-
.......
(4)安装数据库
[root@localhost yum.repos.d]
已加载插件:langpacks, product-id, search-disabled-repos, subscription-
........
(5)开启httpd服务和数据库,并关闭防火墙
[root@localhost yum.repos.d]
[root@localhost yum.repos.d]
(6)输入虚拟机地址用浏览器访问 打开的是httpd自己的测试页面 (7)自己定义一个主页面
[root@localhost html]# vim index.html
<html>
<head>
<title>大家好 欢迎来到计科19</title>
</head>
<body>
<h1>计科的班级</h1>
<ul>
<li>计科17</li>
<li>计科18</li>
<li>计科19</li>
<ul>
</body>
</html>
(8)安装php环境
[root@localhost html]
已加载插件:langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
正在解决依赖关系
(9)配置数据库
[root@localhost html]
/usr/bin/mysql_secure_installation:行379: find_mysql_client: 未找到命令
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR
.......
(10)进数据库来看看
[root@localhost html]
Enter password:
.......
MariaDB [(none)]> exit
(11)装论坛软件包
[root@localhost html]
[root@localhost html]
[root@localhost html]
[root@localhost html]
[root@localhost html]
[root@localhost html]
(12)将相关的目录该权限 为了给论坛用户增加写的权限
[root@localhost upload]
(13)打开Selinx的安全
[root@localhost upload]
Enforcing
[root@localhost upload]
[root@localhost upload]
Permissive
(14)重启httpd
[root@localhost upload]
(15)浏览器访问192.168.87.128/upload/
|