Updates:

Similar topics mod installed, currently shown at the end of a topic

How to change hostname manually in Oracle Linux 7?

Started by LuisaWalker, December 12, 2019, 12:40:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LuisaWalker

Manually append "HOSTNAME=dbametrix.com" into file /etc/sysconfig/network and restart system does not work on Oracle Linux 7. Could anybody guide me how to change hostname manually in Oracle Linux 7?

Mark Greaves (PCNetSpec)

#1
what's the contents of
gedit /etc/hostname
and
gedit /etc/hosts




See here:
https://docs.oracle.com/en/operating-systems/oracle-linux/8/obe-hostname-cli/index.html
for how to use hostnamectl set-hostname to change the hostname.

or here:
https://linuxforums.org.uk/index.php?topic=3832.msg27792#msg27792
for how to edit /etc/hostname manually.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk