windows 中nginx奇葩報錯 nginx: [emerg] unknown directive "#" in nginx/conf/nginx.conf:3
經過: 用記事本開啟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 “stream“ in /etc/nginx/nginx.conf問題Nginx
- nginx: [emerg] "user" directive is not allowed here in /etc/nginx/conf.d/nginx.conf:1Nginx
- nginx 啟動報錯 unknown directive "server"NginxServer
- Nginx 配置檔案 nginx.conf 中文詳解Nginx
- Nginx官方推薦的nginx.conf標準配置Nginx
- nginx.conf 配置檔案詳解Nginx
- Nginx基礎02:配置檔案nginx.conf(Part1)Nginx
- 詳解nginx伺服器的nginx.conf 中 root目錄設定問題Nginx伺服器
- 做了反向代理和負載均衡的nginx配置檔案簡單示例(nginx.conf) HTTP負載均衡/TCP負載均衡負載NginxHTTPTCP
- 記錄一個 Nginx-FastCGI-"Primary script unknown" 錯誤NginxAST
- 解決nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)NginxAI
- openresty/nginx配置多個conf檔案RESTNginx
- nginx部署(13:Permission denied)報錯Nginx
- 如何解決 Nginx 與 FastCGI 通訊錯誤 "Primary script unknown"?NginxAST
- Nginx-05-nginx 反向代理是什麼?windows 下如何配置使用 nginxNginxWindows
- WINDOWS下Nginx命令WindowsNginx
- 【Nginx】併發量太高,Nginx扛不住?這次我錯怪Nginx了!!Nginx
- nginx 錯誤除錯Nginx除錯
- 從零手寫實現 nginx-13-nginx.conf 配置例子解釋 + nginx 配置檔案要如何解析?Nginx
- 除錯 Ingress Nginx除錯Nginx
- nginx中報Access denied.Nginx
- 【Nginx】Nginx容器Nginx
- 從零手寫實現 nginx-17-nginx.conf 全域性的預設配置Nginx
- Centos7啟動Nginx報錯。CentOSNginx
- 從零手寫實現 nginx-15-nginx.conf 解析處理轉換為 POJONginxPOJO
- Post請求域名Nginx返回405報錯Nginx
- Nginx-04-Docker NginxNginxDocker
- Nginx啟動不了報錯未找到命令的解決方法(- bash: nginx: 未找到命令)Nginx
- windows 安裝Nginx服務WindowsNginx
- nginx windows下 快速關閉NginxWindows
- docker中建立Nginx和php-pfm 報file not find .錯誤。DockerNginxPHP
- 【Nginx】Windows平臺下配置Nginx服務實現負載均衡NginxWindows負載
- 【nginx】invalid PID number ““ in “/usr/local/nginx/logs/nginx.pid“Nginx
- Nginx報錯:Permission denied,沒有許可權!Nginx
- Nginx 405 以及301 解決報錯記錄Nginx
- nginx之 nginx限流配置Nginx
- nginx中的限速Nginx
- Windows+Nginx+H3C+ 文件服務 部署配置WindowsNginx