Method 1: hostnamectl modification Step 1 Check the host name hostname Step 2 Change the host name Command form hostnamectl set-hostname hostname Revise hostnamectl set-hostname Master Step 3 Check the host name again hostname No need to restart, just open a new session to change to a new hostname Method 2: By modifying the file Modify the file vi /etc/hostname add hostname Slave01 vi /etc/sysconfig/network Add the correspondence between IP and hostname 10.238.162.33 Slave01 Reboot to take effect Method 3: Temporarily modify the host name hostname Slave01 Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: mysql5.7.19 winx64 installation and configuration method graphic tutorial (win10)
>>: Detailed explanation and summary of the URL for database connection
01. Command Overview basename - strip directories...
Table of contents I. Overview 2. Conventional mul...
Enable remote access to MySQL By default, MySQL u...
When insert into employee values(null,'張三'...
This article shares the specific code for WeChat ...
The sudo command allows a trusted user to run a p...
In the forum, netizens often ask, can I read the ...
There are too much knowledge to learn recently, a...
Principle: First hide the input element, then use...
Table of contents 1. Problem 2. Solution 2.1 Pagi...
This article describes how to install the PHP cur...
Table of contents background Importing virtual fi...
In the MySQL documentation, MySQL variables can b...
Overview Volume is the abstraction and virtualiza...
What to do if you forget Windows Server 2008R2 So...