当nignx可以加载下面的这个service时

server {
listen 8085; 
server_name 1.192.60.82;

location / {
root /etc/nginx/hash;
index index.html;
}

}

listen : 端口号
server_name: 访问名称 可以域名可以ip
root: 静态项目的地址
index:静态项目的index页面

访问地址为 1.192.60.82:8085

相关文章:

  • 2021-12-31
  • 2021-06-20
  • 2021-12-06
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-06
  • 2022-12-23
  • 2021-09-02
  • 2021-12-21
  • 2022-12-23
  • 2021-11-30
相关资源
相似解决方案