Modify hostname under Linux CentOS7 actual measurement

method one

Change the contents of /etc/hostname to your hostname.

Use the following command to specify:

hostname -F /etc/hostname

Then log out and log in again

Method Two

Specify hostname directly:

hostname -b CodeOnTheRoad

Then log out and log in again



Post-95 young programmers, write about personal practice in daily work, from the perspective of beginners, write from 0 to 1, detailed and serious.
The article will be published on the public account [ Getting Started to Give Up Road ], looking forward to your attention.

Thanks for every attention

Guess you like

Origin blog.csdn.net/CatchLight/article/details/115731449
Recommended