Valid_referers nginx防止盗链

Posted by 夏泽民

Valid_referers 设置信任网站



Shadowing

Posted by 夏泽民

go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest



MySQL设置事务自动提交

Posted by 夏泽民

MySQL 默认开启事务自动提交模式,即除非显式的开启事务(BEGIN 或 START TRANSACTION),否则每条 SOL 语句都会被当做一个单独的事务自动执行。但有些情况下,我们需要关闭事务自动提交来保证数据的一致性。下面主要介绍如何设置事务自动提交模式。



共享锁(S)、排他锁(X)、意向共享锁(IS)、意向排他锁(IX)的关系

Posted by 夏泽民

S锁:共享锁 加了S锁的记录,允许其他事务再加S锁,不允许其他事务再加X锁 select…lock in share mode X锁:排他锁 加了X锁的记录,不允许其他事务再加S锁或者X锁 select…for update



librdkafka

Posted by 夏泽民

https://github.com/edenhill/librdkafka/



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at 465474307@qq.com

Subscribe to our mailing list

* indicates required