如何在Ubuntu上安装chkconfig? [英] How do I install chkconfig on Ubuntu?
问题描述
我正在运行Ubuntu 13.10,并且对Linux来说还很陌生.我尝试过:
I am running Ubuntu 13.10, and I'm pretty new to Linux. I tried:
$ sudo apt-get install chkconfig
软件包chkconfig不可用,但由另一个软件包引用. 这可能意味着包裹丢失,已被废弃或 仅可从其他来源获得
Package chkconfig is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E:软件包"chkconfig"没有安装候选对象
E: Package 'chkconfig' has no installation candidate
我手动下载了该软件包并解压缩.生成的文件夹中有一个文件:
I manually downloaded the package and unzipped it. The resulting folder has a file called:
chkconfig.install
但是我该如何运行呢?我试过了,但是没用.
But how do I run this? I tried this, but it didn't work.
$ sudo chkconfig.install
推荐答案
命令chkconfig
在Ubuntu中不再可用.与chkconfig
等效的命令是update-rc.d
.该命令几乎支持所有新版本的ubuntu.
The command chkconfig
is no longer available in Ubuntu.The equivalent command to chkconfig
is update-rc.d
.This command nearly supports all the new versions of ubuntu.
类似的命令是
update-rc.d <service> defaults
update-rc.d <service> start 20 3 4 5
update-rc.d -f <service> remove
这篇关于如何在Ubuntu上安装chkconfig?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!