nginx: [emerg] unknown directive "gridfs" in /etc/nginx/nginx.conf

609 阅读1分钟

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