I was told by some more-experienced Cent users that there are a bunch of processes I should kill and get out of the startup folder. He said that Cent (even with a small install) has a bunch of processes that really aren't needed and just burn up processes. Which ones should I get rid of for just a webserver? MySQL server?
Thanks.
Hi David,
On Thu, Apr 9, 2009 at 3:21 PM, David Lemcoe forum@lemcoe.com wrote:
I was told by some more-experienced Cent users that there are a bunch of processes I should kill and get out of the startup folder. He said that Cent (even with a small install) has a bunch of processes that really aren't needed and just burn up processes. Which ones should I get rid of for just a webserver? MySQL server?
Depends on what you've installed and what you need.
Serviceconf is a nice way of graphically checking what background and on-demand services are configured for your system and what they are.
If you don't need MySQL or Web servers, you should have not installed them from start. :-)
Thanks for the tool. I have two servers, a just Apache/FTP and a MySQL. I was told that I can basically have NOTHING except for the daemon running, but that seems a little extreme :)
Thanks again,
David
On 4/9/09, Hakan Koseoglu hakan.koseoglu@gmail.com wrote:
Hi David,
On Thu, Apr 9, 2009 at 3:21 PM, David Lemcoe forum@lemcoe.com wrote:
I was told by some more-experienced Cent users that there are a bunch of processes I should kill and get out of the startup folder. He said that Cent (even with a small install) has a bunch of processes that really aren't needed and just burn up processes. Which ones should I get rid of for just a webserver? MySQL server?
Depends on what you've installed and what you need.
Serviceconf is a nice way of graphically checking what background and on-demand services are configured for your system and what they are.
If you don't need MySQL or Web servers, you should have not installed them from start. :-)
-- Hakan (m1fcj) - http://www.hititgunesi.org _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
----- Original Message ----
From: David Lemcoe forum@lemcoe.com To: CentOS mailing list centos@centos.org Sent: Thursday, April 9, 2009 10:39:40 AM Subject: Re: [CentOS] Processes to disable
Thanks for the tool. I have two servers, a just Apache/FTP and a MySQL. I was told that I can basically have NOTHING except for the daemon running, but that seems a little extreme :)
Thanks again,
David
On 4/9/09, Hakan Koseoglu wrote:
Hi David,
On Thu, Apr 9, 2009 at 3:21 PM, David Lemcoe wrote:
I was told by some more-experienced Cent users that there are a bunch of processes I should kill and get out of the startup folder. He said that Cent (even with a small install) has a bunch of processes that really aren't needed and just burn up processes. Which ones should I get rid of for just a webserver? MySQL server?
Depends on what you've installed and what you need.
Serviceconf is a nice way of graphically checking what background and on-demand services are configured for your system and what they are.
If you don't need MySQL or Web servers, you should have not installed them from start. :-)
-- Hakan (m1fcj) - http://www.hititgunesi.org _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
See http://www.scribd.com/doc/3000159/RHELCentOSMinimalServicesSetup
From the author's short list...
anacron and crond - "schedulers", used among other things for cleaning up logs iptables - firewall kudzu - hardware detection and configuration network is what it says (if disabled you will not have network access) sendmail is what it says sshd - secure shell deamon syslog - logs various system messages
To list, enable, and disable services use chkconfig (from a terminal) (you need to have root access)
http://www.linuxcommand.org/man_pages/chkconfig8.html
to see all services for all levels type: chkconfig --list
Level 3 is for terminal mode, Level 5 is for GUI mode
to disable/enable a service: chkconfig --level <levels> service-name off/on i.e. chkconfig --level 3 sshd off Disables sshd for levels 3
chkconfig --level 35 sshd on Enables sshd for level 3 and 5
To see the names of all the services installed on your system: ls /etc/rc.d/init.d
David Lemcoe wrote on Thu, 9 Apr 2009 10:21:02 -0400:
Which ones should I get rid of for just a webserver?
Quite simple: the ones you don't need. The one who knows this best is you. I think there may be some hints on the wiki about what specific services do. I'm sure that those "more-experienced Cent users" can help you in this, too. Also, deducing from all the questions coming lately from you you may be better off by installing Webmin and administering that way. Webmin does also have a short description for most daemons.
Btw, the OS is called "CentOS". Cent is a currency unit.
Kai
Hello,
On Thu, Apr 9, 2009 at 10:21, David Lemcoe forum@lemcoe.com wrote:
a bunch of processes that really aren't needed
Yes, many processes started in a default installation are not needed, but they are not harmful at all, and in most cases they will not bring you any problems.
On the other hand, if you start disabling processes, you might get into trouble and not know exactly why. So, especially if you are *not* a more experienced CentOS user, I would advise you against disabling processes that you do not know if you need or not. As I said, if you don't really need them, they will probably not be harmful to you.
and just burn up processes.
This is a very silly argument, it's not like you have a low limit of total number of processes in your system, and so far I have never seen anyone reach that limit.
Which ones should I get rid of for just a webserver? MySQL server?
If you do not plan to run MySQL server on a machine, then yes, you should disable it, but in that case you should not even have installed the RPM package to start with. In that case, the way I would advise you to disable it is to uninstall the RPM.
On Thu, Apr 9, 2009 at 16:29, Bogdan Nicolescu bo2k2@yahoo.com wrote:
to disable/enable a service: chkconfig --level <levels> service-name off/on i.e. chkconfig --level 3 sshd off Disables sshd for levels 3 chkconfig --level 35 sshd on Enables sshd for level 3 and 5
Never use the --level argument unless you have very specific needs.
You should use:
chkconfig sshd off
And:
chkconfig sshd on
The service initialization files have a list of "default" runlevels, which will probably make more sense than anything you specify.
To see the names of all the services installed on your system: ls /etc/rc.d/init.d
Using 'chkconfig --list' makes more sense than listing the init.d directory.
HTH, Filipe
----- Original Message ----
From: Filipe Brandenburger filbranden@gmail.com To: CentOS mailing list centos@centos.org Sent: Monday, April 13, 2009 6:02:32 AM Subject: Re: [CentOS] Processes to disable
Hello,
On Thu, Apr 9, 2009 at 10:21, David Lemcoe wrote:
a bunch of processes that really aren't needed
Yes, many processes started in a default installation are not needed, but they are not harmful at all, and in most cases they will not bring you any problems.
On the other hand, if you start disabling processes, you might get into trouble and not know exactly why. So, especially if you are *not* a more experienced CentOS user, I would advise you against disabling processes that you do not know if you need or not. As I said, if you don't really need them, they will probably not be harmful to you.
and just burn up processes.
This is a very silly argument, it's not like you have a low limit of total number of processes in your system, and so far I have never seen anyone reach that limit.
Which ones should I get rid of for just a webserver? MySQL server?
If you do not plan to run MySQL server on a machine, then yes, you should disable it, but in that case you should not even have installed the RPM package to start with. In that case, the way I would advise you to disable it is to uninstall the RPM.
On Thu, Apr 9, 2009 at 16:29, Bogdan Nicolescu wrote:
to disable/enable a service: chkconfig --level service-name off/on i.e. chkconfig --level 3 sshd off Disables sshd for levels 3 chkconfig --level 35 sshd on Enables sshd for level 3 and 5
Never use the --level argument unless you have very specific needs.
You should use:
chkconfig sshd off
And:
chkconfig sshd on
The service initialization files have a list of "default" runlevels, which will probably make more sense than anything you specify.
http://www.phpman.info/index.php/man/chkconfig/8
Maybe the chkconfig man pages can be revised to include "Never use the --level argument unless you have very specific needs" because "The service initialization files have a list of "default" runlevels, which will probably make more sense than anything you specify."
To see the names of all the services installed on your system: ls /etc/rc.d/init.d
Using 'chkconfig --list' makes more sense than listing the init.d directory.
chkconfig --list doesn't necessarily list all the services in /etc/rc.d/init.d
bn
HTH, Filipe _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon, Apr 13, 2009 at 12:03, Bogdan Nicolescu bo2k2@yahoo.com wrote:
To see the names of all the services installed on your system: ls /etc/rc.d/init.d
Using 'chkconfig --list' makes more sense than listing the init.d directory.
chkconfig --list doesn't necessarily list all the services in /etc/rc.d/init.d
It does list all that were properly registered. If a service is not listed by chkconfig --list, it means it was not registered with chkconfig --add, and it probably means that there was a problem while installing the package. AFAIK, if it does not show in chkconfig --list you will not be able to activate it with 'chkconfig <service> on' either.
Filipe
----- Original Message ----
From: Filipe Brandenburger filbranden@gmail.com To: CentOS mailing list centos@centos.org Sent: Monday, April 13, 2009 6:29:43 PM Subject: Re: [CentOS] Processes to disable
On Mon, Apr 13, 2009 at 12:03, Bogdan Nicolescu wrote:
To see the names of all the services installed on your system: ls /etc/rc.d/init.d
Using 'chkconfig --list' makes more sense than listing the init.d directory.
chkconfig --list doesn't necessarily list all the services in /etc/rc.d/init.d
It does list all that were properly registered. If a service is not listed by chkconfig --list, it means it was not registered with chkconfig --add, and it probably means that there was a problem while installing the package. AFAIK, if it does not show in chkconfig --list you will not be able to activate it with 'chkconfig on' either.
Filipe
Not properly registered with chkconfig doesn't necessarily mean that a service is not installed.
service --status-all is probably a better choice in finding the status of all the scripts in init.d, and not just those registered withc chkconfig.
bn