CentOS yum 直接安装最新的nginx【转】

转自:https://www.leelib.com/2014/10/31/yum-install-last-nginx.html

添加nginx的repo

echo '[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/x86_64
gpgcheck=0
enabled=1' > /etc/yum.repos.d/nginx.repo

安装

yum update
yum install nginx

是不是直接安装了最新版的nginx呢
( ͡° ͜ʖ ͡°)

posted @ 2021-12-17 11:26  断舍离-重学JAVA之路  阅读(54)  评论(0编辑  收藏  举报