{"id":17,"date":"2009-03-24T14:44:08","date_gmt":"2009-03-24T12:44:08","guid":{"rendered":"http:\/\/blog.syshalt.net\/?p=17"},"modified":"2013-11-14T11:31:11","modified_gmt":"2013-11-14T09:31:11","slug":"disable-unneed-centos-services","status":"publish","type":"post","link":"https:\/\/blog.syshalt.net\/index.php\/2009\/03\/24\/disable-unneed-centos-services\/","title":{"rendered":"Disable not needed CentOS services"},"content":{"rendered":"<p>In many situations we need every bit of resources from our servers. The main resource needed on all systems is RAM. Disabling some unneeded services will free a lot of memory.<br \/>\nThe proper way disabling a service from being started on boot is to use the \u201cchkconfig\u201d utility.<br \/>\nHere is a list of services that can be disabled without affecting the OS in a situation when you host a WEB, DHCP, DNS, FTP or your using the server as a ROUTER.<\/p>\n<p>chkconfig acpid off<br \/>\nchkconfig atd off<br \/>\nchkconfig autofs off<br \/>\nchkconfig cpuspeed off<br \/>\nchkconfig cups off<br \/>\nchkconfig gpm off<br \/>\nchkconfig haldaemon off<br \/>\nchkconfig isdn off<br \/>\nchkconfig mdmonitor off<br \/>\nchkconfig messagebus off<br \/>\nchkconfig netfs off<br \/>\nchkconfig nfslock off<br \/>\nchkconfig openibd off<br \/>\nchkconfig pcmcia off<br \/>\nchkconfig portmap off<br \/>\nchkconfig rawdevices off<br \/>\nchkconfig rpcgssd off<br \/>\nchkconfig rpcidmapd off<br \/>\nchkconfig smartd off<br \/>\nchkconfig xinetd off<\/p>\n<p>You can disable same service typing in terminal the \u201csetup\u201d command and selecting System Services menu. You can turn off \u201cmicrocode_ctl\u201d if this is an AMD machine, and \u201cirqbalance\u201d if there is only one CPU. If you plan on using plug and play devices you should leave \u201chaldaemon\u201d and \u201cmessagebus\u201d running. If you did not do a minimal install you\u2019ll have more services enabled.<br \/>\nIf you are not sure what something does, you can look in the particular service\u2019s startup script to see the comments at the beginning. The scripts are in the \/etc\/init.d directory.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In many situations we need every bit of resources from our servers. The main resource needed on all systems is RAM. Disabling some unneeded services will free a lot.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[437,460,456,451,567,450,447,439,204,441,438,223,448,436,440,148,446,442,458,457,435,444,459,434,449,461,343,453,462,445,443,452,103,455,454],"class_list":["post-17","post","type-post","status-publish","format-standard","hentry","category-linux","tag-acpid","tag-amd","tag-atd","tag-autofs","tag-centos","tag-cpuspeed","tag-ctl","tag-dhcp","tag-dns","tag-gpm","tag-haldaemon","tag-host","tag-init","tag-isdn","tag-mdmonitor","tag-memory","tag-menu","tag-nfslock","tag-pcmcia","tag-plug-and-play","tag-portmap","tag-ram","tag-router","tag-rpcgssd","tag-script","tag-scripts","tag-servers","tag-services-menu","tag-setup-command","tag-smartd","tag-something","tag-startup-script","tag-terminal","tag-unneeded-services","tag-xinetd"],"_links":{"self":[{"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/comments?post=17"}],"version-history":[{"count":4,"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/posts\/17\/revisions"}],"predecessor-version":[{"id":246,"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/posts\/17\/revisions\/246"}],"wp:attachment":[{"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/media?parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/categories?post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/tags?post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}