
一、搭建系统环境
LAMP指的是Linux,apache,MySQL,php组成的网站系统,这是搭建网站最简单快速的组合
1. 基础环境(防火墙)
刚部署好的linux服务器默认开启了防火墙,假如你在该服务器装一个HTTP并启动,在别的机器访问该HTTP是不成功的,需要关闭服务器防火墙。
[root@tong ~]# sed -ri '/^SELINUX=/cSELINUX=disabled' /etc/selinux/config //关闭系统防火墙
[root@tong ~]# setenforce 0
[root@tong ~]# systemctl stop firewalld.service
[root@tong ~]# systemctl status firewalld.service //查看firewalld状态
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Sat 2018-11-17 12:00:30 CST; 12s ago
Docs: man:firewalld(1)
Process: 757 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
Main PID: 757 (code=exited, status=0/SUCCESS)
....................
[root@tong ~]# getenforce
Permissive
2. 搭建LAMP基础架构
LAMP指的是Linux,apache,MySQL,php组成的网站系统,这是搭建网站最简单快速的组合
[root@tong ~]# yum -y install httpd php mariadb mariadb-server php-mysql //下载安装基础LAMP网站架构
Loaded plugins: fastestmirror
................
Complete! //完成安装
3. 测试安装的环境
- 测试静态页面
[root@tong ~]#

本文详细介绍了如何在Linux环境下,通过搭建LAMP基础架构来安装WordPress个人博客系统。首先,文章讲解了关闭防火墙、安装LAMP组件的过程,并测试了静态页面、动态页面及数据库连接。接着,介绍了安装WordPress所需软件包和后续设置。最终,成功建立了一个基础的博客系统。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



