CentOS7使用Yum安装Nginx
1.添加软件源
sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
安装Nginx
sudo yum install -y nginx
启动Nginx
sudo systemctl start nginx.service
设置开机启动
sudo systemctl enable nginx.service
2 条评论
filmkovasi · 2021年2月5日 上午6:10
Having read this I believed it was very enlightening. I appreciate you finding the time and energy to put this article together. I once again find myself spending a lot of time both reading and leaving comments. But so what, it was still worth it. Kirstin Dev Varipapa
720p · 2021年2月6日 下午6:14
I used to be able to find good information from your content.| Joete Hoebart Mazurek