Change hostname on Centos 7

-- To Display hostname

Command: hostnamectl status


-- To change the hostname, issue the following command:

command: hostnamectl set-hostname "Your-Hostname"

An Example : hostnamectl set-hostname www.rebelhosting.net
  • 28 کاربر این را مفید یافتند
آیا این پاسخ به شما کمک کرد؟

مقالات مربوطه

how to install "setup" command on centos

HiLogin via SSH as rootand type in follwoing commands   yum -y install setuptoolyum -y...

Centos Download Link

Hiyou can Download Centos From Follwoing Link.http://mirrors.kernel.org/centos/

How to updated Centos 6.x EOL

Login to your server with root and copy and paste the following commands   cd...