In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "what is the knowledge of Linux system network service". In the daily operation, I believe that many people have doubts about the knowledge of Linux system network service. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "what is the knowledge of Linux system network service?" Next, please follow the editor to study!
Linux system network services, according to the methods they use, can be divided into three categories:
Services controlled by init
Services started by the System V startup script
III. Services managed by xinetd
Below, we will introduce these three services respectively.
Services controlled by init
Configured in / etc/inittab, the service that can set the respawn parameter starts automatically every time it is shut down.
After the inittab file has been modified, you can use # init Q to make the changes take effect.
II. Services initiated by System V
Started by the System V script in the / etc/rc.d/init.d/ directory. To control System V's services, we can use the
# / etc/rc.d/init.d/script {start | stop | restart |
You can also use the service command to execute a script, such as
# service sshd restart
The default switches for System V services can be different at different levels. We use chkconfig and ntsysv to control.
# chkconfig-- list looks at the switches at all levels of the system's system v service.
# chkconfig sshd on | off changes the default switch at sshd service level 2-5
# chkconfig-- level level sshd on | off changes the default switch of the sshd service at a certain level.
# ntsysv is a graphical interface, you can choose after you run the command, but it only affects the current level.
III. Management of xinetd services
The management files for the xinetd service are placed in the / etc/xinetd.d directory, and we can edit the service files in this directory to turn the service on and off. Every service file has the line disable. If you change the value to yes, you will disable the service. If it is no, you will start the service. After the modification is successful, you need to restart the xinetd service for the change to take effect.
# service xinetd restart
At this point, the study of "what is the knowledge of Linux system network service" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.