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

69 total results found

TCP Conn Test

Linux Tricks

code-praefect-86dc6b4f4f-ns6dj:~/code/code-gitaly# nc -zv code-gitaly-0-0 9999 code-gitaly-0-0 (10.1.244.170:9999) open nc -zv code-gitaly-0-0 9999 用的是 nc(即 netcat)命令,常用于端口探测或测试连接,参数含义如下: z:只扫描端口,不发送数据("zero-I/O mode")。 v:verbose,显示详细输出。 code-gitaly-0-0:目标主...

tcp
operating-system
linux
tricks
nc

TCP/IP Pseudo Files in Bash

Linux Tricks

TCP/IP pseudo-files are a special feature in Bash that allow you to open network connections using file-like syntax. They're not real files in the /dev directory — rather, Bash internally interprets paths like /dev/tcp/host/port and /dev/udp/host/port to creat...

operating-system
linux
networking
tcp
pseudo
tricks

VIM

Linux Tricks

Paste Mode :set paste Space Tab set tabstop=4 " 设置 tab 键为 4 个空格 set shiftwidth=4 " 设置自动缩进的空格数 set expandtab " 将 tab 转换为空格 Kubectl Editor export EDITOR=/usr/bin/vim

vim
operating-system
linux

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

operating-system
linux
process
memory
pagesize
troubleshooting

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...

operating-system
linux
nfs
volume
troubleshooting

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