---
title: "在Linux(Debian/Ubuntu、RHEL/CentOS)搭建WordPress网站"
url: https://www.landian.news/archives/61020.html
date: 2019-07-14T21:21:23+08:00
modified: 2019-07-16T00:05:26+00:00
author: "疯子"
description: "WordPress是一个以PHP和MySQL为平台的自由开源的博客软件和内容管理系统。WordPress具有插 [&hellip;]"
categories: ""
tags: "Linux, web, wordpress"
---

# 在Linux(Debian/Ubuntu、RHEL/CentOS)搭建WordPress网站

WordPress是一个以PHP和MySQL为平台的自由开源的博客软件和内容管理系统。WordPress具有插件架构和模板系统。截至2018年4月，排名前1000万的网站超过30.6%使用WordPress。WordPress是最受欢迎的网站内容管理系统。WordPress是当前因特网上最流行的博客系统。WordPress在最着名的网络发布阶段中脱颖而出。如今，它被使用在超过7000万个站点上。

官网给的要求是php≥7.3，MySQL≥5.6或者MariaDB≥10.0，之前我们的的教程php和MariaDB都是最新版本的，所以不存在这个顾虑

给大家重新回顾下LNMP+phpMyAdmin的链接：

Nginx：[https://www.landian.news/archives/60484.html](https://www.landian.news/archives/60484.html)

PHP(Nginx)：[https://www.landian.news/archives/60599.html](https://www.landian.news/archives/60599.html)

MariaDB：[https://www.landian.news/archives/60779.html](https://www.landian.news/archives/60779.html)

phpMyAdmin：[https://www.landian.news/archives/60873.html](https://www.landian.news/archives/60873.html)

完成上面的步骤搭建WordPress就已经完成四分之三了，还差最后一小部分

注释：以下命令全部以root用户执行，另外大家复制代码的时候前面的#不要复制，#代表的是root权限

```
下载WordPress并解压
# wget https://wordpress.org/latest.zip && unzip latest.zip
把解压的WordPress并移动到网站根目录
# mv wordpress /usr/share/nginx/html/
把wordpress目录更改为nginx权限
# chown -R nginx:nginx /usr/share/nginx/html/wordpress
```

然后，进入我们搭建好的phpMyAdmin，新建账户及创建与用户同名的数据库wordpress

![](https://img.lancdn.com/landian/2019/07/61020.avif)

然后我们打开WordPress（http://服务器IP地址/wordpress），开始按照提示步骤来选择，下面提供gif

步骤：打开网址→选择语言(中文)→点击(现在就开始)，填写数据库→点击(开始安装)→填写站点信息和站长账号密码→登录

![](https://dl.landian.news/?file=old/landian/media/images/61020/61020-1.gif)

剩下的就是大家自己摸索配置了，都是中文，有各种各样的主题和插件，可以从网上找，也可以从自带的商城里下载。祝大家都可以建立一个属于自己的博客。感谢~

---

Source: [在Linux(Debian/Ubuntu、RHEL/CentOS)搭建WordPress网站](https://www.landian.news/archives/61020.html)
