Nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server, originally written by Igor Sysoev. For a long time, it has been running on many heavily loaded Russian sites including Yandex, Mail.Ru, VK, and Rambler. According to Netcraft, nginx served or proxied 25.76% busiest sites in September 2020.
## 安装 Nginx
1. 使用 DNF 包管理器安装Nginx
~~~shell
[root@localhost /]# dnf install nginx
~~~
系统会自动解决相关依赖并安装Nginx。
2. 使用 dnf 安装 nginx 后,系统会将其自动加入 systemctl 进行管理。
~~~shell
[root@localhost /]# systemctl start nginx 启动nginx
[root@localhost /]# systemctl stop nginx 停止nginx
[root@localhost /]# systemctl status nginx 查看nginx状态
● nginx.service - The nginx HTTP and reverse proxy server