Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ CentOS 7 Change Hostname     - Ubuntu 14.04 Enable root and disable the guest (Linux)

- Hazelcast integration with MongoDB (Database)

- Android 5.1 OTA package compilation error (Programming)

- Everyone should know something about TCP (Linux)

- Minimum period string problem (Programming)

- Linux disk management practices (Linux)

- 14 useful example Linux Sort command (Linux)

- Memcached source installation and configuration under CentOS 6.6 (Server)

- Android use canvas board painting (Programming)

- FastDFS installation and deployment (Server)

- Replace element and non-replaced elements of learning (Programming)

- 20 open source / commercial Linux server management control panel (Server)

- Linux operating system security settings initial understanding (Linux)

- Ubuntu install Wireshark (Linux)

- On FreeBSD 10.2 Bugzilla how to install and configure Apache SSL (Server)

- ORA-00911 invalid character error Solution (Database)

- How dependent on Fedora, CentOS, RHEL check RPM packages (Linux)

- There are more than one server, there is reason to try cloud operating system (Server)

- Xshell configure SSH free password (Server)

- About Linux iptables firewall interview questions and answers (Linux)

 
         
  CentOS 7 Change Hostname
     
  Add Date : 2018-11-21      
         
         
         
  After the upgrade system to CentOS 7 VPS on, I try to modify / etc / sysconfig / network to modify the hostname, but to no avail. Modify Hostname method CentOS 7 and previous versions, I hope this can help you to modify the Hostname CentOS 7 / RHEL 7.

Use hostnamectl to modify Hostname:

Check the current Hostname

[Root @ abctest ~] # hostnamectl status
  Static hostname: abctest.guest
        Icon name: computer-vm
          Chassis: vm
        Machine ID: 19a12d5f5d824794a19caf165a9b3bca
          Boot ID: 21c75ffe0718431d800fd8159be13d99
    Virtualization: kvm
  Operating System: CentOS Linux 7 (Core)
      CPE OS Name: cpe: / o: centos: centos: 7
            Kernel: Linux 3.10.0-123.20.1.el7.x86_64
      Architecture: x86_64

Setting up a new Hostname

[Root @ abctest~] # hostnamectl set-hostname mysql.jzbk.org

Check the current Hostname

[Root @ abctest~] # hostnamectl status
  Static hostname: mysql.jzbk.org
        Icon name: computer-vm
          Chassis: vm
        Machine ID: 19a12d5f5d824794a19caf165a9b3bca
          Boot ID: 21c75ffe0718431d800fd8159be13d99
    Virtualization: kvm
  Operating System: CentOS Linux 7 (Core)
      CPE OS Name: cpe: / o: centos: centos: 7
            Kernel: Linux 3.10.0-123.20.1.el7.x86_64
      Architecture: x86_64
     
         
         
         
  More:      
 
- ASM learning overview (Database)
- tcpdump Linux system security tools (Linux)
- Linux character device - a simple character device model (Linux)
- Configuring xdebug debugging environment in Ubuntu 14.04 under the PhpStorm (Linux)
- Three kinds of binary tree traversal recursive and iterative solution (Programming)
- To generate a certificate using OpenSSL under Linux (Server)
- Troubleshooting Linux virtual machine device id and the letter of inconsistencies (Linux)
- CentOS 6 adds disk quota limit (Linux)
- Linux terminal interface font color settings (Linux)
- Ubuntu Froxlor Server Administration panel installation (Server)
- Linux Powerful command Awk Introduction (Linux)
- Detailed steps - GAMIT solver (Linux)
- Let your PHP 7 faster (GCC PGO) (Linux)
- Use Oracle Data Guard to complete cross-platform database migration cases (Database)
- CentOS 6.5 can not connect to the network under VMware (Linux)
- How to Debian Linux the default Python version switch to alternative version (Linux)
- Installation and use the telnet command under CentOS 6.x (Linux)
- Puppet 3.x installed on Debian 7 (Server)
- MongoDB slice simple example (Database)
- The multiplexed signal driving IO (Programming)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.