How to Configure hostname in Oracle Linux 7
(Doc ID 2049221.1)
Last updated on MAY 19, 2020
Applies to:
Linux OS - Version Oracle Linux 7.0 and laterOracle Cloud Infrastructure - Version N/A 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 |