How can I check which services are installed on CentOS?

To view the services installed on a CentOS system, you can use the following command:

  1. Show a list of unit files with systemctl.
systemctl list-unit-files
  1. list all units in the systemctl
systemctl list-units
  1. Show dependencies with systemctl.
systemctl list-dependencies <service-name>
  1. list all installed packages
  2. web server
rpm -qa | grep httpd

With the above command, you can view all the installed services on a CentOS system along with their dependencies.

Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds