centos7 npm安装nginx

下载对应当前系统版本的nginx包(package)

# wget  http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
2

建立nginx的yum仓库

# rpm -ivh nginx-release-centos-7-0.el7.ngx.noarch.rpm
3

下载并安装nginx

# yum install nginx
4

启动nginx服务

systemctl start nginx

配置文件位置:/etc/nginx/nginx.conf

在:/usr/sbin 有nginx的可执行文件

你可能感兴趣的:(centos7 npm安装nginx)