Spring Boot中Tomcat调优 123456 server: tomcat: accept-count: 100 max-connections: 10000 #最大可被连接数,默认为10000 max-threads: 1000 #最大工作线程数 min-spare-threads: 1 ...
分类:
编程语言 时间:
2020-06-21 16:03:32
阅读次数:
112
1、jQuery中的ajaxget方法:$.ajax({ url:"v4/api/film/now-playing?t=1539401039415&page=1&count=5", type:"GET", success:(result)=>{ return result } })post方法:$.... ...
分类:
移动开发 时间:
2020-06-20 17:09:46
阅读次数:
66
C:\ProgramData\chocolatey\logs\chocolatey.log 2020-06-12 03:00:58,800 2012 [DEBUG] - XmlConfiguration is now operational2020-06-12 03:00:58,868 2012 [ ...
分类:
其他好文 时间:
2020-06-20 13:58:42
阅读次数:
41
系统函数 常用的时间函数 函数名 说明 CURDATE()/CURTIME() 返回当前日期/返回当前时间 NOW() 返回当前的日期和时间 DATE_FORMAT(date,fmt) 按照fmt的格式,对日期date进行格式化 SEC_TO_TIME(senconds) 把秒数转换为(小时:分:秒 ...
分类:
数据库 时间:
2020-06-20 13:42:08
阅读次数:
70
1、当前时间换时间戳 var timestamp = parseInt(new Date().getTime()/1000); // 当前时间戳 document.write(timestamp); 2、当前时间换日期字符串 var now = new Date(); var yy = now.ge ...
分类:
Web程序 时间:
2020-06-20 10:21:55
阅读次数:
69
function getTime($time){ $now = time(); $prc =$now - $time; if ($prc > 86400){ return date('Y-m-d h:s',$time); }elseif ($prc > 3600){ return intval(da ...
分类:
Web程序 时间:
2020-06-18 21:38:48
阅读次数:
62
var myfile = dataURLtoFile(imgUri, Date.now() + '.png'); var formFile = new FormData(); formFile.append('file', myfile); //上传服务器 $.ajax({ url: '/index ...
分类:
Web程序 时间:
2020-06-18 10:49:49
阅读次数:
123
一、安装搜索框架、引擎、分词库 pip install whoosh django-haystack jieba 二、配置 注册haystack框架: 配置搜索引擎、索引文件路径、自动更新索引文件: HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'h ...
分类:
其他好文 时间:
2020-06-18 01:57:29
阅读次数:
89
MySQL参数优化对于不同的网站,及其在线量,访问量,帖子数量,网络情况,以及机器硬件配置都有关系,优化不可能一次性完成,需要不断的观察以及调试,才有可能得到最佳的效果。 1)连接请求的变量 1、max_connections MySQL的最大连接数,如果服务器的并发连接请求量较大,建议调高此值,以 ...
分类:
数据库 时间:
2020-06-17 10:51:04
阅读次数:
66
netstat netstat -a ┌─[root@nedrain]─[~] └──? $netstat -a Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Forei ...
分类:
Web程序 时间:
2020-06-16 20:32:39
阅读次数:
68