环境:mariadb-server:192.168.4.51 httpd-server:192.168.4.52
1、搭建数据库服务器

[[email protected] ~]# yum -y install mariadb-server
[[email protected] ~]# systemctl restart mariadb
[[email protected] ~]# systemctl enable mariadb
[[email protected] ~]# mysql
MariaDB [(none)]> grant all on *.* to [email protected]'%' identified by "123456";

2、搭建客户端论坛服务

[[email protected] ~]# yum -y install httpd  php  php-mysql
[[email protected] ~]# systemctl restart httpd
[[email protected] ~]# systemctl enable httpd
[[email protected] ~]# unzip /Discuz_X3.0_SC_UTF8.zip              ##将Discuz安装包解压
[[email protected] ~]# cp -r upload/  /var/www/html/bbs            ##将解压后的目录copy到网页根目录下并改名为bbs
[[email protected] ~]# chown -R apache.apache  /var/www/html/bbs   ##更改目录属主和属组,

3、在客户端访问192.168.4.52/bbs,并进行配置完成最终的论坛搭建
3.1、 Firefox 192.168.4.52/bbs -------选择同意
搭建LAMP分离结构的web论坛服务

3.2、查看是否都是绿色选项,都是的话就可以选择下一步
搭建LAMP分离结构的web论坛服务

3.3、根据选择选择安装,本实验中选择全新安装:继续下一步
搭建LAMP分离结构的web论坛服务

3.4、数据库服务器地址写提供数据库服务的ip,数据库名随意,用户名即数据库服务器授权的用户名和密码,系统管理员帐号为论坛管理员帐号,自己设置帐号和密码:
搭建LAMP分离结构的web论坛服务

3.5、点击下一步后就会出现安装界面,等待安装。。。。
搭建LAMP分离结构的web论坛服务

3.6、完成后就可以登陆页面进行操作了
搭建LAMP分离结构的web论坛服务

相关文章:

  • 2021-11-15
  • 2021-04-10
  • 2021-08-19
  • 2022-01-07
  • 2021-04-10
  • 2021-09-27
  • 2021-04-27
  • 2021-12-02
猜你喜欢
  • 2021-04-03
  • 2021-06-09
  • 2021-08-18
  • 2021-07-14
  • 2021-05-29
  • 2021-09-27
相关资源
相似解决方案