02 2025 档案
linux列出所有网卡和网卡速度
摘要:1. vi port-speed.sh 2. 写入以下内容 #!/bin/sh dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range -n lshw -c network -businfo ip a |awk '/state
linux防内存爆满死机
摘要:vim /etc/sysctl.conf 在文件最后加入一行: vm.min_free_kbytes = 2097152 (命令意义:设置最小剩余内存,单位KB,这里设置2G) 使配置文件生效 sysctl -p
linux常用脚本
摘要:换源 bash <(curl -sSL https://linuxmirrors.cn/main.sh) get-docker bash <(curl -sSL https://linuxmirrors.cn/docker.sh) pip换源 pip3 config set global.index
树莓派5配置风扇转速
摘要:nano /boot/firmware/config.txt #添加 dtparam=cooling_fan=on dtparam=fan_temp0=36000,fan_temp0_hyst=2000,fan_temp0_speed=90 dtparam=fan_temp1=40000,fan_t