Summary of optimization:
1, without root management, in the name of ordinary users through sudo authorization management.
2, change the default remote connection SSH service port, prohibit the root user to connect remotely, even
To change only listen to the intranet IP.
3, automatically update the service area time, so that it and the Internet time synchronization.
4. Configure Yum and Xinyuan to download the security package from the update source.
5, close SELinux and iptables (in the work scenario, if there is an external IP generally open
6, adjust the number of file descriptors, process and file opening will consume the file description.
7, automatically clean up the Mail directory garbage file regularly, prevent inodes node from being full
(Note that the CENTOS6 and CENTOS5 directories are different).
8, fine and retain the necessary start-up service (CROND,SSHD,NETWORK,RSYSLOG,SYSSTAT)
9, the Linux kernel parameter optimization/etc/sysctl.conf, the execution sysctl-p takes effect.
10, change the character set, to support Chinese, but it is recommended to use the English character set, to prevent garbled.
11. Lock key files such as (/etc/passwd/tec/shadow/etc/group/etc/???? /etc/inittab)
After processing the above content, Chattr, lsattr renamed to Oldboy, safe.
12, empty/etc/issue,/etc/issue.net, remove the system and kernel version of the pre-logon information.
13. Clear the excess system account.
14. Add the password for the Grub menu.
15, forbidden to be ping.
16, upgrade the vulnerability software.
Linux system Basic Optimization 16 Knowledge Summary