天天看點

nginx: [emerg] unknown directive "gridfs" in /etc/nginx/nginx.confRef問題原因解決注意

Ref

【1】nginx configuration file throws error while gridfs configure?

【2】convert update-rc.d command into chkconfig

【3】CentOS下安裝使用start-stop-daemon

問題原因

通過源碼編譯的nginx-gridfs沒有包含

/etc/nginx/

目錄

解決

按照第一個連結一步步來,就不複制了

update-rc.d command not found

RedHat系沒有這個指令,根據【2】做

/lib/lsb/init-functions no such file or directory

yum install -y redhat-lsb

tart-stop-daemon: command not found nginx.

這個也是CentOS裡面沒有的指令, 按【3】的步驟安裝一下,基本就沒問題了

注意

以後就用

/etc/init.d/nginx

這個啟動腳本管理nginx

轉載于:https://juejin.im/post/5ceedfb25188254c5879f3e8