1. 安装:yum install -y nginx
    2. 配置文件:/etc/nginx/nginx.conf
    3. 启动服务:systemctl start nginx

    image.png
    4.编写测试文件:/usr/share/nginx/html目录下创建test.html文件,写入以下内容

    1. <html>
    2. <body>
    3. <h1>Test</h1>
    4. </body>
    5. </html>
    1. 编写测试文件:/usr/share/nginx/html
      image.png