Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the basic optimization knowledge of CentOS system?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "what are the basic optimization knowledge of CentOS system". In the operation process of actual cases, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

Summary of optimization:

1, do not root management, in the name of ordinary users through sudo authorization management;

2. Change the default remote connection server, prohibit root user from remote connection, or even change only listening to intranet ip;

3. Automatically update the server time regularly to synchronize it with Internet time;

4. Configure yum update source and download and install software package from domestic update source;(x)

5. Close selinux and iptables (in the work scene, if there is an external ip, it must be turned on);

6, adjust the number of descriptors, process and file opening will consume file descriptors;

7. Automatically clean up spam files in mail directories on a regular basis to prevent inodes nodes from being occupied (note that the directories of Centos6 and Centos5 are different);

Streamline and retain the necessary boot-up services (sshd, rsyslog, network, crond, systat);

Linux kernel parameter optimization/etc.sysctl.conf, and through the sysctl -p option to make it effective;

10. Change the character set to support Chinese, but it is recommended to use English character set to prevent garbled characters;

11. Lock key system files such as/etc/passwd,/etc/shadow,/etc/gshadow,/etc/group,/etc/inittab; it is much safer to change chattr, lsattr to you or other commands to handle the above contents.

12. Clear/etc/issue,/etc/issue.net, remove system and kernel version before the prompt;

13. Clear redundant system virtual accounts;

14. Add password to grub menu;

15, prohibit PING and be PING;

16. Upgrade vulnerable software.

"CentOS system basic optimization knowledge what" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report