草庐IT

async_connect

全部标签

配置kibana报错:connect ECONNREFUSED 127.0.0.1:9200

在linux虚拟机中刚配置好elasticsearch,在虚拟机中使用http://localhost:9200和 http://127.0.0.1:9200都可以正常访问到elasticsearch首页,接着配置kibana时,使用命令:dockerrun--namekibana-eELASTICSEARCH_HOSTS=http://localhost:9200-p5601:5601-dkibana:7.4.2或者dockerrun--namekibana-eELASTICSEARCH_HOSTS=http://127.0.0.1:9200-p5601:5601-dkibana:7.4.2

fatal: unable to connect to github.com:github.com[0:20.205.243.166]: errno=Unknown error

git:fatal:unabletoconnecttogithub.com:github.com[0:20.205.243.166]:errno=Unknownerror在bash执行命令gitclone时报:fatal:unabletoconnecttogithub.com:github.com[0:20.205.243.166]:errno=Unknownerror发生此错误是因为git端口受限,可以使用以下命令修复gitconfig--globalurl.https://github.com/.insteadOfgit://github.com/修复后,再次执行gitclone

解决curl: (35) OpenSSL SSL_connect: 连接被对方重设 in connection to sh.rustup.rs:443

报错命令:curlhttps://sh.rustup.rs-sSf|sh报错内容:curl:(35)OpenSSLSSL_connect:连接被对方重设inconnectiontosh.rustup.rs:443解决办法:原因是没有安装git,用以下命令安装git,然后再执行上面的命令sudoapt-getinstallgit

mysql - 去-mysql : authentication plugin not supported while connecting from go app container to mysql container

我正在将我的linuxdocker环境从我的mac移植到我的笔记本电脑上。我有2个docker镜像,一个是mysql:latest数据库镜像,另一个是go:alpine应用服务器镜像。在我的mac上,我使用bash脚本将环境变量传递给应用服务器,以将数据库连接字符串组合到mysql。连接字符串是:root:password@tcp(mysql_host:3306)/dbname当我在我的mac上运行它时,数据库连接成功,但在我的PC上却没有。在Windows10上,我安装了Ubuntu和Windows版Docker。在bash中,我安装了docker客户端,我可以通过设置DOCKER_

mysql - 去-mysql : authentication plugin not supported while connecting from go app container to mysql container

我正在将我的linuxdocker环境从我的mac移植到我的笔记本电脑上。我有2个docker镜像,一个是mysql:latest数据库镜像,另一个是go:alpine应用服务器镜像。在我的mac上,我使用bash脚本将环境变量传递给应用服务器,以将数据库连接字符串组合到mysql。连接字符串是:root:password@tcp(mysql_host:3306)/dbname当我在我的mac上运行它时,数据库连接成功,但在我的PC上却没有。在Windows10上,我安装了Ubuntu和Windows版Docker。在bash中,我安装了docker客户端,我可以通过设置DOCKER_

go - sqlx.Connect() 和 sqlx.Open() 有什么区别?

我正在使用jmoironsqlx我的golang项目的库。我试图创建一个数据库连接mysql。所以,我找到了这两个函数:sqlx.Connect()和sqlx.Open(),但没有发现区别。因此,我尝试阅读godoc中的文档.我发现了这个:sqlx.Connect()Connecttoadatabaseandverifywithaping.sqlx.Open()Openisthesameassql.Open,butreturnsan*sqlx.DBinstead.我知道sqlx.Open()使用golangsql.Open创建到数据库的连接。但是sqlx.Connect()有什么用呢?

go - sqlx.Connect() 和 sqlx.Open() 有什么区别?

我正在使用jmoironsqlx我的golang项目的库。我试图创建一个数据库连接mysql。所以,我找到了这两个函数:sqlx.Connect()和sqlx.Open(),但没有发现区别。因此,我尝试阅读godoc中的文档.我发现了这个:sqlx.Connect()Connecttoadatabaseandverifywithaping.sqlx.Open()Openisthesameassql.Open,butreturnsan*sqlx.DBinstead.我知道sqlx.Open()使用golangsql.Open创建到数据库的连接。但是sqlx.Connect()有什么用呢?

解决Failed to connect to github.com port 443: Timed out

今天用git提交代码到github的时候遇到了一个问题这个错误大致是说连接到github的时候超时了。那么该怎么解决呢?很简单,这个超时了无非就是你的代理出了点问题,不过好在git上用几个命令就能够很快搞定。gitconfig--global--unsethttp.proxygitconfig--global--unsethttps.proxy然后再push,就很nice! 

解决 github 报错 Failed to connect to github.com port 443:connection timed out

一、前言你在使用github的时候,是不是会经常出现Failedtoconnecttogithub.comport443:connectiontimedout报错,这是什么原因造成的呢?我们应该如何解决呢?请继续往下看二、原因这是由于电脑里开启了代理,例如开启了翻墙软件等,就会造成这个原因三、解决方案执行命令:取消全局代理:gitconfig--global--unsethttp.proxygitconfig--global--unsethttps.proxy

git报错fatal: unable to access ‘https://github.com/.......‘: OpenSSL SSL_read: Connection was reset, e

fatal:unabletoaccess‘https://github.com/…’:OpenSSLSSL_read:Connectionwasreset,errno10054【产生原因】一般是因为服务器的SSL证书没有经过第三方机构的签署,所以才报错【解决方式】解除ssl验证后,再次git即可gitconfig--globalhttp.sslVerifyfalse