centos7-yum安装nginx

配置官方源

vim /etc/yum.repos.d/nginx.repo

[nginx-stable]

name=nginx stable repo

baseurl=http://nginx.org/packages/centos/$releasever/$basearch/

gpgcheck=1

enabled=1

gpgkey=https://nginx.org/keys/nginx_signing.key

安装

yum install -y nginx

查询配置文件等

rpm -ql nginx

相关文章

发表新评论