How to optimize Linux systems

Source: Internet
Author: User

1. Compact installation When installing the system (minimized installation)

2. Configure the domestic high-speed Yum source.

3. Disable boot-up services that are not required.

4. Optimize system kernel parameter/etc/sysctl.conf.

5. Add configuration such as System file descriptor, stack, etc.

6. Disable root login, modify SSH port to special port, prohibit DNS, empty password

Machines with extranet IP to turn on configuring firewalls, only open ports that need to be serviced, configure or deactivate SELinux

7. Clear the unused default system account or group (the user who added the OPS member)

8 lock sensitive files, such as/etc/passwd (Chattr +i/etc/passwd and then no longer create users)

(LSATTR/ETC/PASSWD)

9 Configuring the server and Internet time synchronization (scheduled Tasks)

10 configuring sudo fine-grained control over normal user privileges (config sudo)

11 write the above 10 points as a one-click Optimization script.

How to optimize Linux systems

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.