In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
01. Basic optimization of operating system
1. Operating system character optimization
View the default encoding information:
Echo $LANG
En_US.UTF-8
Temporary modification:
LANG=zh_CN.utf8
Permanent modification:
Vi / etc/locale.conf
LANG= "zh_CN.utf8"
Temporary and permanent changes are made:
Localectl set-locale LANG= "zh_CN.gbk"
two。 System remote connection optimization
Vi / etc/ssh/sshd_config-remote service profile
115 UseDNS no-whether to enable the reverse parsing process of DNS
79 GSSAPIAuthentication no-whether or not GSSAPI certification
Systemctl restart sshd-restart service command
System prompt optimization
Special environment variable: PS1
[\ u@\ h\ W]\ $
[root@backup ~] #
\ u-indicates the user information of logging in to the system
\ h-represents host name information
\ W-display current path information
Temporary modification:
PS1=' [\ u@\ h\ w]\ $'
PS1=' [\ u@\ h\ W\ t]\ $'
Permanent modification:
Vi / etc/profile
PS1=' [\ u@\ h\ W\ t]\ $'
Modify the command prompt color:
PS1=' [\ e [32th 1m] [\ u@\ h\ W\ t]\ $[\ e [0m]'
① ② ③
[\ e [32th 1m]-string information add color numeric information to indicate different color font information is bold
[\ e [0m]-stop subsequent string color modification
02. System information viewing method
System information view
1) use system version information: centos 7.6
Cat / etc/redhat-release
Kernel: view kernel information uname-a
Hardware information query
CPU: view file information cat / proc/cpuinfo
Cpu Information lscpu
Memory: viewing file information cat / proc/meminfo
Memory information free-h
Disk: disk mount file information cat / proc/mounts
Mount information df-h
Load: system load file information cat / proc/loadavg
Load information w
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.