linux下安装Nginx
2019-05-17 本文已影响0人
猪才怪im
OS:centos7
一、 yum源安装
#添加源
rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
#安装
yum install -y nginx
#启动
systemctl start nginx.service
#设置开机自启
systemctl enable nginx.service
#访问 端口默认80
