Linux nginx安装

一. centos

1. 将nginx放到yum repro库中
[root@localhost ~]# rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

2. 使用yum安装ngnix

[root@localhost ~]# yum install nginx -y

3. 设置开机启动 
systemctl enable nginx

 

 

猜你喜欢

转载自my.oschina.net/u/2919251/blog/1627584