如何查看服务器的公网IP

打开终端执行
dig +short myip.opendns.com @resolver1.opendns.com curl ident.me

如果提示没有dig命令,安装
yum install bind-utils

猜你喜欢

转载自blog.csdn.net/zhongliangtang/article/details/81299740
今日推荐