Linux在线安装Nginx(注:括号里是英文步骤的翻译)

Step One—Install EPEL

EPEL stands for Extra Packages for Enterprise Linux. Because yum as a package manager does not include the latest version of nginx in its default repository, installing EPEL will make sure that nginx on CentOS stays up to date.
(EPEL代表企业Linux的额外软件包。因为百yum为一个包管理器在其默认存储库中不包含最新版本的nginx,所以安装EPEL将确保在CentOS上的nginx保持最新)

To install EPEL, open terminal and type in:
(要安装EPEL,打开终端并输入):

sudo yum install epel-release**

Step Two—Install nginx

第二步—安装发动机

To install nginx, open terminal and type in:
(要安装nginx,打开端子并输入)

sudo yum install nginx

After you answer yes to the prompt twice (the first time relates to importing the EPEL gpg-key), nginx will finish installing on your virtual private server.
(在您两次对提示回答“是”后(第一次与导入EPEL gpg-key有关),nginx将完成在您的虚拟专用服务器上的安装。)

Step Three—Start nginx

第三步—启动发动机

nginx does not start on its own. To get nginx running, type:
(nginx不会自行启动。要运行发动机,请键入:)

sudo /etc/init.d/nginx start

You can confirm that nginx has installed on your VPS by directing your browser to your IP address.
(您可以通过将浏览器指向您的IP地址来确认您的虚拟专用服务器已经安装了nginx)

验证是否成功

On the page, you will see the words, “Welcome to nginx”
Congratulations! You have now installed nginx
(在页面上,你会看到“Welcome to nginx”恭喜!您现在已经安装了发动机)Linux在线安装Nginx(注:括号里是英文步骤的翻译)