查看Linux公网IP结合第三方网站辅助一下即可,直接curl一下http://ifconfig.me或者http://cip.cc即可 命令:curl ifconfig.me 命令:curl cip.cc
命令:ifconfig -a