直接 vim conf/nginx.conf文件

server {
        listen       8081;
        server_name  localhost;

#charset koi8-r;

#access_log  logs/host.access.log  main;

location / {
            root   /home/www;
            index  index.html index.htm;
            try_files $uri $uri/ /index.html;
    
        }

然后esc 退出 wq! 进行保存

关闭 ..../nginx -s stop

重启 .../nginx

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2022-12-23
猜你喜欢
  • 2021-09-05
  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2022-01-16
相关资源
相似解决方案