1、nginx无默认配置文件 参考文章:nginx配置失败,卸载后重装无 nginx.conf文件_haojuntu的博客-CSDN博客 2、nginx更改服务器的端口号 参考文章:https://www.cnblogs.com/chaosfe/p/16123585.html#:~:text=%E6%88%91%E4%BB%AC%E6%9F%A5%E7%9C%8B%2Fetc%2Fnginx%2Fsites-enabled%2F%E7%9B%AE%E5%BD%95%EF%BC%8C%E4%BC%9A%E6%89%BE%E5%88%B0%E4%B8%80%E4%B8%AAdefault%E6%96%87%E4%BB%B6%EF%BC%8C%E5%9C%A8server%E9%80%89%E9%A1%B9%E4%B8%8B%E5%89%8D%E4%B8%A4%E8%A1%8C%E5%B0%B1%E5%8F%AF%E4%BB%A5%E6%89%BE%E5%88%B0%E4%BD%BF%E7%94%A8%E7%9A%8480%E7%AB%AF%E5%8F%A3%E5%8F%B7%EF%BC%9A%20server%20%7B%20listen%2080,default_server%3B%20listen%20%5B%3A%3A%5D%3A80%20default_server%3B%20%E5%B0%8680%E7%AB%AF%E5%8F%A3%E5%8F%B7%E6%94%B9%E4%B8%BA%E6%83%B3%E4%BD%BF%E7%94%A8%E7%9A%84%E7%AB%AF%E5%8F%A3%E5%8F%B7%EF%BC%8C%E4%BF%9D%E5%AD%98%E6%96%87%E4%BB%B6%EF%BC%8C%E5%A6%82%E6%9E%9C%E6%B2%A1%E6%9C%89%E5%90%AF%E5%8A%A8nginx%EF%BC%8C%E5%90%AF%E5%8A%A8%E5%8D%B3%E5%8F%AF%E3%80%82%20%E5%A6%82%E6%9E%9Cnginx%E5%B7%B2%E7%BB%8F%E5%9C%A8%E8%BF%90%E8%A1%8C%EF%BC%8C%E9%87%8D%E6%96%B0%E5%8A%A0%E8%BD%BD%E5%8D%B3%E5%8F%AF%E3%80%82https://www.cnblogs.com/chaosfe/p/16123585.html#:~:text=%E6%88%91%E4%BB%AC%E6%9F%A5%E7%9C%8B%2Fetc%2Fnginx%2Fsites-enabled%2F%E7%9B%AE%E5%BD%95%EF%BC%8C%E4%BC%9A%E6%89%BE%E5%88%B0%E4%B8%80%E4%B8%AAdefault%E6%96%87%E4%BB%B6%EF%BC%8C%E5%9C%A8server%E9%80%89%E9%A1%B9%E4%B8%8B%E5%89%8D%E4%B8%A4%E8%A1%8C%E5%B0%B1%E5%8F%AF%E4%BB%A5%E6%89%BE%E5%88%B0%E4%BD%BF%E7%94%A8%E7%9A%8480%E7%AB%AF%E5%8F%A3%E5%8F%B7%EF%BC%9A%20server%20%7B%20listen%2080,default_server%3B%20listen%20%5B%3A%3A%5D%3A80%20default_server%3B%20%E5%B0%8680%E7%AB%AF%E5%8F%A3%E5%8F%B7%E6%94%B9%E4%B8%BA%E6%83%B3%E4%BD%BF%E7%94%A8%E7%9A%84%E7%AB%AF%E5%8F%A3%E5%8F%B7%EF%BC%8C%E4%BF%9D%E5%AD%98%E6%96%87%E4%BB%B6%EF%BC%8C%E5%A6%82%E6%9E%9C%E6%B2%A1%E6%9C%89%E5%90%AF%E5%8A%A8nginx%EF%BC%8C%E5%90%AF%E5%8A%A8%E5%8D%B3%E5%8F%AF%E3%80%82%20%E5%A6%82%E6%9E%9Cnginx%E5%B7%B2%E7%BB%8F%E5%9C%A8%E8%BF%90%E8%A1%8C%EF%BC%8C%E9%87%8D%E6%96%B0%E5%8A%A0%E8%BD%BD%E5%8D%B3%E5%8F%AF%E3%80%82