简介 Express是基于NodeJS开发的Web框架。 # npm i -S express # 创建应用对象 const express = require('express') const app = express() # 注册各种中间件 app.use(...) app.use(...) ...
分类:
其他好文 时间:
2020-06-03 20:37:35
阅读次数:
110
客户端(linux服务器)jmeter压测服务端,出现Cannot assign requested address错误 网上找了下原因,大致上是由于客户端频繁的连服务器,由于每次连接都在很短的时间内结束,导致很多的TIME_WAIT,以至于用光了可用的端 口号,所以新的连接没办法绑定端口,即“Ca ...
分类:
其他好文 时间:
2020-06-03 20:12:22
阅读次数:
87
grafana配置邮件告警 修改配置 grafana.ini 实现告警 [smtp] enabled = true host = #邮箱SMTP服务器地址 user = #你登录邮箱的账号 password = #你邮箱账号的密码 from_address = #发邮件的账号 from_name = ...
分类:
其他好文 时间:
2020-06-03 18:54:30
阅读次数:
158
adapted from poj 2482 Fleeting time does not blur the memory of you. Has it really been three years since i first saw you? I still remember, vividly, ...
分类:
其他好文 时间:
2020-06-03 17:25:52
阅读次数:
89
function getData(selector) { return $(selector || 'table').map((x, y) => group(Array.from($(y).find('td')), $(y).find('tr:has(td):first td').length, c ...
分类:
Web程序 时间:
2020-06-03 13:33:13
阅读次数:
73
今天弄了下mysql的几个安全设置: 只允许本地登录,允许ssh通过远程登录1.my.cnf #skip-networkingbind-address = 127.0.0.1 此项设置允许 tcp/ip 访问,但是只有127.0.0.1 有可以访问,如果把skip-networking 开启。则只能 ...
分类:
数据库 时间:
2020-06-03 00:19:05
阅读次数:
107
使用python中的websocket-client模块来做相关的接口测试 import webclient def creatWS(user,password):#生成ws链接的函数 token = getToken(user,password)#调用系统的登录接口,获取token return ...
分类:
编程语言 时间:
2020-06-02 13:30:07
阅读次数:
196
self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize ) 改为 self.SetSizeHints( wx.DefaultSize, wx.DefaultSize ) self.m_statusBar2 = self.CreateStatusBar( ...
分类:
其他好文 时间:
2020-06-02 13:15:10
阅读次数:
84
禁用词语(织梦dedecms系统讲直接停止用户动作)用|分开,但不要在结尾加|(cfg_notallowstr):系统禁用词语设置,系统在进行互动操作过程中, 如果有用户提交这些信息,系统将会显示“has not allow words!”,关键词用“|”分开,并且不要在结尾加上“|”https:/ ...
分类:
其他好文 时间:
2020-06-02 13:05:01
阅读次数:
67
/** * 使用socket读取网页内容 */ private static void socketReadWebPage() { try { String strHost = "www.baidu.com"; InetSocketAddress socketAddress = new InetSo ...
分类:
编程语言 时间:
2020-06-02 11:32:18
阅读次数:
85