Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

73 total results found

Inodes Are Exhausted

Linux Troubleshooting

Errors Tabcannot create temp file for here-document: No space left on device docker exec -it f1ad998136ed /bin/bashfailed to create runc console socket: mkdir /tmp/pty359234715: no space left on device: unknown Solutions rm -rf /tmp/*

operating-system
linux
inode
troubleshooting

Memory Pagesize

Linux Troubleshooting

某些 ARM 机器的内存分页为 64K,会导致 C 语言编写的程序无法运行,因为一般编译的时候宿主机器的分页为 4K,可以使用下面的命令查看。 getconf PAGESIZE macOS 也是 4K

process
memory
pagesize
troubleshooting
linux
operating-system

NAT loopback

Linux Troubleshooting

AWS NLB Troubleshooting Connections time out for requests from a target to its load balancer. Check whether client IP preservation is enabled on your target group. NAT loopback, also known as hairpinning, is not supported when client IP preservation is enabled...

operating-system
linux
nat
loopback
nlb
troubleshooting

NFS Mount Failed

Linux Troubleshooting

背景 香蕉集群的 PV 持载 NFS 192.168.80.50 失败,报错。 Mounting arguments: -t nfs 192.168.80.50:/scan-download-custom-data-pvc /var/lib/kubelet/pods/45c7c6e4-d9de-4c3c-8e6e-41cc1d7ed036/volumes/kubernetes.io~nfs/pvc-minsheng-bank-scan-download-custom-data Output: mount: wro...

troubleshooting
operating-system
linux
nfs
volume

Kernel Parameters

Linux Networking

## 设置本地端口范围为 1024-65000 echo 1024 65000 > /proc/sys/net/ipv4/ip_local_port_range ## 启用 TCP TIME-WAIT 状态的套接字重用 echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse ## 启用 TCP TIME-WAIT 状态的套接字快速回收 echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle ## 设置 TCP FIN 超时时间为 30 秒 echo 3...

operating-system
linux
networking
kernel

Shell Variables

Linux Command Line and Shell Scripting ... Shell

Shell variables are a general term. If you are using a specific shell, such as Bash, you can call it a Bash variable. But it is important to note that shell variables are not environment variables, do not be confused by their capitalization, here are the relev...

linux
lclssb
shell
operating-system

Traffic Stats

Linux Networking

iftop apt-get update apt-get install iftop iftop -i eth1 -P tcpdump BytesMBtcpdump -i eth1 -nn -q -c 5000 | \ awk ' { # 去掉目标端口末尾冒号 gsub(":", "", $5) # 拆分源和目标 split($3, a, "."); split($5, b, ".") src_ip = a[1]"."a[2]"."a[3]"."a[4] ...

linux
tcpdump
iftop

Commands

Linux Networking

ss summary ss -s Total: 1785 TCP: 2635 (estab 1564, closed 1026, orphaned 23, timewait 1013) Transport Total IP IPv6 RAW 0 0 0 UDP 2 1 1 TCP 1609 768 841 INET 1611 769 ...

operating-system
linux
commands
tcp
ss
sysctl
tcpdump

tcpdump

Linux Networking

Specify Port & Flags tcpdump -i lo -nn -s 0 tcp port 9004 and '(tcp[tcpflags] & (tcp-syn|tcp-rst|tcp-ack) != 0)' -i lo:在本地回环接口 (lo) 上抓包,也就是抓取本机进程之间的 TCP 通信。 -nn:不对地址和端口做反向解析(直接显示数字 IP 和端口号)。 -s 0:设置抓取长度为 0,表示抓取整个数据包(默认只抓前 262 字节)。 tcp port 9004:只抓取目标端口 9004...

linux
networking
tcpdump

SSH Tunnel

Linux Networking

本地端口转发 Localhost 访问本地 http://localhost:8080 会转发到 192.168.x.x 的 localhost:8080。 在本机执行ssh -NL 8080:localhost:8080 root@192.168.xx.xx 参数 含义 8080(冒号前) 本地端口,也就是你本机的 8080 端口,会被 SSH 占用并监听 localhost:8080(冒号后) 远程目标地址和端口,SSH 登录的服务器上要访问的服务 数据流示意 你在本机访问 htt...

operating-system
linux
networking
ssh
tunnel
port-forward

Latency

Linux Networking

Time Cost curl -o /dev/null -s -w" time_namelookup: %{time_namelookup}s\n\ time_connect: %{time_connect}s\n\ time_appconnect: %{time_appconnect}s\n\ time_pretransfer: %{time_pretransfer}s\n\ time_starttransfer: %{time_starttransfer}s\n\ ...

operating-system
linux
networking
latency
curl

growpart

Linux Storage

阿里云扩容云盘 扩展硬盘 lsblk -f /dev/sda2 直接是 ext4 文件系统并挂载在根目录 /(非 LVM)。 NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS loop0 squashfs 4.0 0 100% /snap/core20/2599 loo...

linux
storage
growpart

Commands

Linux Storage

iostat apt-get install -y sysstat iostat -x 1 iotop apt-get install iotop iotop -aoP lsblk lsblk lsblk -o NAME,SIZE,TYPE,MOUNTPOINT dmsetup ls lvdisplay cat /etc/fstab

operating-system
linux
storage
commands