pid /tmp/nginx.pid; events { worker_connections 1024; } http { server { listen 7860; server_name localhost; location /jmComic.json { alias /usr/share/nginx/html/jmComic.json; # 指定jmComic.json的路径 default_type application/json; # 设置返回类型为JSON } } }