运维百宝箱 V1.0

  |   0 评论   |   0 浏览

1.安装最新版 docker

1curl -fsSL https://get.docker.com/ | sh &&  systemctl restart docker &&  systemctl enable docker

2.解决 buffer/cache 内存占用过高

1echo 1 > /proc/sys/vm/drop_caches

3.内核调优

1cat >> /etc/sysctl.conf<<EOF
2net.ipv4.ip_forward=1
3net.bridge.bridge-nf-call-iptables=1
4net.ipv4.neigh.default.gc_thresh1=4096
5net.ipv4.neigh.default.gc_thresh2=6144
6net.ipv4.neigh.default.gc_thresh3=8192
7EOF
8
9sysctl –p

  这边如果出现 bridge-nf-call-ip6tables 出现 No such file or directory

  执行

1modprobe br_netfilter

  未完待续,平时遇到的一些问题的解决方法

---------------------------------------------------------------
>> 博客地址:https://blog.mufengs.com
>> 邮箱地址:[email protected]
>> 微信帐号:Do8080
>> Github : https://github.com/mufengcoding
---------------------------------------------------------------