In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to modify the host name of centos". 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 modify the host name of centos".
1 modify hostname [root@centos6 ~] $hostname # View current hostnmaecentos6.magedu.com [root@centos6 ~] $vim / etc/sysconfig/network # Edit network file modify hostname line (restart takes effect) [root@centos6 ~] $cat / etc/sysconfig/network # check and modify NETWORKING=yesHOSTNAME=centos66.magedu.com [root@centos6 ~] $hostname centos66.magedu.com # set the current hostname (effective immediately) [root@centos6 ~] $vim / etc/hosts # Edit the hosts file Add hostname [root@centos6 ~] $cat / etc/hosts # check 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 centos66.magedu.com::1 localhost localhost.localdomain localhost6 localhost6.localdomain62 centos7 modify hostname [root@centos7 ~] $hostnamectl set-hostname centos77.magedu.com # use this command to take effect immediately and restart Also effective [root@centos7 ~] $hostname # View centos77.magedu.com [root@centos7 ~] $vim / etc/hosts # Edit the hosts file Add hostname [root@centos7 ~] $cat / etc/hosts # check 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 centos77.magedu.com::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 to 127.0.0.1 Thank you for your reading. This is the content of "how to modify the host name by centos". After studying this article I believe that you have a deeper understanding of how to modify the host name of centos, 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.