草庐IT

allowed_host

全部标签

解决:Some selectors are not allowed in component wxss, including tag name selectors, ID selectors

在微信开发工具中运行文档中的代码,出现如下错误: [渲染层错误]Someselectorsarenotallowedincomponentwxss,includingtagnameselectors,IDselectors,andattributeselectors.(./custom-tab-bar/index.wxss:36:15)(env:Windows,mp,1.06.2210310;lib:2.5.0)出现原因:随着小程序的发展,文档中原来的写法已经不受支持。官方文档也建议不再使用某些tag而换成新的写法。解决方法:第一步,把wxml文件里面要使用wxss的element都赋予一个类

git push错误:You are not allowed to force push code to a protected branch on this project

现象    本地使用 gitpush--forceorigin命令强制推送时,出现“Youarenotallowedtoforcepushcodetoaprotectedbranchonthisproject”错误,意为该分支为受保护的,不允许这类操作,可以通过git管理后台关闭该项目分支的保护状态处理。设置使用管理员账号进入git中的项目设计,setting>repository>protectedbranches>unprotect关闭保护。 

elasticsearch - metricbeat kubernetes DNS 查找失败 : no such host

我尝试按照此处(https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-kubernetes.html)在GCPkubernetes集群上运行官方metricbeatdocker镜像作为deamonset并更改设置,以便它应该将流量路由到现有的Elasticsearchpod,但我不断收到错误消息:2018-02-22T14:04:54.515ZWARNtransport/tcp.go:36DNSlookupfailure"elasticsearch-logging.kube-system.svc.clus

elasticsearch - metricbeat kubernetes DNS 查找失败 : no such host

我尝试按照此处(https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-kubernetes.html)在GCPkubernetes集群上运行官方metricbeatdocker镜像作为deamonset并更改设置,以便它应该将流量路由到现有的Elasticsearchpod,但我不断收到错误消息:2018-02-22T14:04:54.515ZWARNtransport/tcp.go:36DNSlookupfailure"elasticsearch-logging.kube-system.svc.clus

使用Git时 出现couldn‘t find remote ref-allow-unrelated-histories的解决办法

当执行git中的“gitpulloriginmaster–allow-unrelated-histories”命令时,会出现“couldn’tfindremoteref–allow-unrelated-histories”的错误,可以简单理解为我们的远程仓库与本地仓库的内容不对等造成的。特别容易发生在我们新建了一个文件夹,往git仓库中上传资料的ing况下,如下所示:输入如下命令即可解决:gitpull--rebaseoriginmastergitpushoriginmaster 

Animator 报错:‘.‘ is not allowed in State name UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

动画文件名字中包含'.'或者特殊符号不能被识别,mixamo下载的动画不能改名“mixamo.com”。一、点开模型动画文件,Inspector面板中点开Animation,添加一个新的Clips(会与原版一样),修改新的Clip名称,删除旧的Clip,实现重命名。见下图:二、可以自己写脚本来修改(unity中修改生效,如果导出名字会复原)usingSystem.Collections.Generic;usingUnityEngine;/*修改模型动画文件名称的脚本(mixamo)*/usingUnityEditor;publicclassRenameAnimationClip{[MenuIt

ElasticSearch报错blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]

org.elasticsearch.ElasticsearchStatusException:Elasticsearchexception[type=cluster_block_exception,reason=blockedby:[FORBIDDEN/12/indexread-only/allowdelete(api)];] atorg.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:177) atorg.elasticsearch.client.RestHighLevelClient

Mac 修改Hosts文件的两种方法

一修改终端命令打开终端,输入命令行:sudovi/etc/hosts输入本机密码后,会自动打开hosts文件。键盘输入i(插入),修改完成后,按esc键退出插入页面保存退出:按住shift+:键,输入wq,再enter键不保存退出:输入q!键,再enter键二修改终端命令2、修改hosts文件1.打开Finder,快捷键Shift+Command+G查找文件,输入/etc/hosts,点击前往。或者在终端Terminal中输入open/etc/hosts再Enter就打开文件了,修改完文件后,另存一份,然后找到替换/etc/hosts路径下面的原有文件即可,会要求输入电脑密码。

message from server: “Host is not allowed to connect to this MySQL server“问题的解决办法

数据库安装完成后,默认是不能远程登陆的,只能在本地用localhost或者127.0.0.1登录访问,如果需要远程登录,则需要修改mysql设置,具体修改方式:1、本地登录mysql: [root@localhost~]$mysql-uroot-p1234562、查看数据库中mysql表中的权限设置:mysql>usemysql;ReadingtableinformationforcompletionoftableandcolumnnamesYoucanturnoffthisfeaturetogetaquickerstartupwith-ADatabasechangedmysql>select

跨域问题记录:has been blocked by CORS policy_ The ‘Access-Control-Allow-Origin‘

一般出现的问题:hasbeenblockedbyCORSpolicy:The‘Access-Control-Allow-Origin’问题原因:跨域:指的是浏览器不能执行其他网站的脚本。它是由浏览器的同源策略造成的,是浏览器对javascript施加的安全限制。同源策略:是指协议,域名,端口都要相同,其中有一个不同都会产生跨域(重点:浏览器产生了跨域)问题截图:以上两张图片就是浏览器报错出现的跨域问题,但问题点又不一样:第一张图是未设置跨域,第二张图是设置了多重跨域,所以无论前端还是后端都只能设置一层跨域解决方案:前端以vue为例(一般后端解决跨域问题比较方便,这样当项目部署到服务器上的时候也