In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to modify the Linux host name, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
1. View the current hostname
[root@fangjian ~] # hostnamectlStatic hostname: bracePretty hostname: BraceIcon name: computer-vmChassis: vmMachine ID: 20191225111607875619293640639763Boot ID: 25ac5021d229471382a26bea3d351de3Virtualization: kvmOperating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7Kernel: Linux 3.10.0-1062.9.1.el7.x86_64Architecture: x86-64
two。 Temporarily modify the hostname
[root@fangjian ~] # hostnameyin # temporarily modify the hostname and disable [root@fangjian ~] # hostnameyin after shutdown
3. Permanently modify the hostname
1. Method 1: use the hostnamectl command [root@fangjian ~] # hostnamectl set-hostname Brace # to permanently set the user name, do not fail [root@fangjian ~] # hostnamebrace2 after shutdown, method 2: modify the configuration file / etc/hostname save and exit [root@fangjian ~] # vi / etc/hostname # enter vi, delete the old hostname, enter the new hostname, wq quit saving brace # reboot restart after Esc Do you know how to change the Linux hostname? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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: 266
*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.