草庐IT

DEFAULT_PORT

全部标签

javascript - 拒绝加载字体 'data:font/woff.....' 它违反了以下内容安全策略指令 : "default-src ' self '". Note that ' font-src'

我的reactwebApp在浏览器控制台中给出这个错误Refusedtoloadthefont'data:font/woff;base64,d09........'becauseit``violatesthefollowingContentSecurityPolicydirective:"default-src``'self'".Notethat'font-src'wasnotexplicitlyset,so'default-src'isusedasafallback.还有:Refusedtoconnectto'ws://localhost:3000/sockjs-node/782/o

zookeeper下载启动后:Client port found: 2181. Client address: localhost. Client SSL: false. Error contacti

1.我官网下载的版本1)在linux平台解压下载的zookeeper-3.4.10.tar.gz2)进⼊conf⽬录,cpzoo_sample.cfgzoo.cfg(复制一个config文件,第一个是模板,第二个是我们的conf文件)3)进⼊bin⽬录,启动zk服务启动./zkServer.shstart(默认端口2181用不着改)停⽌./zkServer.shstop查看状态./zkServer.shstatus启动了单节点模式报出了这个问题:这个问题怎么解决呢?1.关闭防火墙,systemctlstopfirewalld.service,重启zookeepersystemctlstatus

pip安装模块报错ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org‘, port=443): Read timed

今天在安装python模块时提示ReadTimeoutError:HTTPSConnectionPool(host=‘files.pythonhosted.org’,port=443):Readtimedout具体报错如下:[root@0018/]#pipinstallpygameDEPRECATION:Python2.7reachedtheendofitslifeonJanuary1st,2020.PleaseupgradeyourPythonasPython2.7isnolongermaintained.pip21.0willdropsupportforPython2.7inJanuary

端口映射问题:Bad Request This combination of host and port requires TLS.

错误信息:BadRequestThiscombinationofhostandportrequiresTLS.遇到上面的错误信息:如果是通过域名访问,则该域名后配置的转发端口映射错误。如果是通过ip+端口或者域名+端口访问,则为你端口填写错误。我出现过若干次以上问题,所以将其记录,原因为在配置端口时,为服务配置了一个serverport一个httpport。但在访问的时候访问了serverport。就访问不到了。

使用Git时报错Connection reset by 20.205.243.166 port 22

报错代码如下:Connectionresetby20.205.243.166port22fatal:Couldnotreadfromremoterepository.Pleasemakesureyouhavethecorrectaccessrightsandtherepositoryexists.百度搜了很多方法,如下:重新生成ssh密钥修改22端口为443修改git用户邮箱设置删除known_hosts中有关Github相关行将网络切换为手机热点(确实有效,治标不治本,怀疑公司内网问题)修改clone方式为https(应该有效,没试,治标不治本,而且项目多时太麻烦)今天又遇到了,突然回过神来

Unable to negotiate with ***** port **:no matching host key type found...连接的端口的密钥没有匹配

连接的端口的密钥没有匹配●解决方法查看网上的各种方法,这种情况的原因就是新的ssh客户端不支持ssh-rsa算法,要修改本地配置重新使用ssh-rsa算法。在.ssh文件下创建config文件(config没有后缀名),使用记事本打卡添加以下内容并保存:Host*HostkeyAlgorithms+ssh-rsaPubkeyAcceptedKeyTypes+ssh-rsa重新上传即可。

ingress 400 Bad Request The plain HTTP request was sent to HTTPS port

 问题现象        访问时返回400BadRequest,并提示TheplainHTTPrequestwassenttoHTTPSport。问题原因        IngressController到后端Pod请求使用了默认的HTTP请求,但后端是HTTPS服务。。解决方案        添加注释,让其使用https请求nginx.ingress.kubernetes.io/backend-protocol:"HTTPS"官方配置:Annotations-NGINXIngressController此问题在nginx配置中也出现过,解决方法proxy_passhttps://xxx; 

在GitHub上 git clone代码失败,显示:“ithub.com port 443: 连接超时“

有时候,使用gitclone指令下载代码时显示显示:“ithub.comport443:连接超时”。可以使用gitclone加速,官网URL:https://gitclone.com/官方描述,有下面三种方式可以使用:方法一(替换URL)gitclonehttps://gitclone.com/github.com/tendermint/tendermint.git方法二(设置git参数)gitconfig--globalurl."https://gitclone.com/".insteadOfhttps://gitclonehttps://github.com/tendermint/tend

uniapp引入uview-ui 报错:$u-badge-primary: $u-primary !default;

解决方法上面这个问题是在引入uview-ui这个ui框架后出现的,那么具体的解决方法是在项目根目录下的uni.scss文件中引入uview对应的样式文件:@import"@/uni_modules/uview-ui/theme.scss";插件地址uni-app插件地址(可以搜索一些其他的可用插件):https://ext.dcloud.net.cn/uView2.0重磅发布,利剑出鞘,一统江湖:https://ext.dcloud.net.cn/plugin?id=1593最后最后说一下,即使安装,样式引入都成功了,但是还是会报错提示不能使用的情况,建议重新创建一个uni项目,再次添加uvi

cv::FileStorage::Impl::open Can‘t open file: ‘haarcascade_frontalface_default.xml‘ in read mode

globalD:\a\opencv-python\opencv-python\opencv\modules\core\src\persistence.cpp(505)cv::FileStorage::Impl::openCan’topenfile:‘haarcascade_frontalface_default.xml’inreadmode在实验opencv对人脸的识别检测时,出现了无法打开对应的haarcascade_frontalface_default.xml文件的问题,推测时路径的问题,将路径更改为相应文件绝对路径,解决问题,具体原因未知,欢迎讨论