摘要:
查看是否4k对齐 Win+R,打开运行窗口,在窗口中输入“msinfo32",组件”--“存储”--“磁盘”。然后可以在右边栏看到“分区起始偏移”,我们图例中有2个数值,分别是:32256字节、80681771520字节。我们用这2个数值分别除以4096,如果得出来的结果为整数,那么就表示已经对齐, 阅读全文
摘要:
摘要自:https://github.com/openresty/lua-nginx-module/#data-sharing-within-an-nginx-worker 每nginx worker的数据共享 定义一个lua模块,在content_by_lua或者content_by_lua_bl 阅读全文
摘要:
tools ->build system->new build system... 输入: { "cmd": ["C:\\lua\\lua53.exe","$file"] } 1. 用 killall命令,加进程名重启 [root@localhost objects]# killall -HUP n 阅读全文
摘要:
记得清理/etc/nginx/sites-enabled/default 阅读全文
摘要:
Sub Test() Dim r As Range Dim a As Integer a = 0 For Each r In Range("b1:b6") If r.Font.Bold "True" Then a = a + r.Value... 阅读全文
摘要:
https://wiki.ewu.edu/oit/Load_balancing_using_nginx 阅读全文
摘要:
想添加nginx的缓存功能, 结果1.4.6还不支持.apt-get remove nginx374 sudo apt-key add nginx_signing.key 375 deb http://nginx.org/packages/ubuntu/ trusty nginx 376 v... 阅读全文
摘要:
Django session 字典,保存到数据库的时候是要先序列化的(session.encode方法), 读取的时候反序列化(session.decode),这样比较安全. 一 settings.py中间件 MIDDLEWARE_CLASSES = ('django.contrib.session 阅读全文
摘要:
linuxapt-get install redis-serverpip install django-redisvim /etc/redis/redis.confmaxmemory 20mbsettings.pyCACHES = { "default": { "BACKEND"... 阅读全文
摘要:
The problem with:apt-get --yes install $somethingis that it will ask for a manual confirmation if the package signature owner's public-key is not in t... 阅读全文