In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use undate-rc.d in Debian, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Debian's update-rc.d is similar to RH's chkconfig tool. However, chkconfig is a binary program, and update-rc.d is a Perl script. These tools have different command-line options, but perform similar functions.
Command function
Update-rc.d-f remove removes the specified service from all runlevel configuration directories
The update-rc.d start configuration service starts in the specified order in the runlevel list
The update-rc.d stop configuration service stops in the order specified in the runlevel list
The biggest difference between update-rc.d and RH's chkconfig is that update-rc.d is a run-level link to the service script in the / etc/init.d directory, while chkconfig is to configure the service separately for each run-level. In essence, this means that every time we use update-rc.d to change one runlevel, we have to change everything. For example, the following command sequence has the same effect as the command chkconfig-level 2345 inetd off:
$update-rc.d-f inetd remove
$update-rc.d inetd stop 20 0 1 2 3 4 5 6.
The first command removes all run-level links to the / etc/init.d/inetd service script, and the-f flag will cause update-rc.d to handle even if the inetd script itself already exists. The second command creates a stop script with a service level of 20 at each run level. For example, this creates a symbolic link to / etc/rc3.d/K20inetd to disable inetd in runlevel 3. What we need to notice here is that we want to display the add reboot and shutdown runlevels, that is, 0 and 6, even though all of the services will be set to "stop". As another example, the command shown below will allow inetd to run at run levels 3 to 5, while it will be disabled at other run levels:
$update-rc.d-f inetd remove
$update-rc.d inetd start 20 3 4 5. Stop 20 0 1 2 6.
Thank you for reading this article carefully. I hope the article "how to use undate-rc.d in Debian" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.