ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Linux服务器查看外网IP地址

    May 5, 20223 min read
    Curl 纯文本格式输出:
    curl cip.cc
    curl icanhazip.com
    curl ident.me
    curl ipecho.net/plain
    curl whatismyip.akamai.com
    curl tnx.nl/ip
    curl myip.dnsomatic.com
    curl ifconfig.me
    curl ip.appspot.com
    curl curlmyip.com
    curl www.trackip.net/i
    curl ipinfo.io/ip
    curl -s checkip.dyndns.org | sed 's/.*IP Address: \([0-9\.]*\).*/\1/g'
    

    脚本

    #!/bin/bash
    PUBLIC_IP=`wget http://ipecho.net/plain -O - -q ; echo`
    echo $PUBLIC_IP
    

    相关文章

    redwood.js各层级之间的关系

    Redwood.js中,Page组件通过路由接收参数并调用Cell组件执行CURD操作,Cell组件再通过Success函数返回展示层组件,形成从路由到数据展示的层级关系。

    Flutter 使用分割线 Divider 组件

    Flutter中Divider和VerticalDivider组件需分别用SizedBox和Container包裹并设置适当尺寸以正确显示。

    aapt2 Android Asset Packaging Tool 的使用

    aapt2是Android平台用于构建APK的工具,支持资源文件的编译、打包、压缩和优化,通过一系列命令实现资源管理。

    CentOS 远程主机安装 on my zsh

    在CentOS远程主机上安装并配置Oh My Zsh,通过编辑.zshrc文件和自定义主题来显示主机名。

    Swift 用字符表示两个时间差的 Date extension

    这个 Swift 扩展允许通过 `fromNow` 方法计算并返回一个日期相对于当前时间的完整格式相对时间字符串。