linux-运维进阶-27 Discuz论坛搭建

LAMP动态网站架构

关闭selinux,重启才能生效!

[root@localhost ~]# vim /etc/selinux/config
将SELINUX=enforcing那一行改为:
SELINUX=disabled保存退出,重启虚拟机
[root@localhost ~]# reboot

Discuz下载地址

简体中文GBK
http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_GBK.zip
繁体中文 BIG5
http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_TC_BIG5.zip
简体 UTF8
http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip
繁体 UTF8
http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_TC_UTF8.zip

本次实验用的是简体 UTF8 ,如果是简体中文GBK 的话会出现如下图的乱码,就需要改参数了:

用yum安装lamp架构的web服务器(部署discuz论坛为例)

[root@localhost ~]# yum install wget unzip httpd mariadb mariadb-server php php-mysql -y
[root@localhost ~]# cd /var/www/html/
[root@localhost html]# wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip
[root@localhost ~]#
[root@localhost html]# unzip Discuz_X3.2_SC_UTF8.zip
[root@localhost html]# ls
Discuz_X3.2_SC_UTF8.zip  readme  upload  utility
[root@localhost html]# chown -R apache:apache *
[root@localhost html]# chmod 755 -R *
[root@localhost html]# cd
[root@localhost ~]#
[root@localhost ~]# systemctl restart httpd mariadb
[root@localhost ~]# systemctl enable httpd mariadb
[root@localhost ~]# firewall-cmd --add-port={80,3306}/tcp --permanent
[root@localhost ~]# firewall-cmd --reload
success
[root@localhost ~]#

初始化数据库

  • 设置root管理员在数据库中的密码值(注意,该密码并非root管理员在系统中的密码,这里的密码值默认应该为空,可直接按回车键)。
  • 设置root管理员在数据库中的专有密码。
  • 随后删除匿名账户,并使用root管理员从远程登录数据库,以确保数据库上运行的业务的安全性。
  • 删除默认的测试数据库,取消测试数据库的一系列访问权限。
  • 刷新授权列表,让初始化的设定立即生效。
[root@localhost ~]# mysql_secure_installationNOTE: 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
you haven't set the root password yet, the password will be blank,
so you should just press enter here.#这里直接敲回车
Enter current password for root (enter for none):
OK, successfully used password, moving on...Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.Set root password? [Y/n] y
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] y... 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] y... 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] y- 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] y... 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!
[root@localhost ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.60-MariaDB MariaDB ServerCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.MariaDB [(none)]> exit
Bye
[root@localhost ~]#
[root@localhost ~]# systemctl restart mariadb.service
[root@localhost ~]#

浏览器打开discuz服务器的ip加上/upload/forum.php,例如http://192.168.141.132/upload/forum.php,回车后自动跳转到安装界面http://192.168.141.132/upload/install/,如下图:

数据库密码就是刚刚我们登录mysql的root密码,这里你再想一个discuz论坛管理员的密码填进去即可:

用你刚刚设置的管理员密码登录,管理员指的是admin

登录成功后,你就可以随心所欲地设置你论坛的主题了,自己多玩玩就熟悉了。

本篇到此结束。

linux-运维进阶-27 Discuz论坛搭建相关推荐

  1. Linux运维基础进阶——PPT汇总

    Linux运维基础 admin day1--云网络基础 day2--Linux系统简介.安装Linux系统.Linux基本操作 day3--命令行基础.目录和文件管理 day4--管理用户和组.tar ...

  2. Linux运维入门及进阶全新经典视频-老男孩Linux第三部-老男孩-专题视频课程

    Linux运维入门及进阶全新经典视频-老男孩Linux第三部-20502人已学习 课程介绍         本Linux高薪运维入门及进阶,为入门教学中的基础部分,以简单.易用.高效的方式为初学者讲解 ...

  3. Linux安全运维进阶:SSH常见配置

    1.SSH 无缝切换远程加密 一.了解SSH 1.随便说说 SSH 为 Secure Shell 的缩写,由 IETF 的网络小组(Network Working Group)所制定;SSH 为建立在 ...

  4. linux环境 前端开发环境搭建,Linux运维知识之linux 前端环境搭建

    本文主要向大家介绍了Linux运维知识之linux 前端环境搭建,通过具体的内容向大家展现,希望对大家学习Linux运维知识有所帮助. 1.下载node.js 2.在linux 里使用wget命令 w ...

  5. linux运维基础进阶和shell入门,Linux运维工程师从基础到进阶:Shell变量知识梳理...

    原标题:Linux运维工程师从基础到进阶:Shell变量知识梳理 Shell是一个用C语言编写的程序,它是用户使用Linux的桥梁.Shell既是一种命令语言,又是一种程序设计语言,涵盖的知识点多且杂 ...

  6. Linux discuz论坛搭建

    discuz论坛搭建 基于域名的虚拟web主机 网页根目录:/var/www/html 网页首页文件:index.html 访问时url:http://域名:80/index.html chroot ...

  7. 新开班全栈Linux运维-Linux云计算运维与高级架构班课程 全新自动化运维必学课程

    新开班全栈Linux运维-Linux云计算运维与高级架构班课程 全新自动化运维必学课程 全栈Linux运维的课程意义,在于让同学们从Liunx基础课程开始,一路直通Liunx运维高级架构师的级别.全新 ...

  8. Linux运维入门到高级

    目  录 1. Linux入门篇.................................................................................... ...

  9. 【摘】Linux运维入门到高级全套常用要点

    Linux运维入门到高级全套常用要点 目 录 1. Linux 入门篇----------------------- 4 1. 1 Linux 操作系统简介-------------------.. ...

最新文章

  1. Django 分页和使用Ajax5.3
  2. 人工智能带来的事业浪潮或将提前到来
  3. 用java程序编写ip仿真器_用java 编写一个可以实现IP地址查询功能的课程设计
  4. SpringBoot 根据传参返回不同的内容
  5. saxbuilder用法(转)
  6. firefox是什么浏览器_Selenium Firefox驱动程序:使用Firefox浏览器自动进行测试
  7. R12 - OM改进了对成本与收入确认的流程
  8. visual studio 设计器不显示_嫦娥上升器为什么不设计成月球勘测器?
  9. bzoj1113[Poi2008]海报PLA
  10. 挂烫机UL认证怎么办理
  11. PIC单片机应用开发实践教程(二): 新建工程
  12. 【毕业设计】QT从入门到实战:实现模仿QQ通讯,也是在校的最后一篇博文。
  13. 网页形式的php抓取文件,PHP 抓取网页源文件
  14. ueditor 前后端分离+图片上传
  15. HTMLCSS的语法与使用
  16. 在哪个平台可以自助打印文件资料
  17. 【Android】腾讯即时通讯SDK的初次接入的详细记录
  18. ini文件格式和读取
  19. MacBook A1278 13.3笔记本进液维修浅谈
  20. 淘宝客API示例演示

热门文章

  1. Acwing数学知识——学习笔记
  2. android菜单(menu)用法
  3. 邹碧华用“大数据”选拔优秀法官
  4. SVN安装 443 端口被占用
  5. 有哪些提高OCR文字识别软件识别正确率的方法
  6. CSS Grid 阮一峰
  7. 思科服务器连接无线打印机,介绍思科模拟器网络打印机怎样操作安装
  8. IDEA插件之RestServices
  9. 【JavaSE】作业练习1111
  10. 手机端的操作手势——touch.js