windows 中nginx奇葩報錯 nginx: [emerg] unknown directive "#" in  nginx/conf/nginx.conf:3

大飛_dafei發表於2019-01-20

經過: 用記事本開啟nginx.conf 配置檔案,後來啟動nginx就開始報錯,報錯內容如下

nginx: [emerg] unknown directive "#" in  nginx/conf/nginx.conf:3

nginx: [emerg] unknown directive "#user" in  nginx/conf/nginx.conf:1

解決辦法,新建nginx.conf 儲存為utf8格式檔案

 

參考地址:  nginx: [emerg] unknown directive "#"

                  nginx: [emerg] unknown directive "#"

相關文章