Re: hostname on centos 7.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

Try below command then report.

# hostnamectl set-hostname client.itzgeek.com

If you use this command, you do not require to notify the change in host
name. Close the current session and re launch the terminal.

OR

Directly edit /etc/hostname file and reboot.

# cat /etc/hostname
server.example.com

--Regards
Ashishkumar S. Yadav

On Tue, Apr 21, 2015 at 6:13 PM, Jerry Geis <geisj@xxxxxxxxxxxxxxx> wrote:

> I have a file /etc/sysconfig/network and in the file is
>
> cat  /etc/sysconfig/network
> # Created by anaconda
> HOSTNAME=zotac_c7.msgnet.com
> [root@localhost ~]#
>
> I rebooted and the prompt is still localhost ?
>
> What is the new thing in CentOS 7 to set the host name
> such that then the prompt is correct also?
>
> Thanks
>
> Jerry
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux