linux system centos6 permanent hostname change


Usually the hostname displayed by the system we installed is hard to read, and it is more comfortable to change it to your preferred operation. Today it's about temporary and permanent hostname changes under centos6 system under linux.

Temporary modifications

Introducing first Temporary modifications command hostname, Let's say we want to change the hostname toadmin

Typing "hostname admin" worked, but it didn't change, exiting xshell and reconnecting again found it had been fixed

Permanent modification

This requires modifying the files in the system

vi /etc/sysconfig/network

Just change the hostname value to the desired one


Recommended>>
1、Difference between Python2 and Python3
2、Linux Firewall with command line FirewallD basic operation
3、Configuring NFS services for ubuntu 12 under VMware virtual machine
4、Top 10 Must Master Machine Learning Algorithms Do You Know Them All
5、Machine Learning in SAPCloudforCustomer

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号