My Oracle Support Banner

How to Configure hostname in Oracle Linux 7 (Doc ID 2049221.1)

Last updated on AUGUST 04, 2018

Applies to:

Linux OS - Version Oracle Linux 7.0 and later
Linux x86
Linux x86-64

Goal

This document describes how to edit hostname in Oracle Linux 7.

Note: manually append "HOSTNAME=xxxxx" into file /etc/sysconfig/network and restart system will not work on Oracle Linux 7.

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 
1. Use hostnamectl which is a command-line client to systemd-hostnamed service
 2. nmcli
 3. Edit /etc/hostname

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.