用http 访问 https域名, 报跨越问题 解决方法: 在nginx相应服务的转发配置下添加: add_header 'Access-Control-Allow-Origin' 'http://im.tinywan.com'; add_header 'Access-Control-Allow-H ...
分类:
Web程序 时间:
2020-01-14 16:19:45
阅读次数:
291
siege压测工具 安装: wget http://download.joedog.org/siege/siege-3.0.8.tar.gz cd siege-3.0.8 ./configure make make install 验证安装结果:输入siege -V 如果输出了版本号就代表安装没问题 ...
分类:
其他好文 时间:
2020-01-13 16:03:11
阅读次数:
177
String origin = filterContext.HttpContext.Request.Headers["Origin"]; filterContext.HttpContext.Response.AppendHeader("Access-Control-Allow-Origin", "* ...
分类:
Web程序 时间:
2020-01-13 13:16:47
阅读次数:
106
Python 使用 from pymongo import MongoClient 连接mongodb,由于没有关闭连接,导致 netstat -alnt|wc -l达到几万个 socket.error: [Errno 99] Cannot assign requested address 网上你去 ...
分类:
系统相关 时间:
2020-01-08 12:53:15
阅读次数:
93
发现测试服务器一台muc启动失败,另一台是好的,本地也没问题,报错信息如下: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mucAccountLoginControll ...
分类:
其他好文 时间:
2020-01-06 22:34:34
阅读次数:
650
当把镜像推送到自己的docker.io是报错如下: denied: requested access to the resource is denied 解决方法: docker login 登录后在推。 ...
分类:
数据库 时间:
2020-01-06 14:33:07
阅读次数:
76
问题描述 Apache服务器重启 The ruquested operation has failed(请求操作失败) 1.检查原因 重启失败,可能是因为端口被占用,所以先看看端口是否被占用 查看网络连接状态以及相关信息程序也就是查看Apache的端口是否被占用,我这边的Apache端口没有做任何更 ...
分类:
Web程序 时间:
2020-01-06 10:00:06
阅读次数:
255
K8s在helm初始化的报错,我的k8s为1.16.1,用的helm是2.13.1 [root@k8s-master ~]# helm init --service-account tiller --skip-refresh Creating /root/.helm Creating /root/. ...
分类:
其他好文 时间:
2020-01-06 00:05:47
阅读次数:
382
import pymysqlfrom DBUtils.PooledDB import PooledDBPOOL = PooledDB( creator=pymysql, # 使用链接数据库的模块 maxconnections=6, # 连接池允许的最大连接数,0和None表示不限制连接数 minca ...
分类:
数据库 时间:
2020-01-04 10:40:13
阅读次数:
88
使用DMV,诊断和调优DB性能。 查看等待统计信息,找出SQL Server慢在哪里: SELECT wait_type , SUM(wait_time_ms / 1000) AS [wait_time_s] FROM sys.dm_os_wait_stats DOWS WHERE wait_typ ...
分类:
数据库 时间:
2020-01-03 21:34:40
阅读次数:
88