您的购物车目前是空的!
Table of Contents
Nginx is a high performance web server software. It is a much more flexible and lightweight program than Apache HTTP Server.
This tutorial will teach you how to install and start Nginx on your CentOS 7 server.
Nginx 是一个很强大的高性能Web和反向代理服务器,比Apache更轻更灵活。下面我们将教大家如何在Centos7下安装Nginx服务。
yum install epel-release
yum install nginx
systemctl start nginx
如果开着防火墙,请运行如下命令:
firewall-cmd --permanent --zone=public --add-service=http firewall-cmd --permanent --zone=public --add-service=https firewall-cmd --reload
4.访问IP地址:
http://IP/
如果能看到此页面则说明nginx运作正常!
systemctl enable nginx