maanantai 15. lokakuuta 2012

part 4. Cleaning unnecessary services

House cleaning (of unnecessary services)
I started by looking at what services are running and cleaning unnecessary. You can search Google to see what are the recommended services to shut down/keep in server environmet (in other words what is recommended to take off after a clean Redhat install). Removing them will improve both performance and security.

The command to run for seeing what services are currently on:
chkconfig  --list | grep “:on”

Create a script for swithing off unnecessary services (e.g. cleanup.sh), give it execute permissions (chmod +x cleanup.sh) and run it. Here are my commands just from the command line:

[root@soaserver2 bin]# chkconfig avahi-daemon off
[root@soaserver2 bin]# chkconfig bluetooth off
[root@soaserver2 bin]# chkconfig cups off
[root@soaserver2 bin]# chkconfig firstboot off
[root@soaserver2 bin]# chkconfig gpm off
[root@soaserver2 bin]# chkconfig haldaemon off
[root@soaserver2 bin]# chkconfig kudzu off
[root@soaserver2 bin]# chkconfig lm_sensors off
[root@soaserver2 bin]# chkconfig mdmonitor off
[root@soaserver2 bin]# chkconfig messagebus off
[root@soaserver2 bin]# chkconfig microcode_ctl off
[root@soaserver2 bin]# chkconfig pcscd off
[root@soaserver2 bin]# chkconfig postfix off
[root@soaserver2 bin]# chkconfig rhnsd off
[root@soaserver2 bin]# chkconfig setroubleshoot off
[root@soaserver2 bin]# chkconfig xfs off
[root@soaserver2 bin]#


Ei kommentteja:

Lähetä kommentti