0.yum info nginx

1. yum -y install nginx
2. service nginx start

访问 80后端口看到以下页面:

 

CentOS8_2 yum安装Nginx

 

 

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.

相关文章:

  • 2022-12-23
  • 2021-09-05
  • 2021-07-01
  • 2021-06-08
  • 2021-12-31
  • 2022-01-30
  • 2021-08-25
猜你喜欢
  • 2021-05-07
  • 2021-06-21
  • 2021-07-01
相关资源
相似解决方案