查看Linux的IP地址
方法1: ip 命令
ip addr show
方法2:hostname(推荐)
hostname -I
方法3:ifconfig命令(不推荐)
首先,要使用此命令,您需要安装net-tools:. . .
查看Linux的IP地址
方法1: ip 命令
ip addr show
方法2:hostname(推荐)
hostname -I
方法3:ifconfig命令(不推荐)
首先,要使用此命令,您需要安装net-tools:. . .