查看linux 的IP

查看linux server的/etc/hosts 文件

 

例如:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1        localhost.localdomain localhost
::1        localhost6.localdomain6 localhost6
192.168.1.114        mylinuxserver

 

其中192.168.1.114为linux server的IP地址

你可能感兴趣的:(linux)