上一页 1 2 3 4 5 6 7 ··· 16 下一页

linux ps pstree

摘要: 查看进程的启动时间 ps -A -opid,stime,etime,args 查看当前用户程序实际内存占用,并排序 ps -u $USER -o pid,rss,cmd --sort -rss 统计程序的内存耗用 ps -eo fname,rss|awk '{arr[$1]+=$2} END {fo 阅读全文
posted @ 2023-10-23 16:14 Colin88 阅读(30) 评论(0) 推荐(0)

ubuntu命令技巧

摘要: 参考 https://wiki.ubuntu.org.cn/UbuntuSkills apt、apt-get区别 apt是一个命令行工具,但它旨在交互使用,而不是从非交互式脚本。apt-get命令应该在脚本中使用(可能与--quiet一起使用标志)。对于基本命令,这两个工具的语法是相同的。 tldr 阅读全文
posted @ 2023-10-20 11:47 Colin88 阅读(14) 评论(0) 推荐(0)

数据恢复和硬盘密码清除

摘要: 官方文档 https://www.cgsecurity.org/wiki/TestDisk_CNhttps://archive.kernel.org/oldwiki/ata.wiki.kernel.org/index.php/ATA_Secure_Erase.html 1.数据恢复-TestDisk 阅读全文
posted @ 2023-10-13 11:18 Colin88 阅读(168) 评论(0) 推荐(0)

磁盘读写测试

摘要: 在Linux环境中,了解存储/磁盘I/O性能对于评估系统性能和优化存储子系统非常重要。通过测试存储/磁盘I/O性能,我们可以确定磁盘的读写速度、延迟和吞吐量等指标。本文将介绍几种常用的方法来 方法一:使用dd命令 dd命令是一个用于复制文件和数据的常用工具,也可以用于测试存储/磁盘I/O性能dd,命 阅读全文
posted @ 2023-10-08 17:03 Colin88 阅读(333) 评论(0) 推荐(0)

docker热重启

摘要: #重启docker,但是容器不会重启 #添加参数 vim /etc/docker/daemon.json{ "live-restore": true}systemctl reload dockersystemctl restart docker 阅读全文
posted @ 2023-07-26 10:03 Colin88 阅读(53) 评论(0) 推荐(0)

如何重置/重新启动PCIe设备

摘要: 方法一 # 查看PCI设备ID lspci -vvvt #1.首先移除pcie设备 echo "1" > /sys/bus/pci/devices/AAAA:BB:CC.D/remove 其中AAAA:BB:CC.D为bus-info, 意思分别为Domain:Bus:Device.Function 阅读全文
posted @ 2023-07-18 09:03 Colin88 阅读(2331) 评论(0) 推荐(0)

linux dmesg

摘要: 简介 dmesg is used to examine or control the kernel ring buffer. The default action is to display all messages from the kernel ring buffer. Linux内核启动时会加 阅读全文
posted @ 2023-06-25 09:37 Colin88 阅读(192) 评论(0) 推荐(0)

Ubuntu18.04安装Kubernetes 1.24

摘要: k8s 版本:v1.24 机器清单: 系统 规格 角色 ubuntu-18.04.6 4核4G磁盘80G Master ubuntu-18.04.6 4核4G磁盘80G Node 没有这么高配置 2核2G也行。 系统镜像地址: 两个版本都行。 ubuntu-18.04.6-desktop 版本 ht 阅读全文
posted @ 2023-03-18 16:24 Colin88 阅读(429) 评论(0) 推荐(0)

加密与解密

摘要: 1.加密 echo 'Password123' | openssl aes-128-cbc -k 123456 -base64 #123456是密钥 2.解密 echo 'U2FsdGVkX1+xC7Qe29Gag6Oa4OzNFcyEtm4vQS8mArE=' | openssl aes-128- 阅读全文
posted @ 2023-03-07 15:51 Colin88 阅读(54) 评论(0) 推荐(0)

ubuntu配置静态IP

摘要: Ubuntu Server17.10 开始,弃用 /etc/network/interfaces 配置文件,改成 netplan ⽅式,配置⽂件是:/etc/netplan/01-netcfg.yaml 1.配置参考 vim /etc/netplan/01-netcfg.yaml # This fi 阅读全文
posted @ 2023-03-06 15:10 Colin88 阅读(590) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 16 下一页