{"id":94,"date":"2021-06-17T12:50:16","date_gmt":"2021-06-17T12:50:16","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=94"},"modified":"2021-06-17T12:55:16","modified_gmt":"2021-06-17T12:55:16","slug":"how-to-start-stop-and-restart-services-on-linux-dedicated-server","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/how-to-start-stop-and-restart-services-on-linux-dedicated-server\/","title":{"rendered":"How to Start, Stop and Restart Services on Linux Dedicated Server"},"content":{"rendered":"<p>The two different kind of programs running in Linux dedicated servers, one which needs user interaction and another which execute tasks without user involvement. The programs that run tasks in the background are normally known as \u201cservices\u201d and \u201cdaemons\u201d.<\/p>\n<p>Basically, there are several services required on servers to run the background like DB Server, Firewall, Web Server, DNS System, Mail Server, etc\u2026 Due to these various services, it is very much necessary to know the exact process of starting, stopping and restarting the services.<\/p>\n<p>The process of being, start, stop and restart the services get change as per the linux distributions. So in this article we will study about how to start, stop and restart services in CentOS Dedicated Server.<\/p>\n<p>The two different methods through which you can start, stop and restart any desired service are as follow:<\/p>\n<h2><strong>How to Start a Service?<\/strong><\/h2>\n<blockquote><p>First Method:<br \/>\n<em>\/etc\/init.d\/service-name start<\/em><\/p><\/blockquote>\n<blockquote><p>Second Method:<br \/>\n<em>service service-name start<\/em><\/p><\/blockquote>\n<h2><strong>How to Stop a service?<\/strong><\/h2>\n<blockquote><p>First Method:<br \/>\n<em>\/etc\/init.d\/service-name stop<\/em><\/p><\/blockquote>\n<blockquote><p>Second Method:<br \/>\n<em>service service-name stop<\/em><\/p><\/blockquote>\n<h2><strong>How to Check the Status of a Service: (whether it is running or not)<\/strong><\/h2>\n<blockquote><p>First Method:<br \/>\n<em>\/etc\/init.d\/service-name status<\/em><\/p><\/blockquote>\n<blockquote><p>Second Method:<br \/>\n<em>service service-name status<\/em><\/p><\/blockquote>\n<h2><strong>How to restart a service on dedicated server?<\/strong><\/h2>\n<blockquote><p>First Method:<br \/>\n<em>\/etc\/init.d\/service-name restart<\/em><\/p><\/blockquote>\n<blockquote><p>Second Method:<br \/>\n<em>service service-name restart<\/em><\/p><\/blockquote>\n<p>It might be possible that few services may have additional command settings. To find the available ones, enter:<\/p>\n<blockquote><p>First Method:<br \/>\n<em>\/etc\/init.d\/rsync [start, stop, reload, force-reload, restart, status]<\/em><\/p><\/blockquote>\n<blockquote><p>Second Method:<br \/>\n<em>service rsync<\/em><\/p>\n<p>\u2014<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>The two different kind of programs running in Linux dedicated servers, one which needs user interaction and another which execute tasks without user involvement. The programs that run tasks in the background are normally known as \u201cservices\u201d and \u201cdaemons\u201d. Basically, there are several services required on servers to run the background like DB Server, Firewall, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-94","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Start, Stop and Restart Services on Linux Dedicated Server - OWS KB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ownwebservers.com\/kb\/how-to-start-stop-and-restart-services-on-linux-dedicated-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Start, Stop and Restart Services on Linux Dedicated Server - OWS KB\" \/>\n<meta property=\"og:description\" content=\"The two different kind of programs running in Linux dedicated servers, one which needs user interaction and another which execute tasks without user involvement. The programs that run tasks in the background are normally known as \u201cservices\u201d and \u201cdaemons\u201d. Basically, there are several services required on servers to run the background like DB Server, Firewall, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/how-to-start-stop-and-restart-services-on-linux-dedicated-server\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-17T12:50:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-17T12:55:16+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"admin\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"OWS KB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ownwebservers.com\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-start-stop-and-restart-services-on-linux-dedicated-server\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/how-to-start-stop-and-restart-services-on-linux-dedicated-server\/\",\"name\":\"How to Start, Stop and Restart Services on Linux Dedicated Server - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"datePublished\":\"2021-06-17T12:50:16+00:00\",\"dateModified\":\"2021-06-17T12:55:16+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-start-stop-and-restart-services-on-linux-dedicated-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/how-to-start-stop-and-restart-services-on-linux-dedicated-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-start-stop-and-restart-services-on-linux-dedicated-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-start-stop-and-restart-services-on-linux-dedicated-server\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/how-to-start-stop-and-restart-services-on-linux-dedicated-server\/\",\"name\":\"How to Start, Stop and Restart Services on Linux Dedicated Server\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba5db5841d48bd7517bb2583e13983e6d2fa56a4099a0b3c61ad2daefc321303?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ownwebservers.com\/kb\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/94","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=94"}],"version-history":[{"count":5,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/94\/revisions"}],"predecessor-version":[{"id":99,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/94\/revisions\/99"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=94"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=94"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}