1. disable services not required by some servers, such as bluetooth and pcscd. cancel some less commonly used scheduled tasks, such as makewhatis. cron (/etc/cron. weekly and/etc/cron. in daily), which is used to generate the whatis database...
1. disable services not required by some servers
For example, bluetooth and pcscd
2. cancel some uncommon scheduled tasks
For example, makewhatis. cron (in/etc/cron. weekly and/etc/cron. daily) is used to generate the whatis database.
In addition, mlocate. cron (in/etc/cron. daily) is used to generate the locate database.
3. Disable useless tty
6 TTY is enabled by default, that is, ctrl + alt + F1--F6
Use ps-aux | grep tty to find 6 tty
Modify the/etc/inittab and find
# 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
Add the # comment before the desired tty, and then use init q to take effect immediately.
At this time, you can use ps-aux | grep tty to find that there is not so much .....
4. cancel atime
It is very necessary in web services, especially when a large number of small images or small files are accessed, the atime of the files is modified once every time, increasing the I/O burden, first, find the web file storage partition.
Add noatime and nodiratime to the ULTS file after the Mount parameter.
To take effect immediately, run the mount-o remount command.
This article is from the "flying bike" blog