Dashatou Third Road 2022-01-26 12:47:32 阅读数:76
In the use of Linux Operating system process , If we want to change the host name , You can operate with the following commands
[[email protected] ~]# hostname
ecs-5332
[[email protected] ~]# hostnamectl set-hostname **myhost**
[[email protected] ~]# hostname
myhost
[[email protected] ~]#
4. At this time, we can see that the host name displayed on the terminal is still the original
If you don't want to re-enter the terminal 、 restart 、 How to switch users , You can use the following method
Input... At the terminal 【bash】 command , Immediate effect
[[email protected] ~]# bash
[[email protected] ~]#
The operation process is attached :
copyright:author[Dashatou Third Road],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/01/202201261247310401.html