草庐IT

heading1

全部标签

安装docker-compose出现错误html: No such file or directory syntax error near unexpected token `<‘ <head><t

安装docker-compose出现/usr/local/bin/docker-compose:line1:html:Nosuchfileordirectory/usr/local/bin/docker-compose:line2:syntaxerrornearunexpectedtoken502BadGateway错误/usr/local/bin/docker-compose:line1:html:Nosuchfileordirectory/usr/local/bin/docker-compose:line2:syntaxerrornearunexpectedtoken`''usr/loca

ElasticSearch-安装Head可视化插件

安装Head可视化插件首先需要依赖node.js和npm环境1安装node.js官方下载地址:http://nodejs.cn/download/下载LTS版本(长期稳定版本)安装可以更改安装路径,其余的都是选择下一步傻瓜是安装安装成功后如下命令测试node-v查看node的版本npm-v查看npm的版本(新版的node安装自带安装npm)2配置环境变量配置全局安装的模块路径和缓存路径(不一定是安装路径)在nodejs文件夹,创建node_global在nodejs文件夹,创建node_cache打开cmd执行配置路径的命令npmconfigsetprefix“D:\Tools\Node\no

google-app-engine - Go 中的 AppEngine 不从 urlfetch.Head 返回内容长度

我正在尝试对URL执行HEAD请求,以便我可以获得Content-Lengthheader,然后执行范围请求。但是我发现AppEngine在执行urlfetch.Head时不会返回Content-Lengthheader。文档明确说明了响应,但没有明确说明请求。Etag:["359670651"]Expires:[Thu,16Oct201420:41:52GMT]Server:[ECS(mdw/1275)]X-Cache:[HIT]X-Ec-Custom-Error:[1]X-Google-Cache-Control:[remote-fetch]Accept-Ranges:[bytes

google-app-engine - Go 中的 AppEngine 不从 urlfetch.Head 返回内容长度

我正在尝试对URL执行HEAD请求,以便我可以获得Content-Lengthheader,然后执行范围请求。但是我发现AppEngine在执行urlfetch.Head时不会返回Content-Lengthheader。文档明确说明了响应,但没有明确说明请求。Etag:["359670651"]Expires:[Thu,16Oct201420:41:52GMT]Server:[ECS(mdw/1275)]X-Cache:[HIT]X-Ec-Custom-Error:[1]X-Google-Cache-Control:[remote-fetch]Accept-Ranges:[bytes

6步安装elasticsearch-head,链接ES,查看ES数据

我们工作中会用到elasticsearch,但是怎么查看里面的数据呢?这里介绍使用elasticsearch-head客户端连接ES,共分为6步,即可实现。前提需要科学上网话不多说,直接上图:一、二、三、四、五、六、是不是很简单,给个关注吧,有问题好联系!

git reset回退版本【Git异常】You are in ‘detached HEAD‘ state

一、背景gitclone项目后,在main分支回退版本,出现报错Youarein'detachedHEAD'state.Youcanlookaround,makeexperimentalchangesandcommitthem,andyoucandiscardanycommitsyoumakeinthisstatewithoutimpactinganybranchesbyswitchingbacktoabranch.Ifyouwanttocreateanewbranchtoretaincommitsyoucreate,youmaydoso(noworlater)byusing-cwiththe

安装 elasticsearch-head 环境时报错:Failed at the phantomjs-prebuilt@2.1.16 install script.

gitclonehttps://github.com/mobz/elasticsearch-head.gitcdelasticsearch-head/执行npminstall报错:执行 npminstallphantomjs-prebuilt@2.1.16--ignore-scripts命令–ignore-scripts参数用于npminstall在安装插件时忽略package.json中设置的脚本,意思就是避免package.json中的脚本影响插件的正常安装安装成功! 执行npmstart启动访问:http://localhost:9100/此时显示elasticsearch未连接,需要修

Jenkins连接git时出现“Failed to connect to repository : Command ... HEAD“ returned status code 128:”问题解决

目录问题解决问题配置仓库时报错:Failedtoconnecttorepository:Command"git.exels-remote-h--http://192.168.0.XXX/XXX/cicd.gitHEAD"returnedstatuscode128:stdout:stderr:remote:Theprojectyouwerelookingforcouldnotbefound.fatal:repository'http://192.168.0.XXX/XXXX/cicd.git/'notfound 解决原因是我的gitlab仓库设置了权限,改成Public,并保存返回jenkins

解决git reset --soft HEAD^撤销commit时报错:fatal: ambiguous argument ‘HEAD^‘.....

解决gitreset--softHEAD^撤销commit时报错问题:在进行完commit后,想要撤销该commit,于是使用了gitreset--softHEAD^命令,但是出现如下报错:fatal:ambiguousargument'HEAD^':unknownrevisionorpathnotintheworkingtree.Use'--'toseparatepathsfromrevisions,likethis:'git[...]--[...]'寻找过程:在尝试了国内的一些博客提供的方法后,仍然无法解决问题。于是去Stackoverflow上查了一下,找到了方法。原因猜想:在Stack

elasticsearch-head 无法连接elasticsearch的原因和解决

首先确定的是,elasticsearch-head启动无误,elasticsearch启动无误。点击连接elasticsearch出现这个问题:提示未连接作为一个web开发,通常会查看请求是否出错,关键是请求没有出错,就是没有返回值:然后再浏览器打开,有返回结果:留意了一下请求,居然是options请求:在postman里面用options请求果然不行,因为浏览器默认请求是get,所以是成功的。个这个请求有关系?网上找了一下答案,需要在elasticsearch的elasticsearch.yml文件里面添加然后重新启动elasticsearch就可以了。这个时候我发现原来的options请求