CentOS8_2 yum安装Nginx
0.yum info nginx
1. yum -y install nginx
2. service nginx start
访问 80后端口看到以下页面:

This is the default index.html page that is distributed with nginx on Red Hat Enterprise Linux. It is located in /usr/share/nginx/html.
You should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /etc/nginx/nginx.conf.
For information on Red Hat Enterprise Linux, please visit the Red Hat, Inc. website. The documentation for Red Hat Enterprise Linux is available on the Red Hat, Inc. website.

浙公网安备 33010602011771号