weavescope curl -L git.io/scope -o /usr/local/xx failed to connect to 2001: Network is unreachable

本文涉及的产品
云防火墙,500元 1000GB
简介: weavescope curl -L git.io/scope -o /usr/local/xx failed to connect to 2001: Network is unreachable


问题:按照weave Scope官网提示,使用以下脚本安装weave Scope报curl: Failed to connect to 2001::68f4:2e39: Network is unreachabler.

\

sudo curl -L git.io/scope -o /usr/local/bin/scope
sudo chmod a+x /usr/local/bin/scope
scope launch

安装weascope的github地址

1.开启防火墙或者至关闭4040端口也可以

直接关闭防火墙方案

CentOS 7.0默认使用的是firewall作为防火墙

查看防火墙状态

firewall-cmd --state

停止firewall

systemctl stop firewalld.service

禁止firewall开机启动

systemctl disable firewalld.service

只开放4040端口方案

开启防火墙

systemctl start firewalld.service

查看防火墙状态

firewall-cmd --state

开放4040端口

firewall-cmd --zone=public --permanent --add-port=4040/tcp

重新加载防火墙让其生效

firewall-cmd --reload

查看开放的所有端口

firewall-cmd --list-all

2.修改hosts文件

如果遇到使用 curl/git 命令时出现 Failed to connect to XXX 这个问题。

解决方式:修改/etc/hosts文件

加上这2行

[root@localhost bin]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
185.199.109.133 raw.githubusercontent.com
20.205.243.166 github.com

ip如何获取:

3.把命令改为

sudo curl -L https://github.com/weaveworks/scope/releases/download/latest_release/scope -o /usr/local/bin/scope

sudo chmod a+x /usr/local/bin/scope

scope launch

看效果:

下载并且启动成功!在浏览器输入:本机ip:4040访问weavescope.

后续可能不定时推送相关文章,期待和大家一起成长!!



大功告成!!

相关文章
|
2月前
|
开发工具 git
Git -- 代码上传错误 error: failed to push some refs to ‘git@gitee.com:JMFive/uni-shop2.git‘
Git -- 代码上传错误 error: failed to push some refs to ‘git@gitee.com:JMFive/uni-shop2.git‘
|
9天前
|
开发工具 git
蓝易云 - 解决git clone时出现Failed to connect to 127.0.0.1 port 1573问题
希望这些信息能帮助你解决问题。如果问题仍然存在,可能需要检查你的网络设置或者联系你的网络管理员。
22 3
|
29天前
|
Shell 开发工具 git
git拉去代码报错"Failed to connect to 127.0.0.1 port 31181: Connection refused"
在克隆`https://example.git/`时遇到错误:"fatal: unable to access 'https://example.git/': Failed to connect to 127.0.0.1 port 31181: Connection refused"。原因是Windows上代理设置未正确关闭,影响了Git配置。解决方法是通过git bash运行命令检查并取消代理:`git config --global http.proxy`和`git config --global --unset http.proxy`。
37 1
 git拉去代码报错"Failed to connect to 127.0.0.1 port 31181: Connection refused"
|
22天前
|
开发工具 git
出现“error: failed to push some refs to ‘https://github.com/****.git‘”,如何解决问题
出现“error: failed to push some refs to ‘https://github.com/****.git‘”,如何解决问题
|
27天前
|
开发工具 git
MAC如何使用Git命令行上传本地项目及理解,failed to push some refs to ‘https://gitee.com/brother-barking/spxx.git
MAC如何使用Git命令行上传本地项目及理解,failed to push some refs to ‘https://gitee.com/brother-barking/spxx.git
|
2月前
|
网络安全 开发工具 git
git修改提交路径以及强制提交——异常:error: remote origin already exists.与异常:error: failed to push some refs to的解决
git修改提交路径以及强制提交——异常:error: remote origin already exists.与异常:error: failed to push some refs to的解决
37 0
|
2月前
|
Go 开发工具 git
【git】解决:Failed to connect to 127.0.0.1 port 7890: Connection refused
【git】解决:Failed to connect to 127.0.0.1 port 7890: Connection refused
929 0
|
2月前
|
缓存 开发工具 git
Git Cloning into :error: RPC failed
Git Cloning into :error: RPC failed
38 0
|
2月前
|
Linux 开发工具 git
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
84 2
|
2天前
|
存储 缓存 Java
Java零基础入门之IO流详解(二)
Java零基础入门之IO流详解(二)