Easter79 Easter79
3年前
springboot系列之dubbo
springboot系列之dubbo(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Failijie.top%2Fadmin%2Findex.html%23%2Fposts%2Fwrite%3FpostId%3D49)
Wesley13 Wesley13
3年前
PHP中利用文件锁实现日志写入和网站接口访问等常见场景下的并发控制
//并发下日志写入方案$fpfopen('./log/test_log.txt','a');if(flock($fp,LOCK_EX)){fwrite($fp,'1\n');flock($fp,LOCK_UN);}fclose($f