Linux 终端获取本机公网 IP 的方法

Linux 终端获取本机公网 IP 的方法 下方任意命令均可: $ wget -qO- https://ipecho.net/plain ; echo $ curl https://ipecho.net/plain $ curl https://ipecho.net/plain ; echo $ curl https://ipinfo.io/ip $ curl icanhazip.com $ curl -s https://checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//' References Command for determining my public IP?

August 19, 2023 · 1 分钟 · 62 字 · Tianlun Song

ipmitool 基本使用

ipmitool 基本使用 # account ipmitool user list ipmitool user set password 2 password@123 # network # show network ipmitool lan print # set to static and show network ipmitool lan set 1 ipsrc static && ipmitool lan set 1 ipaddr 192.168.24.6 && ipmitool lan set 1 netmask 255.255.252.0 && ipmitool lan set 1 defgw ipaddr 192.168.27.254 && ipmitool lan print

July 17, 2023 · 1 分钟 · 63 字 · Tianlun Song

SSH 密钥类型及格式

SSH 密钥类型及格式 在使用 ssh-keygen 命令生成密钥对时,有这几个参数需要被注意: # 对密钥对的注释,会追加在公钥最后 -C comment Provides a new comment. # 密钥长度,详细请看描述 -b bits...

June 26, 2023 · 3 分钟 · 1468 字 · Tianlun Song

解决 target is busy 的一种方法

解决 target is busy 的一种方法 最近手头一台 PVE 集群的 ceph 地址变化,导致 cephfs 挂载出现问题,当我尝试修正这一错误时,发现无论如何无法重新挂载: $ ls /mnt/pve/cephfs ls: cannot access '/mnt/pve/cephfs': Permission denied...

May 25, 2023 · 2 分钟 · 733 字 · Tianlun Song

Linux 常见主设备号设备清单

Linux 常见主设备号设备清单 在Linux系统中,设备通常通过主设备号和次设备号来标识。主设备号用于区分设备的大类,例如硬盘、字符设备等;次设备号用...

May 18, 2023 · 4 分钟 · 1821 字 · Tianlun Song