hostnamectl

To set hostname for your server in CentOS 7, run

hostnamectl set-hostname YOUR_HOST_NAME

Comments

Leave a Reply

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