Get the App
SLTechnology News&Howtos  ›  Development  › 

How to remove useless Web Services by linux

Shulou Source: shulou.com Published: 2022-06-01 04:59:07 10月05日 Update

This article will explain in detail how linux removes useless web services. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Remove useless network services

Almost all Linux server operating systems have enabled some network-oriented services. You may want to keep most of them, however, there are some you may want to delete. You can use the ss command to view all running web services: (LCTT translation note: only a few should be retained, and all confirmed irrelevant and useless services should be disabled or deleted. )

$sudo ss-atpu

The output of ss depends on your operating system. The following is an example that shows that the SSH (sshd) and Ngnix (nginx) services are listening on the network and preparing to connect:

Tcp LISTEN 0 128 *: http *: * users: (("nginx", pid=22563,fd=7)) tcp LISTEN 0 128 *: ssh *: * users: (("sshd", pid=685,fd=3))

The way you delete unused services varies depending on your operating system and the package manager it uses.

To delete unused services on Debian / Ubuntu:

$sudo apt purge

To delete unused services on Red Hat/CentOS:

$sudo yum remove

Run ss-atup again to verify that these unused services are not installed and running.

This is the end of the article on "how linux removes useless web services". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Services networks network services operating systems articles systems running more being good practical content again depending on commands articles methods servers knowledge examples Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft NVidia Shulou Technology Huawei Shulou Information