How to change Hostname in CentOS

This artcle describe the way to change hostname of CentOS vertual server. 

Step1. Open /etc/sysconfig/network from your favorite text editor. In this example we are using "nano" Text editor.

# nano /etc/sysconfig/network


Step2. Change HOSTNAME=server.yournewhosname.com

Eg:  HOSTNAME=verygoodhn

STEP3: Run the following command
#hostname
  • 0 Korisnici koji smatraju članak korisnim
Je li Vam ovaj odgovor pomogao?

Vezani članci

How To Log Into your Linux VPS with PuTTY from Windows Computer/Laptop

After purchased a VPS (Virtual Private Server) you are probably seek to log in to your VPS. Let...

How to install Webuzo web based control panel in my VPS

Overview Softaculous Webuzo is a single user control Panel which you can use to install 100s of...

Install VNC server and Centos desktop gui - openvz vps through ssh

How to Install VNC server and Linux Desktop GUI on CentOS6 openvz vpsVNC protocall is used to...

How to install VestaCP free control panel on y our VPS

The Vesta Control Panel is a free, open source website control panel with website, email,...