Set hostname in CentOS 7

Hostname is a sub domain. To set hosting, edit file

Add

Example

Now run

Example

Run

Edit file

Edit or add HOSTNAME entry

Reboot the server with

You can verify hostname with command

Related Posts

Change Server Hostname in VestaCP
Set Permanant hostname on AWS EC2 CentOS 7 server
Install SSL for Cpanel Server Hostname

Add a Comment

Your email address will not be published. Required fields are marked *