分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 教程案例

实战!基于lamp安装Discuz论坛-技术流ken

发布时间:2023-09-06 02:16责任编辑:赖小花关键词:Discuz

1.简介

我前面的博客已经详细介绍了lamp采用yum安装以及编译安装的方式,这篇博客将基于yum安装的lamp架构来实战安装Discuz论坛,你可以任选其一来完成。

2.系统环境

centos7.5

服务器IP:172.20.10.7/28

客户端IP:172.20.10.4/28

3.关闭安全服务

[root@ken ~]# setenforce 0

4.安装lamp

[root@ken ~]# yum install httpd php php-mysql mariadb-server lrzsz unzip -y

5.测试

略。请参看我之前博文的详细测试步骤《yum一键安装企业级lamp服务环境-技术流ken》

6.创建数据库及用户

[root@ken ~]# systemctl start mariadb ????????#启动数据库[root@ken ~]# mysqlWelcome to the MariaDB monitor. ?Commands end with ; or \g.Your MariaDB connection id is 2Server version: 5.5.56-MariaDB MariaDB ServerCopyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.MariaDB [(none)]> create database ken; ?????#创建数据库kenQuery OK, 1 row affected (0.00 sec)MariaDB [(none)]> grant all on ken.* to ken@"localhost" identified by "123"; #创建用户kenQuery OK, 0 rows affected (0.00 sec)MariaDB [(none)]> flush privileges; ????????????#刷新授权表Query OK, 0 rows affected (0.00 sec)MariaDB [(none)]> Bye

7.准备Discuz安装包

[root@ken ~]# cd /var/www/html[root@ken html]# rz[root@ken html]# unzip Discuz_X3.3_SC_GBK.zip[root@ken html]# lsDiscuz_X3.3_SC_GBK.zip ?readme ?upload ?utility
[root@ken html]# cd upload/[root@ken upload]# lsadmin.php ?archiver ????cp.php ??????????favicon.ico ?home.php ??member.php ?portal.php ?source ???uc_clientapi ???????config ??????crossdomain.xml ?forum.php ???index.php ?misc.php ???robots.txt ?static ???uc_serverapi.php ???connect.php ?data ????????????group.php ???install ???plugin.php ?search.php ?template ?userapp.php
[root@ken upload]# chmod 757  -R  data/  uc_server/  config/  uc_client/

8.启动httpd,防火墙放行客户端访问

[root@ken upload]# systemctl restart httpd[root@ken upload]# iptables -A INPUT -p tcp -s 172.20.10.4 --dport 80 -d 172.20.10.7 -j ACCEPT

9.浏览器访问

点击我同意

点击下一步

点击下一步

填写数据库信息以及管理员密码,然后点击下一步

点击您的论坛已完成安装,点此访问

安装完成!

实战!基于lamp安装Discuz论坛-技术流ken

原文地址:https://www.cnblogs.com/kenken2018/p/9733736.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved