zuul.host.maxTotalConnections: 200 最大连接数 zuul.host.maxPerRouteConnections: 10 单连接数zuul.semaphore.max-semaphores: 128 最大信号量zuul.eureka.[service id].sem ...
分类:
其他好文 时间:
2017-06-14 18:17:55
阅读次数:
266
1. Overview This tutorial will show how to configure a timeout with the Apache HttpClient 4. If you want to dig deeper and learn other cool things you ...
分类:
Web程序 时间:
2017-06-14 18:09:46
阅读次数:
394
已经使用梯子,安装某依赖时仍然超时。 首先检查pip的版本是否需要更新,如果不是最新版本运行命令更新: 如果仍然超时错误,则运行一下命令: 再次安装,即可成功。 ...
分类:
其他好文 时间:
2017-06-14 13:15:29
阅读次数:
123
1 import requests 2 from bs4 import BeautifulSoup 3 import bs4 4 5 #爬取定向网页的内容 6 def getHTMLText(url): 7 try: 8 r = requests.get(url, timeout = 30) 9 r... ...
分类:
Web程序 时间:
2017-06-13 12:52:31
阅读次数:
177
在mysql innodb中使用事务,如果插入或者更新出错,一定要主动显式地执行rollback,否则可能产生不必要的锁而锁住其他的操作 我们在使用数据库的时候,可以使用contextlib,这样异常的时候自动回滚,而且最后都会执行关闭操作 http://www.liaoxuefeng.com/wi ...
分类:
数据库 时间:
2017-06-13 12:44:28
阅读次数:
517
web缓存服务器varnish-4.1.6的部署及配置详解 1.安装varnish4.1.6安装依赖 安装varnish yum仓库 2.设置Varnish参数 定义VCL backend 启动varnish# systemctl start varnish# systemctl enable va ...
分类:
Web程序 时间:
2017-06-12 19:41:25
阅读次数:
1075
#!/usr/bin/envpython
importtime
importpexpect
importsys
defh3c_ssh(ip,username,password1,password2,type):
try:
ssh=pexpect.spawn(‘ssh%s@%s‘%(username,ip))
i=ssh.expect([‘password:‘,‘Areyousureyouwanttocontinueconnecting(yes/no)?‘],timeout=5)
time.sleep(1..
分类:
编程语言 时间:
2017-06-12 14:40:10
阅读次数:
347
在 ~/.pip/ 下创建文件 pip.conf(如果还没有的话),并填入以下内容:[global] timeout = 6000 index-url = http://pypi.douban.com/simple/ [install] use-mirrors = true mirrors = ht ...
分类:
其他好文 时间:
2017-06-12 00:44:14
阅读次数:
267
web服务器配置参考net.ipv4.conf.lo.arp_ignore=1net.ipv4.conf.lo.arp_announce=2net.ipv4.conf.all.arp_ignore=1net.ipv4.conf.all.arp_announce=2net.ipv4.tcp_tw_reuse=1net.ipv4.tcp_tw_recycle=1net.ipv4.tcp_fin_timeout=10net.ipv4.tcp_max_syn_backlog=20000net.core...
分类:
其他好文 时间:
2017-06-11 23:21:39
阅读次数:
180