1007,1008,1050,1051,1054,1060,1061,1068,1094,1146.
LVM新安装初始化
/dev/vdb 为空白新磁盘
创建pv
pvcreate /dev/vdb
创建vg
vgcreate vg1 /dev/vdb
创建lv
lvcreate -L 100G -n lvMongodb vg1
或者(使用100%的剩余空间)
lvcreate -l 100%Free -n lvMysql vg1
LVM LV热扩容[ext4]
lvextend -L +5G /dev/mapper/vg1-lvMysql
resize2fs /dev/mapper/vg1-lvMysql
当然前提是PV还有PFree可以使用
深入理解SELECT … LOCK IN SHARE MODE和SELECT … FOR UPDATE
pt-duplicate-key-checker 检查重复的索引
pt-duplicate-key-checker --user=root --password=123456 --host=master D=dbname
–user 用户名
–password 密码
–host 数据库地址
D=dbname 检查dbname这数据库
MySQL查询正在运行的事物
SELECT * FROM information_schema.INNODB_TRX
【转】PHP strtotime BUG
$t = 1504145678;
print_r(
array(
date('Y-m-d', $t),
date('Y-m-d', strtotime('- 1 month', $t)),
date('Y-m-d', strtotime('- 2 month', $t))
));



nginx location
| Syntax: | location [ = | ~ | ~* | ^~ ] uri { ... }location @name { ... } |
|---|---|
| Default: | — |
| Context: | server, location |
location匹配命令
~ #波浪线表示执行一个正则匹配,区分大小写
~* #表示执行一个正则匹配,不区分大小写
^~ #^~表示普通字符匹配,如果该选项匹配,只匹配该选项,不匹配别的选项,一般用来匹配目录
= #进行普通字符精确匹配
@ #”@” 定义一个命名的 location,使用在内部定向时,例如 error_page, try_files
location 匹配的优先级(与location在配置文件中的顺序无关)
org.apache.solr.common.SolrException: Exception writing document id 663b167f2d661568 to the index; possible analysis error: cannot change DocValues type from SORTED_SET to NUMERIC for field “is_original”
org.apache.solr.common.SolrException: Exception writing document id 663b167f2d661568 to the index; possible analysis error: cannot change DocValues type from SORTED_SET to NUMERIC for field "is_original"
我这里修改tints类型为tint类型,导致新数据无法写入,字段删除完毕了,也reload了没有,只要清理的数据才行
<delete><query>*:*</query></delete> <commit/>
nginx 413 request entity too large
http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
| Syntax: | client_max_body_size size; |
|---|---|
| Default: |
client_max_body_size 1m;
|
| Context: | http, server, location |
这次不能忘记了啊