Difference between revisions of "CentOS7"
From Leaky
(Created page with '== Change server hostname == [root@localhost ~]# hostnamectl status Static hostname: localhost.localdomain Icon name: computer-vm Chassis: vm Ma…') |
(Added link to upstart info as this is also centos7) |
||
| Line 1: | Line 1: | ||
| + | See also [[Upstart]] | ||
| + | |||
== Change server hostname == | == Change server hostname == | ||
Revision as of 20:24, 24 August 2014
See also Upstart
Change server hostname
[root@localhost ~]# hostnamectl status
Static hostname: localhost.localdomain
Icon name: computer-vm
Chassis: vm
Machine ID: 399b74f54385ee0d782648666a204c25
Boot ID: 411893b81fee4fb0b865e1b18fd8dd6d
Virtualization: kvm
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-123.el7.x86_64
Architecture: x86_64
Set the hostname.
[root@localhost ~]# hostnamectl set-hostname centos7.internal
Check the host name again (Close the session and open new session using putty or console)