以ubuntu为例
一、查看ubuntu的ip地址
1、下载net-tools
localhost@ubuntu-server:~$ sudo apt install net-tools
2、查看ip地址
localhost@ubuntu-server:~$ ifconfig
ubuntu需要下载net-tools才能使用ifconfig
localhost@ubuntu-server:~$ sudo apt install net-tools
以ubuntu为例
localhost@ubuntu-server:~$ sudo apt install net-tools
localhost@ubuntu-server:~$ ifconfig
localhost@ubuntu-server:~$ sudo apt install net-tools