centos网络源安装nginx

#vi /etc/yum.repos.d/nginx.repo

[nginx]

name=nginx repo

baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/

gpgcheck=0

enabled=1

保存好文件后,执行yum安装 (os 改成 centos    OSRELEASE改成当前系统版本,centos6.x就写6   centos7.x 就写y)

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


#yum install nginx

#nginx -v   查看版本

扫描二维码关注公众号,回复: 1830273 查看本文章

#nginx -V   查看编译擦参数

#rpm -ql nginx    查看已安装包在系统安装了哪些文件

#systemctl start nginx

#ps -ef | grep nginx


猜你喜欢

转载自blog.csdn.net/qq_28710983/article/details/80717813