2014年10月4日 星期六

[Ubuntu 常見問題] Why is chkconfig no longer available in Ubuntu?

Source From Here
Question:
I can not use chkconfig tools in Ubuntu 12.10
It's a very useful tools to configure the service to autostart or not. Why is it no longer available?

Answer:
sysv-rc-conf is an alternate option for Ubuntu. The usage is almost the same.
To install:
# sudo apt-get install sysv-rc-conf

To configure apache2 to start on boot:
# sysv-rc-conf apache2 on
//equivalent chkconfig command
// chkconfig apache2 enable

To check runlevels apache2 is configured to start on
# sysv-rc-conf --list apache2
// equivalent chkconfig command
// chkconfig --list apache2

沒有留言:

張貼留言

[Git 常見問題] error: The following untracked working tree files would be overwritten by merge

  Source From  Here 方案1: // x -----删除忽略文件已经对 git 来说不识别的文件 // d -----删除未被添加到 git 的路径中的文件 // f -----强制运行 #   git clean -d -fx 方案2: 今天在服务器上  gi...