这是什么情况?我启动nginx的时候出现: nginx: [emerg] unknown directive "if" in /opt/nginx/conf/nginx.conf:16 google 一下也没有打到答案有没有和我一样遇到过的呢?
就是你的設定檔寫錯了... 在不該出現 if 的地方出現 if