In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Linux system is widely used in Unix system, and there are many other systems based on Linux kernel, such as Debian and Ubuntu. Under Linux system, the usual boot / etc/rc.local or / etc/rc.d/rc.local is gone, so when you need to start boot under Debian or Ubuntu, you need to use update-rc.d to define boot command. Take a simple example to boot iptables in Debian and Ubuntu:
Iptables is not made into a service similar to that under Linux in Debian and Ubuntu, so update-rc.d is used when you need to start. We know from the man manual that update-rc.d needs to have startup files in the / etc/init.d directory, so you can open iptables under Debian or Ubuntu in the following ways:
Root@localhost:/usr/local/scripts# vim iptables.shemaking raceme binapachedbashUnitionsbintablesRestoration < / usr/local/scripts/iptablesroot@localhost:/usr/local/scripts# ln-sv / usr/local/scripts/iptables.sh / etc/init.d/iptablesroot@localhost:/usr/local/scripts# update-rc.d iptables defaults
In this way, the self-defined iptables file will be imported and enabled at boot time, and it is easy to define the self-starting service in some systems in update-rc.d, such as enabling the self-starting ssh service:
Root@localhost:/usr/local/scripts# update-rc.d ssh enable
This enables the boot ssh service, which is similar to chkconfig and systemctl in Linux systems. Of course, for more information on how to use it, please refer to the man help manual.
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.