pip --default-timeout=100 install 库名称 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com ...
分类:
编程语言 时间:
2020-05-24 12:13:46
阅读次数:
68
php-fpm配置 配置文件:php-fpm.conf 开启慢日志功能的: slowlog = /usr/local/var/log/php-fpm.log.slowrequest_slowlog_timeout = 5s 当某个请求的时间超过了5秒,就会在慢日志中记录相应的记录,注意上面的时间5s ...
分类:
Web程序 时间:
2020-05-24 11:26:02
阅读次数:
70
在处理导入导出大数据的情况下,一般要调整以下一些参数: 1.php.ini: set_time_limit(0); max_execution_time=1200; 这个是程序执行时间; 2.php-fpm.conf: request_terminate_timeout 1200; 3.nginx_ ...
分类:
其他好文 时间:
2020-05-24 09:16:00
阅读次数:
47
一、 现象 用户打开消息推送有概率报错,后续发现推送消息阅读数、点赞数无法正常更新,mysql报警有行锁, DBA抓到有锁表语句,kill该语句未正常恢复,elk日志有大量的java.sql.SQLException: connection holder is null 重启应用恢复 二、分析 根据 ...
分类:
其他好文 时间:
2020-05-23 16:53:18
阅读次数:
50
axios.js import axios from 'axios'; import api from './api'; // 创建一个axios实例 const axiosService = axios.create({ timeout: 5000, // 设置超时时间为5s }); // 添加请 ...
分类:
移动开发 时间:
2020-05-23 15:00:46
阅读次数:
69
It’s been a while since Cisco has announced Smart License to replace Traditional PAK-based licensing. Overall, this new system brings loads of benefit ...
分类:
系统相关 时间:
2020-05-23 12:53:18
阅读次数:
259
import requests from bs4 import BeautifulSoup allUniv=[] def getHTMLText(url): try: r=requests.get(url,timeout=30) r.raise_for_status() r.encoding = ' ...
分类:
其他好文 时间:
2020-05-23 09:57:50
阅读次数:
495
import requests from bs4 import BeautifulSoup allUniv=[] def getHTMLText(url): try: r=requests.get(url,timeout=30) r.raise_for_status() r.encoding = ' ...
分类:
其他好文 时间:
2020-05-23 09:18:05
阅读次数:
480
JQuery实现AJAX更加简洁,方便. $.ajax([设置参数]); String url 、发送请求的地址,默认为当前页地址 String type、请求方式(POST或者GET,默认为GET) Number timeout 、设置请求超时时间 Object data 或 String dat ...
分类:
Web程序 时间:
2020-05-22 21:08:41
阅读次数:
90
1 pip3 --default-timeout=1000 install -U pip https://www.cnblogs.com/lucky-cat233/p/12605537.html https://blog.csdn.net/weixin_39773337/article/detail ...
分类:
其他好文 时间:
2020-05-21 19:05:43
阅读次数:
45