日常用到的小工具(陆续增加中...)
添加虚拟内存
curl -L https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o addswap.sh && chmod +x addswap.sh && bash addswap.sh
禁止ping
在/etc/sysctl.conf 增加下面两行
net.ipv4.icmp_echo_ignore_all=1
net.ipv6.icmp.echo_ignore_all=1
让其生效
sysctl -p
暂无标签