Detailed analysis of Linux System Network Services

Source: Internet
Author: User

The Linux network service is a system running condition that must be understood by the system administrator. Three Linux network services are described here to learn about this.

Linux network services can be divided into three types based on the methods used:
1. services controlled by init
2. Services started by the System V Startup Script
3. Services managed by xinetd

The following describes the three services.

I. init-controlled services

In the/etc/inittab, you can set the respawn parameter to automatically start the service when it is disabled.
After the inittab file is modified, you can use # init q to make the change take effect.

Ii. Services started by System V

Started by the System V script in the/etc/rc. d/init. d/directory. To control System V services, we can use
#/Etc/rc. d/init. d/script {start | stop | restart |
You can also use the service command to execute the script, for example
# Service sshd restart
The default Switches of System V services at different levels can be different. We use chkconfig and ntsysv for control.
# Chkconfig -- list view the switch status at the system level of system v service.
# Chkconfig sshd on | off changes the default switch of sshd service between 2 and 5 levels
# Chkconfig -- level sshd on | off changes the default switch of the sshd service at a certain level.
# Ntsysv is a graphical interface. You can select it after running the command, but it only affects the current level.

3. xinetd service management

The management files of the xinetd service are stored in the/etc/xinetd. d directory. You can edit the service files in this directory to enable and disable the service. Each service file has the disable line. If you change the value to yes, the service is disabled. If it is no, the service is started. After the modification is successful, you need to start the xinetd service again to make the modification take effect.
# Service xinetd restart

Here is the knowledge of Linux network services.

  1. Linux time Conversion Method
  2. Three Tips for improving Linux Management Efficiency
  3. Solve Linux root password retrieval
  4. Introduction to Linux Log Files
  5. Comprehensive Analysis of Linux scheduled task cron

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.