golang 字符串包含
if find := strings.Contains(dp.String(), "/sn… 继续阅读 golang 字符串包含
if find := strings.Contains(dp.String(), "/sn… 继续阅读 golang 字符串包含
server: apt install nfs-kernel-server mkdir -p /nf… 继续阅读 ubuntu use nfs
apt-cache show kubeadm apt install -y kubelet=1.23… 继续阅读 apt安装指定版本
查看行号: iptables -L -n –line-number eg: Chain INPUT… 继续阅读 linux中iptables删除一条具体规则
root@arm:~# ll /usr/bin/dockerd ls: cannot access … 继续阅读 Failed to start LSB: Create lightweight, portable, self-sufficient containers..
systemctl unmask docker.service systemctl unmask d… 继续阅读 Failed to start docker.service: Unit docker.service is masked.
kubectl get pods -n test |grep Evicted | awk ‘{pri… 继续阅读 kubernetes kubectl批量删除Evicted pod
type BaiduHotContent struct { gorm.Model Hot strin… 继续阅读 panic: invalid sql type (slice) for mysql
save 900 1 #900秒内至少1个key变了 save 300 10 #300秒内至少10个… 继续阅读 redis 快照 条件
ping=`ping -c 10 -W 1 www.baidu.com` rtt=`echo &qu… 继续阅读 shell if [ “x{val}” == “x” ]
echo "#ssh timeout" >> /etc/profil… 继续阅读 Linux设置ssh超时时间
docker history 镜像id docker history –format {{.Cre… 继续阅读 获取镜像的dockerfile
free -m sync echo 3 > /proc/sys/vm/drop_caches … 继续阅读 linux下清理系统cache并释放内存
netstat -tan | awk '/^tcp/ {++state[$NF]} END… 继续阅读 查看 http 的并发请求数与其TCP连接状态
#遍历寻找0字节的文件,并删除。 find /home -type f -size 0 -exec … 继续阅读 linux释放inode
yum install -y sysstat
chmod u+s /usr/bin/cat #以属主的身份运行程序 root用户执行后 切换普通用… 继续阅读 chmod suid,sgid,stick bit
mount.cifs //192.168.2.10/server /mnt/server -o us… 继续阅读 linux挂载windows smb共享
cat /dev/urandom | head -1 | md5sum | head -c 32
netstat -n | awk '/^tcp/ {print $5}' | a… 继续阅读 查看Linux系统每个ip的连接数