卸载不常用的东西

  1. yum remove Deployment_Guide-en-US finger cups-libs cups ypbind
  2. yum remove bluez-libs desktop-file-utils ppp rp-pppoe wireless-tools irda-utils
  3. yum remove sendmail* samba* talk-server finger-server bind* xinetd
  4. yum remove nfs-utils nfs-utils-lib rdate fetchmail eject ksh mkbootdisk mtools
  5. yum remove syslinux tcsh startup-notification talk apmd rmt dump setserial portmap yp-tools
  6. yum groupremove "Mail Server" "Games and Entertainment" "X Window System" "X Software Development"
  7. yum groupremove "Development Libraries" "Dialup Networking Support"
  8. yum groupremove "Games and Entertainment" "Sound and Video" "Graphics" "Editors"
  9. yum groupremove "Text-based Internet" "GNOME Desktop Environment" "GNOME Software Development"

禁用 seLinux

  1. sestatus #先执行看seLinux状态,如果不是disabled,就需要执行下面步骤,否则不要执行
  2. vi /etc/selinux/config
  3. SELINUX=disabled #禁用SeLinux
  4. SELINUX=enforcing #使用SeLinux

禁止IPV6

  1. vi /etc/modprobe.conf  #打开文件,把下面两行加到最后
  2. alias net-pf-10 off
  3. alias ipv6 off

禁止无用服务

  1. #! /bin/bash
  2. service acpid off
  3. service atd stop
  4. service auditd stop
  5. service avahi-daemon stop
  6. service avahi-dnsconfd stop
  7. service bluetooth stop
  8. service conman stop
  9. service cpuspeed stop
  10. service cups stop
  11. service dnsmasq stop
  12. service dund stop
  13. service firstboot stop
  14. service hidd stop
  15. service httpd stop
  16. service ibmasm stop
  17. service ip6tables stop
  18. service irda stop
  19. service kdump stop
  20. service lm_sensors stop
  21. service mcstrans stop
  22. service messagebus stop
  23. service microcode_ctl stop
  24. service netconsole stop
  25. service netfs stop
  26. service netplugd stop
  27. service nfs stop
  28. service nfslock stop
  29. service nscd stop
  30. service ntpd stop
  31. service oddjobd stop
  32. service pand stop
  33. service pcscd stop
  34. service portmap stop
  35. service psacct stop
  36. service rdisc stop
  37. service restorecond stop
  38. service rpcgssd stop
  39. service rpcidmapd stop
  40. service rpcsvcgssd stop
  41. service saslauthd stop
  42. service sendmail stop
  43. service setroubleshoot stop
  44. service smb stop
  45. service vncserver stop
  46. service winbind stop
  47. service wpa_supplicant stop
  48. service xfs stop
  49. service ypbind stop
  50. service yum-updatesd stop
  51. chkconfig acpid off
  52. chkconfig atd off
  53. chkconfig auditd off
  54. chkconfig avahi-daemon off
  55. chkconfig avahi-dnsconfd off
  56. chkconfig bluetooth off
  57. chkconfig conman off
  58. chkconfig cpuspeed off
  59. chkconfig cups off
  60. chkconfig dnsmasq off
  61. chkconfig dund off
  62. chkconfig firstboot off
  63. chkconfig hidd off
  64. chkconfig httpd off
  65. chkconfig ibmasm off
  66. chkconfig ip6tables off
  67. chkconfig irda off
  68. chkconfig kdump off
  69. chkconfig lm_sensors off
  70. chkconfig mcstrans off
  71. chkconfig messagebus off
  72. chkconfig microcode_ctl off
  73. chkconfig netconsole off
  74. chkconfig netfs off
  75. chkconfig netplugd off
  76. chkconfig nfs off
  77. chkconfig nfslock off
  78. chkconfig nscd off
  79. chkconfig ntpd off
  80. chkconfig oddjobd off
  81. chkconfig pand off
  82. chkconfig pcscd off
  83. chkconfig portmap off
  84. chkconfig psacct off
  85. chkconfig rdisc off
  86. chkconfig restorecond off
  87. chkconfig rpcgssd off
  88. chkconfig rpcidmapd off
  89. chkconfig rpcsvcgssd off
  90. chkconfig saslauthd off
  91. chkconfig sendmail off
  92. chkconfig setroubleshoot off
  93. chkconfig smb off
  94. chkconfig vncserver off
  95. chkconfig winbind off
  96. chkconfig wpa_supplicant off
  97. chkconfig xfs off
  98. chkconfig ypbind off
  99. chkconfig yum-updatesd off
  100. 这个你可以自己复制运行也可以做成 Shell

发表回复

后才能评论