CentOS安装Nginx

Official Red Hat/CentOS packages

To add NGINX yum repository, create a file named /etc/yum.repos.d/nginx.repo and paste one of the configurations below:

CentOS:

RHEL:

Due to differences between how CentOS, RHEL, and Scientific Linux populate the $releasever variable, it is necessary to manually replace $releasever with either 5 (for 5.x) or 6 (for 6.x), depending upon your OS version.

use

to show the information about Nginx

Then

参考:https://www.nginx.com/resources/wiki/start/topics/tutorials/install/

暂无评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注