Linux如何设置 hostname

来源:互联网 发布:2017网络红歌排行榜 编辑:程序博客网 时间:2024/05/14 08:45

  • RHEL, Oracle and CentOS (versions 6 and lower)
    • Edit the/etc/sysconfig/network file.

                        HOSTNAME=a24p-rhel6-01

 

  • RHEL, Oracle and CentOS (version 7)
    • Edit the/etc/hostname file.

 

  • Debian and Ubuntu (all versions)
    • Edit the/etc/hostname file

 

  • SLES (all versions)
    • Edit the/etc/HOSTNAME file
0 0
原创粉丝点击