Shell功能
脚本获取域名的IP地址
自动检测公网IP地址并更新到公云PubYun
获取公网IP地址的多种方式
脚本匹配ip地址正则表达式
CentOS 7.x系统三级等保规范脚本
Linux主机巡检脚本
增加CPU使用率到指定范围
CentOS和Ubuntu的Shell兼容点
主机之间ping命令检测
Shell数值计算的几种方法
本文档使用 MrDoc 发布
-
+
home page
获取公网IP地址的多种方式
## 可通过命令行获取直接返回结果 `curl -s ip.dnsexit.com` `curl -s myip.dnsomatic.com` `curl -s ip1.dynupdate.no-ip.com` `curl -s ipv4.wtfismyip.com/text` `curl -s ipv4.nsupdate.info/myip` `curl -s members.3322.org/dyndns/getip` `curl -s ip.3322.net` `curl ip.sb` `curl ifconfig.me` `curl curlmyip.com` ## 命令行获取IPv6地址 `curl -6 -s https://www.cloudflare.com/cdn-cgi/trace | awk -F= '/ip/{print $2}'` ## 可通过web端返回结果 https://checkip.dns.he.net/ http://checkip.two-dns.de/ https://ip.changeip.com/
Nathan
Jan. 17, 2022, 2:18 p.m.
转发文档
Collection documents
Last
Next
手机扫码
Copy link
手机扫一扫转发分享
Copy link
本站将从https://wiki.netimed.cn
转移到
https://www.netimed.cn
,悉知!
联系邮箱:service@netimed.cn
Markdown文件
PDF文件
Docx文件
share
link
type
password
Update password