In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use the hostnamectl command of CentOS7". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to use the hostnamectl command of CentOS7.
Usage # hostnamectl-transient-- help display help-- version shows the version of the installation package-- transient modifies temporary hostname-- static modifies transient hostname-- pretty modifies flexible hostname-- privileges obtained by privileged before execution-- no-ask-password Enter password without prompting-H-- host= [user @] HOST operation remote host Commands:status display current hostname setting set-hostname NAME setting system hostname set-icon-name NAME setting icon name set-chassis NAME setting host platform type name
There are three defined hostnames in CentOS7: static, transient, and pretty. The static hostname, also known as the kernel hostname, is the hostname that the system initializes automatically from within / etc/hostname at startup. The transient hostname is the hostname temporarily assigned while the system is running. Flexible hostnames allow hostnames with special characters.
Common command 1. Check the status of # hostnamectl or # hostnamectl status (the results shown are all the same) Static hostname: localhost.localdomain Icon name: computer-vm Chassis: vm Machine ID: 049717292ec9452890e50401d432e43c Boot ID: 2e69a66a7c724db6a44a8536f1670f7f Virtualization: kvmOperating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-229.el7.x86_64 Architecture: x86: 642. Modify the host name # hostnamectl set-hostname Linuxprobe# hostnamectl status Static hostname: linuxprobe Pretty hostname: Linuxprobe Icon name: computer-vm Chassis: vm Machine ID: dc99c115d7414d159fa4c5c0c0541c55 Boot ID: 6236b67c13af4d98b5fa3780e66dfdeb Virtualization: kvmOperating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-229.el7.x86_64 Architecture: x8664 Thank you for your reading The above is the content of "how to use the hostnamectl command of CentOS7". After the study of this article, I believe you have a deeper understanding of how to use the hostnamectl command of CentOS7, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.