In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of the tuning methods commonly used in Linux, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this Linux tuning method. Let's take a look at it.
Turn off the selinux function
Selinux is the implementation of mandatory access control by the US National Security Agency, which is very powerful and troublesome at the same time. Most of the operators choose to turn it off and use other ways to increase security.
This command permanently shuts down selinux, and the restart of the system takes effect after execution.
[root@chao selinux] # sed-I's auto-boot service / etc/selinux/config boot self-boot service
Linux system and windows system is similar, boot will also start some services, useless services will take up resources and security risks, you need to run the services that must be booted self-boot, other shut down.
Need to boot self-starting service: sshd, remote connection needs to use this service rsyslog, log-related software networ Network-related software crond Timed task-related software sysstat data analysis software to view the current self-starting service [root@chao selinux] # systemctl list-unit-files | grep enabledabrt-ccpp.service enabledabrt-oops.service enabledabrt-vmcore.service enabledabrt-xorg.service enabledabrtd.service Enabledatd.service enabledauditd.service enabledautovt@.service enabledchronyd.service enabledcrond.service enableddbus-org.fedoraproject.FirewallD1.service enableddbus -org.freedesktop.ModemManager1.service enableddbus-org.freedesktop.NetworkManager.service enableddbus-org.freedesktop.nm-dispatcher.service enableddmraid-activation.service enabledfirewalld.service enabledgetty@.service enabledirqbalance.service enablediscsi.service enabledkdump.service Enabledksm.service enabledksmtuned.service enabledlibstoragemgmt.service enabledlibvirtd.service enabled, for example, wants to close a [root@chao selinux] # systemctl disable postfix.serviceRemoved symlink / etc/systemd/system/multi-user.target.wants/postfix.service. Set up the ssh service
Edit / etc/ssh/sshd_config file to change the default port to Port 22222 save exit, restart the service!
Linux Chinese Settings
Check to see if the system is zh_CN.UTF-8 if not manually add a line to this file.
[root@chao etc] # cat locale.confLANG= "zh_CN.UTF-8" set account timeout [root@chao ~] # echo 'export TMOUT=300' > > / etc/profile [root@chao ~] # source / etc/profile [root@chao ~] # env | grep-I tmout [root@chao ~] # vim / etc/profile [root@chao ~] # source / etc/profile [root@chao ~] # waiting for input timeout: automatically log out Connection closing...Socket close. Connection closed by foreign host.Disconnected from remote host (172.16.1.16) at 11:01:36.Type `help' to learn how to use Xshell prompt. Set the number of command line history
Change the original 5 articles to 10 articles
[root@chao ~] # sed-I's / ^ HISTSIZE = 5max HISTSIZE10Universe'/ etc/profile [root@chao ~] # source / etc/profile Hidden system version [root@chao ~] # echo redflag 5.9 > / etc/issue [root@chao ~] # cat / etc/issueredflag 5.9 Lock the important file [root@chao ~] # chattr-I / etc/passwd / etc/shoadow / etc/group / etc/gshadow / etc/inittab about the tuners commonly used in Linux This is the end of the article "what are the laws?" Thank you for reading! I believe you all have a certain understanding of "what are the tuning methods commonly used in Linux". If you want to learn more, you are welcome to follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.