Linux system Basic Optimization 16 Knowledge Summary

Source: Internet
Author: User

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

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.