问题描述
Ubuntu 14.04 下安装 Nginx(或其他的,同理) 服务器,在添加 nginx 服务时出现如下信息
chkconfig --add nginx
chkconfig: command not found
问题原因
Ubuntu 中 chkconfig 已经被 sysv-rc-conf 所替代,chkconfig 命令如下:
chkconfig --add nginx
chkconfig nginx on
问题解决
apt-get update
apt-get install sysv-rc-conf
sysv-rc-conf nginx on
分类: Linux, Nginx, Ubuntu