10 2023 档案
摘要:原因很可能是user-uid.slice中有限制内存,参考:systemd中的slice服务单元。
阅读全文
摘要:使用场景 对一组服务进行管理,比如限制资源使用、调整启动顺序和依赖关系。 比如,好几个服务都需要限制内存使用,可以每个服务都加个MemoryLimit=373741824,也可以将这些服务加入到同一个slice,然后,只需要在slice中配置MemoryLimit=373741824。 介绍 sys
阅读全文
摘要:参考:README 安装 下载链接:https://gitee.com/oschina/git-repo-clean/releases/ 解压后,即可看到二进制程序:git-repo-clean,复制到需要清理的仓库中。 使用 查看大文件 ./git-repo-clean --verbose --s
阅读全文
摘要:# 清理前查看 git log git rev-list --objects --all # 创建新分支,保留文件 git checkout --orphan new git add . git commit -m "new" # 删除原来 master 分支 git branch -D maste
阅读全文
摘要:简介 Fail2Ban 是一个针对恶意行为进行自动防御的开源软件。它监视日志文件中的恶意行为,并采取相应的措施。 安装 yum install fail2ban -y 启动 systemctl start fail2ban systemctl enable fail2ban 配置 vi /etc/f
阅读全文
摘要:Install centos yum install epel-release -y && yum install ansible -y && ansible --verson Inventory example: [kvm] 192.168.0.51 ansible_port=2222 192.1
阅读全文

浙公网安备 33010602011771号