{"id":38010,"date":"2022-04-25T09:00:18","date_gmt":"2022-04-25T01:00:18","guid":{"rendered":"https:\/\/www.casbay.com\/guide\/?post_type=kb&#038;p=38010"},"modified":"2022-09-07T20:13:27","modified_gmt":"2022-09-07T12:13:27","slug":"listing-services-in-linux-based-vps-guide","status":"publish","type":"kb","link":"https:\/\/www.casbay.com\/guide\/kb\/listing-services-in-linux-based-vps-guide","title":{"rendered":"Listing Out Services in Linux Based VPS Quick Guide"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"38010\" class=\"elementor elementor-38010\" data-elementor-post-type=\"kb\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-608209c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"608209c\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b9cb938\" data-id=\"b9cb938\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-df10b5d elementor-widget elementor-widget-text-editor\" data-id=\"df10b5d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>It is crucial to manage services and it can also be really difficult at times without the right tools. Most of the resources on a VPS are usually monitoring software to make resources easier to monitor. Services are programs that are running most of the in the background, which means they usually don\u2019t have an interface. In this tutorial, you will be able to learn how to list out the services on Linux based VPS. The commands that are present in this guide are compatible with both CentOS and Ubuntu.<\/p><p>Why is listing services in VPS needed to begin with? It is used for troubleshooting issues which are important when trying to solve some of the possible issues, such as being unable to access localhost. There are high chances that this happens due to the http service being disabled, but there are other chances of it being other issues too.<\/p><p>Before starting to list out the services in your VPS, it is required to connect to the server using a SSH.<\/p><p>To list the services in your VPS, you need to be signed in as the root user.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-51823d4 elementor-widget elementor-widget-text-editor\" data-id=\"51823d4\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<pre>su<\/pre>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-23e097d elementor-widget elementor-widget-text-editor\" data-id=\"23e097d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>To list all services in the Linux operating system, type in the following in yout terminal and run it.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-abe1318 elementor-widget elementor-widget-text-editor\" data-id=\"abe1318\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<pre>sudo systemctl list-unit-files --type service --all<\/pre>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6786461 elementor-widget elementor-widget-text-editor\" data-id=\"6786461\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>After running the command, you will be able to see a list of services revealed on the system. You will also be able to see their defined status and here is what each of those meant.<\/p><ul><li><strong>Enabled\u00a0<\/strong>\u2013 These are the services that are currently still running in the background<\/li><li><strong>Disabled<\/strong>\u00a0\u2013 These are services that are currently not active, but could still be activated when necessary.<\/li><li><strong>Masked<\/strong>\u00a0\u2013 These are services that wouldn\u2019t be able to run until a part of the property is taken away from them.<\/li><li><strong>Static<\/strong>\u00a0\u2013 These are services won\u2019t run unless another service requires them.<\/li><\/ul><p>For the case where you only wanted to monitor the running services, you could use the following command with the grep option as shown below.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1ead44a elementor-widget elementor-widget-text-editor\" data-id=\"1ead44a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<pre>sudo systemctl | grep running<\/pre>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0f595d1 elementor-widget elementor-widget-text-editor\" data-id=\"0f595d1\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>These are all you need for listing out services for a\u00a0<a href=\"https:\/\/www.casbay.com\/vps-hosting-malaysia\" target=\"_blank\" rel=\"noopener\">Linux VPS<\/a>.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>It is crucial to manage services and it can also be really difficult at times without the right tools. Most of the resources on a VPS are usually monitoring software to make resources easier to monitor. Services are programs that are running most of the in the background, which means they usually don\u2019t have an [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":38017,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[109],"kbtag":[106,105],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/38010"}],"collection":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/comments?post=38010"}],"version-history":[{"count":10,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/38010\/revisions"}],"predecessor-version":[{"id":38021,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/38010\/revisions\/38021"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/media\/38017"}],"wp:attachment":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/media?parent=38010"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=38010"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtag?post=38010"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=38010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}