In linux, how does one know which services are started?

Source: Internet
Author: User
In linux, how does one know which services are started-Linux Enterprise Application-Linux server application information? The following is a detailed description. If a machine runs many services that are not needed, the possibility of being intruded by attackers is greatly increased. Therefore, as an administrator, you should always check which services are running in the system.

1. First, check the processes running by the system. To view all processes currently running by the system, run the following command:

# Ps auxw

The parameter a shows the processes of all users in the system, the user information of the output process, and the process without the console; if the displayed row is truncated because it is too long, the f parameter can be used;

2. view the system listening service

# Netstat-ln

L indicates the port information of the current system listener; n indicates that the port is displayed according to the port number, rather than the port name defined in the service file; if you want to know which processes listen on each port, you can use the p parameter. If you find unnecessary services, you can use the linuxconf or ntsysv command to disable these services from being started when the system is started, and then restart the system. These services are running.

Some services are monitored by the inetd super server. You need to mark/etc/inetd. conf to disable these services.

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.