在Ubuntu 18.04上使用Nginx安装WordPress

WordPress is one of the most popular and open source content management system (CMS) with a whopping 60% of market share as compared with other CMS like Drupal or Joomla.

WordPress是最流行的开源内容管理系统(CMS)之一,与其他CMS(如Drupal或Joomla)相比,其市场份额高达60%。

WordPress can be used to develop any kind of website, be it for a blog, a small business or for a large enterprise. With its free and premium plugins and themes, a WordPress site can be extended quickly to offer advanced functionalities.

WordPress可用于开发任何类型的网站,无论是用于博客,小型企业还是大型企业。 借助其免费和高级的插件和主题,可以快速扩展WordPress网站以提供高级功能。

It is also possible to develop a custom theme and plugins from scratch that will embed unique functionalities to any WordPress site. In this tutorial, we will cover the installation of WordPress CMS using LEMP stack i.e with NGINX as a web server in Ubuntu 18.04.

也可以从头开始开发自定义主题和插件,将独特的功能嵌入任何WordPress网站。 在本教程中,我们将介绍使用LEMP堆栈(即,将NGINX作为Ubuntu 18.04中的Web服务器)安装WordPress CMS。

先决条件 (Prerequisites)

  • You can open an SSH session in your Ubuntu 18.04 server using root or a sudo enabled user.

    您可以使用root或启用sudo的用户在Ubuntu 18.04服务器中打开SSH会话。
  • A registered domain name or subdomain to point to the WordPress installation.

    指向WordPress安装的注册域名或子域。
  • Domain DNS A-record pointing to your server’s IP address.

    指向服务器IP地址的域DNS A记录。
This tutorial requires the use of domain names. Whenever you see either the SUBDOMAIN, DOMAIN, or TLD variables, replace them with your own domain name values.
本教程要求使用域名。 每当您看到SUBDOMAIN,DOMAIN或TLD变量时,请将其替换为您自己的域名值。

更新您的Ubuntu 18.04 (Update your Ubuntu 18.04)

Before you start installing NGINX, it is always recommended to upgrade your Ubuntu 18.04 to the latest. The following apt-get commands will do it for you.

在开始安装NGINX之前,始终建议您将Ubuntu 18.04升级到最新版本。 以下apt-get命令将为您完成此操作。

# apt-get update 
# apt-get upgrade

The first command will update the list of available packages and their versions and the second one will actually install the newer versions of the packages that you have. Once you are done with upgrading the system, check the release version of your Ubuntu system with the following command.

第一个命令将更新可用软件包及其版本的列表,第二个命令将实际安装所拥有软件包的较新版本。 升级完系统后,请使用以下命令检查Ubuntu系统的发行版本。

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic

在Ubuntu上使用NGINX安装WordPress (Install WordPress with NGINX on Ubuntu)

Follow the steps below to install the WordPress with NGINX on Ubuntu server.

请按照以下步骤在Ubuntu服务器上使用NGINX安装WordPress。

步骤1:安装NGINX

  • 2
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值