sudo hostnamectl set-hostname -static Step 2: Add EPEL repository to CentOS 7/6 SystemĪdd epel repository to your system using yum command as below: sudo yum -y install epel-release wget To temporarily set the hostname for the current shell session, use: sudo hostname Set server hostname on CentOS 7:įor CentOS 7 server, you can easily set server hostname using a hostnamectl command. Then confirm current hostname setting: $ hostname Restart network service once you make the changes. Set server hostname on CentOS 6: $ sudo vi /etc/sysconfig/network You can start by configuring the hostname for your server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |