Untitled Post - 186
docker官方仓库里有瘦身精简版的debian镜像叫做slim,当前稳定版为debian:stretch-slim,也可以使用stable-slim,testing-slim,unstable-slim,jessie-slim等标签,debian:stretch-slim大小大约为55.3MB,虽然还是比alpine大了不少,不过已经算很轻量了。
docker官方仓库里有瘦身精简版的debian镜像叫做slim,当前稳定版为debian:stretch-slim,也可以使用stable-slim,testing-slim,unstable-slim,jessie-slim等标签,debian:stretch-slim大小大约为55.3MB,虽然还是比alpine大了不少,不过已经算很轻量了。
内核要求4.9及以上。
修改内核配置文件:
1 | # cat >> /etc/sysctl.conf << EOF |
或sudo vim /etc/sysctl.d/10-custom-kernel-bbr.conf添加以上两行
使配置生效:
1 | # sysctl -p |
sysctl -p不指定文件默认加载/etc/sysctl.conf
或
1 | $sudo sysctl --system |
会加载所有的系统级配置文件
确认是否生效:
1 | # sysctl net.core.default_qdisc |
References:
[1]Debian / Ubuntu 更新内核并开启 TCP BBR 拥塞控制算法
[2]Linux 升级内核开启 TCP BBR 有多大好处
当前稳定发行版的nodejs有很多安全性问题,可以从nodesource安装当前的6.X TLS版本
1 | $ curl -sL https://deb.nodesource.com/setup_6.x sudo -E bash - |
有时可能会从源包构建组件,所以可以先安装build环境:
1 | $ sudo apt-get install -y build-essential libssl-dev |
References:
[1]Installation instructions
===
[erq]
编译QCAD需要gcc 4,而当前debian系统的gcc版本为6.3.0,因此需要编译gcc 4。
alter database datafile ‘/path/to/datafile’ autoextend on;
alter database datafile ‘/path/to/datafile’ resize 100KMG;
uBlock Origin - the next generation opensource blocker, it is a wide-spectrum blocker, not just for ad block.
Mozilla推出免费的网站安全测试服务observatory, https://github.com/mozilla/http-observatory and https://observatory.mozilla.org/
References:
[1]offsetLeft,Left,clientLeft详解
[2]深入理解定位父级offsetParent及偏移大小
[3]深入理解可视区尺寸client
[4]深入理解滚动scroll
[5]Cross-browser mouse positioning
===
[erq]