How do I change the hostname permanently in RHEL 7?

How do I change the hostname permanently in RHEL 7?
Answer
You can set the hostname of RHEL using the hostnamectl command.
  1. Step1: View the current hostname hostnamectl status.
  2. step2: Set the hostname using the following commands. …
  3. Step 3: Now you can check the changed hostnames using the following command. …
  4. Step1: You can view the current hostname using the following command.
 

Tìm kiếm

Back
Top