nginx自带geoip模块 如果你的版本没有,请安装 更新Apt source list $ sudo add-apt-repository ppa:nginx/stable $ sudo apt-get update…
win系统ipv6经常掉线办法
因为win系统默认会分配临时ipv6地址,禁用以后网络就稳定了 通过ipconfig查看,有3个ipv6地址,一个正式,一个临时,一个fe80是内网 开始-〉运行-〉CMD 顺序执行以下命令 netsh int ipv6…
nginx性能优化3
9、expires 缓存调优 缓存,主要针对于图片,css,js等元素更改机会比较少的情况下使用,特别是图片,占用带宽大,我们完全可以设置图片在浏览器本地缓存365d,css,js,html可以缓存个10来天,这样用户第…
nginx性能优化2
7、fastcgi 调优 fastcgi_connect_timeout 600; fastcgi_send_timeout 600; fastcgi_read_timeout 600; fastcgi_buffer_s…
nginx 性能优化1
1、Nginx运行工作进程数量 Nginx运行工作进程个数一般设置CPU的核心或者核心数x2。如果不了解cpu的核数,可以top命令之后按1看出来,也可以查看/proc/cpuinfo文件 grep ^processor…
php jpeg压缩之jpegrescan
开源https://github.com/kud/jpegrescanhttps://github.com/mozilla/mozjpeghttps://github.com/rflynn/imgminhttps://g…
php png压缩之pngquant
pngquant 和在线压缩工具tinypng压缩效率近似 接近无损的有损压缩,可以压缩去掉75% 开源 https://github.com/kornelski/pngquant apt install pngquan…
Ubuntu 18.04快速开启Google BBR的方法
BBR内核要求为4.9 Ubuntu 18.04内核4.15以上符合要求 Ubuntu 19.04官方直接给你开启了BBR 1、修改系统变量 echo "net.core.default_qdisc=fq" >> /et…
QQ微信浏览器视频停止时广告
阻止自动全屏:安卓:x5-playsinline="true"ios:webkit-playsinline="true" playsinline="true"
ubuntu命令查磁盘空间大小
df -hl