WordPress 的安装部署
环境
操作系统:Ubuntu Kylin 优麒麟 20.04 LTS
适用架构:AMD64、ARM64(鲲鹏、飞腾)
前言
Wordpress 是最流行的内容管理系统之一,也是常用的 CMS(内容管理系统)程序之一。Wordpress 可以多种方式安装,本次讲解非常流行的软件环境LEMP ( Linux + Nginx + MariaDB + PHP )。
安装 MySQL
详见《MySQL 8.0 的安装部署》
安装 Nginx
Nginx 是一个开源的,非常流行,使用非常广泛的网页服务器软件。在 Ubuntu 20.04 系统中我们可以通过以下命令安装 Nginx。
sudo apt update
sudo apt nginx
安装完成后,nginx并不是默认自动启动,通过以下命令启动nginx:
sudo systemctl start nginx
启动完成后,可以输入以下命令查看 nginx 运行状态
systemctl status nginx.service
输出内容类似内容:
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2020-06-28 02:47:42 UTC; 5s ago
Docs: man:nginx(8)
Process: 49088 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 49099 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Main PID: 49100 (nginx)
Tasks: 2 (limit: 1075)
Memory: 8.3M
CGroup: /system.slice/nginx.service
├─49100 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
└─49101 nginx: worker process
默认情况,Ub