共 12 篇文章
显示摘要每页显示  条
kafka入门:简介、使用场景、设计原理、主要配置及集群搭建问题导读:1.zookeeper在kafka的作用是什么?
本文总结了nginx日志相关的配置如access_log、log_format、open_log_file_cache、log_not_found、log_subrequest、rewrite_log、error_log。不记录日志:access_log off;使用默认combined格式记录日志:access_log logs/access.log 或 access_log logs/access.log combined;2. log_format指令。语法: log_subrequest on | off;默认值: log_subr...
nginx优化之request_time和upstream_response_time的差别笔者在根据nginx的accesslog中$request_time进行程序优化时,发现有个接口,直接返回数据,平均的$request_time也比较大。从上面的描述可以看出,$request_time肯定比$upstream_response_time值大,特别是使用POST方式传递参数时,因为Nginx会把request body缓存住,接受完毕后才会把数...
mongodb .explain(''executionStats'') 查询性能分析(转)mongodb性能分析方法:explain()queryPlanner.winningPlan.stage:最优执行计划的stage,这里返回是FETCH,可以理解为通过返回的index位置去检索具体的文档(stage有数个模式,将在后文中进行详解)。queryPlanner.winningPlan.indexBounds:winningplan所扫描的索引范围,...
#关闭Profilingdrug:PRIMARY> db.setProfilingLevel(0){ "was" : 0, "slowms" : 200, "ok" : 1 }#删除system.profile集合drug:PRIMARY> db.system.profile.drop()true#创建一个新的system.profile集合drug:PRIMARY> db.createCollection( "system.profile", { capped: true, size:4000000 } ...
mongodb 数据库操作。[root@localhost mongodb]# mongorestore -d tank /home/zhangy/mongodb/tank/ #tank这个数据库的备份路径 [root@localhost mongodb]# mongorestore -d tank_new /home/zhangy/mongodb/tank/ #将tank还有tank_new数据库中。[root@localhost mongodb]# mongoexport -d tank -c users -o /home/zhangy/mongodb/tank/user...
#yum -y remove mongo-10gen-server.MongoDB said:Failed to connect to: 127.0.0.1:27017: 由于目标计算机积极拒绝,无法连接查看MongoDB故障old lock file,terminating的解决 查看mongo日志文件得到祥细错误exception in initAndListen: 12596 old lock file, terminating引发原因:
Nginx配置upstream实现负载均衡。upstream linuxidc{ server 10.0.0.77 weight=5;ip_hash(访问ip)注意:在upstream中加入hash语句,server语句中不能写入weight等其他的参数,hash_method是使用的hash算法。upstream bakend{ #定义负载均衡设备的Ip及设备状态 ip_hash; server 10.0.0.11:9090 down; server 10.0.0.11:8080 w...
FastDFS./usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf/usr/bin/fdfs_storaged /etc/fdfs/storage.conf.00:00:00 /usr/bin/fdfs_trackerd /etc/fdfs/tracker.confroot 8046 1 0 15:36 ?example file url: http://192.168.29.132/group1/M00/00/00/wKgdhFTV0ZmAP3AZAPk-Io7D4w8580.jpgstorage_upload_slave_by_filenamegroup_name...
很多情况下rewrite也会写在location里,它们的执行顺序是:执行server块的rewrite指令执行location匹配执行选定的location中的rewrite指令。这里 last 和 break 区别有点难以理解:last一般写在server和if中,而break一般使用在location中last不终止重写后的url匹配,即新的url会再从server走一遍匹配流程,而break终止重写后的匹配break和last...
帮助 | 留言交流 | 联系我们 | 服务条款 | 下载网文摘手 | 下载手机客户端
北京六智信息技术股份有限公司 Copyright© 2005-2024 360doc.com , All Rights Reserved
京ICP证090625号 京ICP备05038915号 京网文[2016]6433-853号 京公网安备11010502030377号
返回
顶部