2020-03-04 更改HOSTNAME

Ubuntu

  • 12.04 LTS
    Distributor ID: Ubuntu
    Description: Ubuntu 12.04.5 LTS
    Release: 12.04
    Codename: precis
vi /etc/hostname
vi /etc/hosts

RHEL

  • 6.5
    LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
    Distributor ID: RedHatEnterpriseServer
    Description: Red Hat Enterprise Linux Server release 6.5 (Santiago)
    Release: 6.5
    Codename: Santiago
vi /etc/hosts
vi /etc/sysconfig/network

Elementary OS

No LSB modules are available.
Distributor ID: elementary
Description: elementary OS 5.1.2 Hera
Release: 5.1.2
Codename: hera

vi /etc/hostname
vi /etc/hosts

你可能感兴趣的:(2020-03-04 更改HOSTNAME)