chkconfig: command not found


問題描述

  • Ubuntu 16.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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM