11.2. hosts

简介:
		
# cat -n /etc/hosts
     1  # Do not remove the following line, or various programs
     2  # that require network functionality will fail.
     3  127.0.0.1               development.domain.org development localhost.localdomain localhost
     4  ::1             localhost6.localdomain6 localhost6

		
		

11.2.1. hostnamectl - Control the system hostname

[root@localhost ~]# hostnamectl
   Static hostname: localhost.localdomain
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: 072e88a0fdd2447296554f3cd5129076
           Boot ID: a978056f50544355abd723b328a89b6f
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-229.el7.x86_64
      Architecture: x86_64
			

Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a>comments powered by Disqus





原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
12天前
|
网络协议 Linux iOS开发
Hosts文件详解
Hosts文件详解
|
9月前
|
域名解析 网络协议 Windows
hosts 和 dns
hosts 和 dns
35 2
|
Linux 网络安全 网络协议
|
C# C++ Windows
C++/c#修改hosts文件
  c++ #include #include #include  #include  using namespace std; int main() { ofstream outf; char * lpFileName="C...
2489 0
|
Linux 网络协议
|
开发工具
|
网络协议 Linux 网络安全