Basic Optimization after centos5.6linux is installed
Source: Internet
Author: User
1. disable unnecessary servers # ntsysv keep crondLinux scheduled task service irqbalance is used to optimize interrupt allocation to take full advantage of CPU multi-core networksshdsyslogLinux log system (important) 2 close iptables # servicesiptablesstop & amp; chkconfigi... 1. disable unnecessary servers
# Ntsysv
Retained
Crond
Linux scheduled task service
Irqbalance
Used to optimize interrupt allocation to make full use of multiple CPU cores
Network
Sshd
Syslog
Linux log system (important)
2. disable iptables
# Services iptables stop & chkconfig iptables off
Disable SELinux
# Vim/etc/selinux/config
Change selinux = "" in the file to desabled and restart
You can use setenforce 0 to disable SELinux without restarting it, but it becomes invalid after restart.
3. disable unwanted tty
# Vim/etc/inittab
# Run gettys in standard runlevels
1: 2345: respawn:/sbin/mingetty tty1
2: 2345: respawn:/sbin/mingetty tty2
3: 2345: respawn:/sbin/mingetty tty3
4: 2345: respawn:/sbin/mingetty tty4
5: 2345: respawn:/sbin/mingetty tty5
6: 2345: respawn:/sbin/mingetty tty6
Comment out the last four consoles and execute the init q command.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service