草庐IT

PORT_NUMBER

全部标签

本地 git clone 报错:Failed to connect to github.com port 443 after 21056 ms: Couldn‘t connect to server

问题:本地gitBash拉取远程服务器gitclonehttps://github.com/eclipse-cyclonedds/cyclonedds.git报错如下:解决后:解决方法:添加代理在gitBash窗口输入:gitconfig--globalhttp.proxy127.0.0.1:33210gitconfig--globalhttps.proxy127.0.0.1:33210此方法适用于本地可以打开github的情况,也就是本地就有VPN,网页可以进去github,但是在push/clone的时候进不去服务器或者超时,设置一下在push/clone的时候代理就可以了。至于上面的ip

redis - 消除Redis中的魔数(Magic Number)

我正在使用排序集通过Redis创建索引。我想要匹配结果的以下顺序(首先是较小的字符串):aarartartuarturarturo来自Redisdocumentation我使用分数来存储数据:Theelementsareconsideredtobeorderedfromthehighesttothelowestscore.我为实现这一点而编写的代码有一个神奇的数字1000,但这是一个任意数字,足以让它比我必须存储的最大字符串大(而且我不知道确切的最大字符串长度是多少,但我确定它少于1000)Hash['elem'=>string'score'=>1000-string.size]如何用

redis - 消除Redis中的魔数(Magic Number)

我正在使用排序集通过Redis创建索引。我想要匹配结果的以下顺序(首先是较小的字符串):aarartartuarturarturo来自Redisdocumentation我使用分数来存储数据:Theelementsareconsideredtobeorderedfromthehighesttothelowestscore.我为实现这一点而编写的代码有一个神奇的数字1000,但这是一个任意数字,足以让它比我必须存储的最大字符串大(而且我不知道确切的最大字符串长度是多少,但我确定它少于1000)Hash['elem'=>string'score'=>1000-string.size]如何用

Failed to connect to github.com port 443: Connection refused问题解决

文章目录一、问题描述:Failedtoconnecttogithub.comport443:Connectionrefused问题解决二、解决方法一:排查代理问题1、尝试重置代理或者取消代理的方式2、添加全局代理三、解决方法二:排查DNS解析问题1、第一步:查找github.com对应的IP2、第二步:修改hosts文件一、问题描述:Failedtoconnecttogithub.comport443:Connectionrefused问题解决当下载Nacos时报错如下(可能你是其他与github交互的操作报错,pull或者push等等,但原因都一样):Cloninginto'nacos'..

redis - 使用 redis crate 访问不同的 Redis 数据库时出错 : Invalid database number

我正在尝试使用crateredis(版本0.3.1)访问Redis。它会抛出无效的数据库。externcrateredis;useredis::*;usestd::string::String;usestd::collections::HashSet;fnmain(){ifletErr(e)=read_meta_keys_redis("myset".to_string()){println!("{}",e.description());}}fnread_meta_keys_redis(key:String)->redis::RedisResult{println!("22{}",key

redis - 使用 redis crate 访问不同的 Redis 数据库时出错 : Invalid database number

我正在尝试使用crateredis(版本0.3.1)访问Redis。它会抛出无效的数据库。externcrateredis;useredis::*;usestd::string::String;usestd::collections::HashSet;fnmain(){ifletErr(e)=read_meta_keys_redis("myset".to_string()){println!("{}",e.description());}}fnread_meta_keys_redis(key:String)->redis::RedisResult{println!("22{}",key

Destination unreachable(Port unreachable) 错误原因和解决办法

        Destinationunreachable(Portunreachable)是一条由网络设备(如路由器或防火墙)生成的ICMP(InternetControlMessageProtocol)错误消息,用于通知源设备目标设备或端口无法到达。一、什么是ICMPICMP(InternetControlMessageProtocol)是一种网络协议,用于在IP网络中传输错误消息和操作控制消息。它是在网络层(OSI模型的第三层)上运行的协议,主要用于网络设备之间进行通信和交互。ICMP的主要功能包括:(一)错误报告:ICMP被用于向源设备发送错误报告,以指示在数据包传输过程中发生了什么

解决git报错:ssh:connect to host github.com port 22: Connection timed out

如题,git使用中突然报错ssh:connecttohostgithub.comport22:Connectiontimedout通过查阅各种资料,得知原因可能是由于电脑的防火墙或者其他网络原因导致ssh连接方式端口22被封锁。解决方法一:抛弃ssh连接方式,使用http连接。gitconfig--local-e将配置文件的url=git@github.com:username/repo.git一行改为:url=https://github.com/username/repo.git方法二:如果22号端口不行,那就换一个端口进入.ssh文件夹 创建一个config文件将下面的内容复制进去Hos

【win11】Thinkpad14+显示器分屏问题(display port dp口转type-c)

背景:显示屏dp转dp且主机没有dp口打开右下角开关,设置信号输入为dp模式确认电脑typec口可以传输音视频购买dp母转typec线win+x打开设备管理器,找到显示适配器启用如果显失败需要下载驱动软件驱动下载地址下载完后重启,再win+x打开适配器右键启用win+p投屏

postgresql13远程连接报错 Connection to 117.50.184.237:5432 refused. Check that the hostname and port are c

报错信息Connectiontohostname:portrefused.CheckthatthehostnameandportarecorrectandthatthepostmasterisacceptingTCP/IPconnections.Connectionrefused:nofurtherinformation解决方案修开配置文件vim/var/lib/pgsql/13/data/postgresql.conf添加以下内容并保存如图listen_addresses='*'重启systemctlrestartpostgresql-13.service再次连接报错FATAL:nopg_h