您的位置:首页 > 游戏 > 手游 > kali安装vulhub遇到的问题及解决方法(docker及docker镜像源更换)

kali安装vulhub遇到的问题及解决方法(docker及docker镜像源更换)

2024/12/23 7:27:58 来源:https://blog.csdn.net/SYH885/article/details/140322463  浏览:    关键词:kali安装vulhub遇到的问题及解决方法(docker及docker镜像源更换)

kali安装vulhub:

提示:项目地址

https://github.com/vulhub/vulhub


项目安装:

git clone https://github.com/vulhub/vulhub.git  

安装docker

提示:普通用户请使用sudo:

首先安装 https 协议、CA 证书

apt-get install -y apt-transport-https ca-certificates 

安装 docker

apt-get update                #先更新
apt install docker.io             

查看版本,是否安装成功。 docker -v 启动 docker systemctl start docker 显示 docker 信息 docker ps -a

`┌──(root㉿192)-[~/Desktop]
└─# docker -v               
Docker version 20.10.25+dfsg1, build b82b9f3┌──(root㉿192)-[~/Desktop]
└─# systemctl start docker

`—

安装docker-compose:

提示:kali新版系统自带的pip是从git下载的 按上述pip下载docker-compose会报错

报错提示:

┌──(root㉿192)-[~/Desktop]
└─# pip install docker-compose -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting docker-composeDownloading https://pypi.tuna.tsinghua.edu.cn/packages/f3/3e/ca05e486d44e38eb495ca60b8ca526b192071717387346ed1031ecf78966/docker_compose-1.29.2-py2.py3-none-any.whl (114 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 114.8/114.8 kB 594.8 kB/s eta 0:00:00
Collecting PyYAML<6,>=3.10 (from docker-compose)Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz (175 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 796.0 kB/s eta 0:00:00Installing build dependencies ... doneGetting requirements to build wheel ... errorerror: subprocess-exited-with-error× Getting requirements to build wheel did not run successfully.│ exit code: 1╰─> [54 lines of output]running egg_infowriting lib3/PyYAML.egg-info/PKG-INFOwriting dependency_links to lib3/PyYAML.egg-info/dependency_links.txtwriting top-level names to lib3/PyYAML.egg-info/top_level.txtTraceback (most recent call last):File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>main()File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in mainjson_out['return_val'] = hook(**hook_input['kwargs'])^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheelreturn hook(config_settings)^^^^^^^^^^^^^^^^^^^^^File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 327, in get_requires_for_build_wheelreturn self._get_build_requires(config_settings, requirements=[])^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 297, in _get_build_requiresself.run_setup()File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 313, in run_setupexec(code, locals())File "<string>", line 271, in <module>File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/__init__.py", line 103, in setupreturn distutils.core.setup(**attrs)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 184, in setupreturn run_commands(dist)^^^^^^^^^^^^^^^^^^File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 200, in run_commandsdist.run_commands()File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 970, in run_commandsself.run_command(cmd)File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/dist.py", line 974, in run_commandsuper().run_command(command)File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 989, in run_commandcmd_obj.run()File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 321, in runself.find_sources()File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 329, in find_sourcesmm.run()File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 550, in runself.add_defaults()File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 588, in add_defaultssdist.add_defaults(self)File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/command/sdist.py", line 102, in add_defaultssuper().add_defaults()File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/command/sdist.py", line 250, in add_defaultsself._add_defaults_ext()File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/command/sdist.py", line 335, in _add_defaults_extself.filelist.extend(build_ext.get_source_files())^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "<string>", line 201, in get_source_filesFile "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__raise AttributeError(attr)AttributeError: cython_sources[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.note: This error originates from a subprocess, and is likely not a problem with pip.

提示:原因似乎是因为PyYaml版本过高,而docker-compose 仍支持的较低版本的 PyYaml (5.3.1),就不会出现此问题。


解决方案:降级PyYAML到特定版本(如5.3.1)以及可能情况下安装低版本的docker。

使用命令安装低版本的pyyaml。

┌──(root㉿192)-[~/Desktop]
└─# pip install pyyaml==5.3.1  -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pyyaml==5.3.1Downloading https://pypi.tuna.tsinghua.edu.cn/packages/64/c2/b80047c7ac2478f9501676c988a5411ed5572f35d1beff9cae07d321512c/PyYAML-5.3.1.tar.gz (269 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 269.4/269.4 kB 849.6 kB/s eta 0:00:00Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyyamlBuilding wheel for pyyaml (setup.py) ... doneCreated wheel for pyyaml: filename=PyYAML-5.3.1-cp311-cp311-linux_x86_64.whl size=44636 sha256=e86de456f1486b49f5cc84b15eb0f666120263c4fc1aa6cfdeaa3888c0a1a01eStored in directory: /root/.cache/pip/wheels/2f/3b/f6/34daeaf2860445f6e0004f86e23aff654a0bbec59683a966e6
Successfully built pyyaml
Installing collected packages: pyyamlAttempting uninstall: pyyamlFound existing installation: PyYAML 6.0.1
ERROR: Cannot uninstall PyYAML 6.0.1, RECORD file not found. Hint: The package was installed by debian.                                                   

这里报错提示无法卸载高版本的pyyam,原因是高版本是从apt下载的,pip没有权限卸载。

解决方案

检查包的来源

首先,我们需要确定PyYAML包的来源。如果它是通过系统的包管理器安装的,那么我们应该使用相应的包管理器来卸载它。例如,在Ubuntu上,你可以使用apt命令来卸载:

sudo apt-get remove python3-yaml重装旧版本pyymal
┌──(root㉿192)-[~/Desktop]
└─# pip install pyyaml==5.3.1  -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pyyaml==5.3.1Using cached PyYAML-5.3.1-cp311-cp311-linux_x86_64.whl
Installing collected packages: pyyaml
Successfully installed pyyaml-5.3.1            #无报错

引用https://blog.csdn.net/qq_38614074/article/details/139621698

继续安装docker-compose

┌──(root㉿192)-[~/Desktop]
└─# pip install docker-compose -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting docker-composeUsing cached https://pypi.tuna.tsinghua.edu.cn/packages/f3/3e/ca05e486d44e38eb495ca60b8ca526b192071717387346ed1031ecf78966/docker_compose-1.29.2-py2.py3-none-any.whl (114 kB)
Requirement already satisfied: PyYAML<6,>=3.10 in /usr/local/lib/python3.11/dist-packages (from docker-compose) (5.3.1)
Requirement already satisfied: distro<2,>=1.5.0 in /usr/lib/python3/dist-packages (from docker-compose) (1.9.0)
Collecting docker>=5 (from docker[ssh]>=5->docker-compose)Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e3/26/57c6fb270950d476074c087527a558ccb6f4436657314bfb6cdf484114c4/docker-7.1.0-py3-none-any.whl (147 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 147.8/147.8 kB 1.8 MB/s eta 0:00:00
Collecting dockerpty<1,>=0.4.1 (from docker-compose)Downloading https://pypi.tuna.tsinghua.edu.cn/packages/8d/ee/e9ecce4c32204a6738e0a5d5883d3413794d7498fe8b06f44becc028d3ba/dockerpty-0.4.1.tar.gz (13 kB)Preparing metadata (setup.py) ... done
Requirement already satisfied: docopt<1,>=0.6.1 in /usr/lib/python3/dist-packages (from docker-compose) (0.6.2)
Collecting jsonschema<4,>=2.5.1 (from docker-compose)Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c5/8f/51e89ce52a085483359217bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.3/56.3 kB 4.4 MB/s eta 0:00:00
Collecting python-dotenv<1,>=0.13.0 (from docker-compose)Downloading https://pypi.tuna.tsinghua.edu.cn/packages/64/62/f19d1e9023aacb47241de3ab5a5d5fedf32c78a71a9e365bb2153378c141/python_dotenv-0.21.1-py3-none-any.whl (19 kB)
Requirement already satisfied: requests<3,>=2.20.0 in /usr/lib/python3/dist-packages (from docker-compose) (2.31.0)
Collecting texttable<2,>=0.9.0 (from docker-compose)Downloading https://pypi.tuna.tsinghua.edu.cn/packages/24/99/4772b8e00a136f3e01236de33b0efda31ee7077203ba5967fcc76da94d65/texttable-1.7.0-py2.py3-none-any.whl (10 kB)
Collecting websocket-client<1,>=0.32.0 (from docker-compose)Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f7/0c/d52a2a63512a613817846d430d16a8fbe5ea56dd889e89c68facf6b91cb6/websocket_client-0.59.0-py2.py3-none-any.whl (67 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.2/67.2 kB 3.8 MB/s eta 0:00:00
Requirement already satisfied: urllib3>=1.26.0 in /usr/lib/python3/dist-packages (from docker>=5->docker[ssh]>=5->docker-compose) (1.26.18)
Requirement already satisfied: paramiko>=2.4.3 in /usr/lib/python3/dist-packages (from docker[ssh]>=5->docker-compose) (3.4.0)
Requirement already satisfied: six>=1.3.0 in /usr/lib/python3/dist-packages (from dockerpty<1,>=0.4.1->docker-compose) (1.16.0)
Requirement already satisfied: attrs>=17.4.0 in /usr/lib/python3/dist-packages (from jsonschema<4,>=2.5.1->docker-compose) (23.2.0)
Collecting pyrsistent>=0.14.0 (from jsonschema<4,>=2.5.1->docker-compose)Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a1/94/9808e8c9271424120289b9028a657da336ad7e43da0647f62e4f6011d19b/pyrsistent-0.20.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (120 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 120.0/120.0 kB 2.8 MB/s eta 0:00:00
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from jsonschema<4,>=2.5.1->docker-compose) (68.1.2)
Building wheels for collected packages: dockerptyBuilding wheel for dockerpty (setup.py) ... doneCreated wheel for dockerpty: filename=dockerpty-0.4.1-py3-none-any.whl size=16596 sha256=6b1ed8fa013ad102b4ab2b3807fc5ebd10aa578814db10280b6a189d7aa1b42dStored in directory: /root/.cache/pip/wheels/4b/23/8a/796cda3557ec7067092ef780992049870652e0da656114e937
Successfully built dockerpty
Installing collected packages: texttable, websocket-client, python-dotenv, pyrsistent, dockerpty, docker, jsonschema, docker-composeAttempting uninstall: websocket-clientFound existing installation: websocket-client 1.7.0Uninstalling websocket-client-1.7.0:Successfully uninstalled websocket-client-1.7.0Attempting uninstall: python-dotenvFound existing installation: python-dotenv 1.0.1Uninstalling python-dotenv-1.0.1:Successfully uninstalled python-dotenv-1.0.1Attempting uninstall: jsonschemaFound existing installation: jsonschema 4.19.2
ERROR: Cannot uninstall jsonschema 4.19.2, RECORD file not found. Hint: The package was installed by debian.    

提示未成功卸载jsonschema,方法一样 重新卸载


sudo apt-get remove python3-jsonschema #运行


重新安装docker-compose

┌──(root㉿192)-[~/Desktop]
└─# pip install docker-compose -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting docker-composeUsing cached https://pypi.tuna.tsinghua.edu.cn/packages/f3/3e/ca05e486d44e38eb495ca60b8ca526b192071717387346ed1031ecf78966/docker_compose-1.29.2-py2.py3-none-any.whl (114 kB)
Requirement already satisfied: PyYAML<6,>=3.10 in /usr/local/lib/python3.11/dist-packages (from docker-compose) (5.3.1)
Requirement already satisfied: distro<2,>=1.5.0 in /usr/lib/python3/dist-packages (from docker-compose) (1.9.0)
Requirement already satisfied: docker>=5 in /usr/local/lib/python3.11/dist-packages (from docker[ssh]>=5->docker-compose) (7.1.0)
Requirement already satisfied: dockerpty<1,>=0.4.1 in /usr/local/lib/python3.11/dist-packages (from docker-compose) (0.4.1)
Requirement already satisfied: docopt<1,>=0.6.1 in /usr/lib/python3/dist-packages (from docker-compose) (0.6.2)
Collecting jsonschema<4,>=2.5.1 (from docker-compose)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c5/8f/51e89ce52a085483359217bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Requirement already satisfied: python-dotenv<1,>=0.13.0 in /usr/local/lib/python3.11/dist-packages (from docker-compose) (0.21.1)
Requirement already satisfied: requests<3,>=2.20.0 in /usr/lib/python3/dist-packages (from docker-compose) (2.31.0)
Requirement already satisfied: texttable<2,>=0.9.0 in /usr/local/lib/python3.11/dist-packages (from docker-compose) (1.7.0)
Requirement already satisfied: websocket-client<1,>=0.32.0 in /usr/local/lib/python3.11/dist-packages (from docker-compose) (0.59.0)
Requirement already satisfied: urllib3>=1.26.0 in /usr/lib/python3/dist-packages (from docker>=5->docker[ssh]>=5->docker-compose) (1.26.18)
Requirement already satisfied: paramiko>=2.4.3 in /usr/lib/python3/dist-packages (from docker[ssh]>=5->docker-compose) (3.4.0)
Requirement already satisfied: six>=1.3.0 in /usr/lib/python3/dist-packages (from dockerpty<1,>=0.4.1->docker-compose) (1.16.0)
Requirement already satisfied: attrs>=17.4.0 in /usr/lib/python3/dist-packages (from jsonschema<4,>=2.5.1->docker-compose) (23.2.0)
Requirement already satisfied: pyrsistent>=0.14.0 in /usr/local/lib/python3.11/dist-packages (from jsonschema<4,>=2.5.1->docker-compose) (0.20.0)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from jsonschema<4,>=2.5.1->docker-compose) (68.1.2)
Installing collected packages: jsonschema, docker-compose
Successfully installed docker-compose-1.29.2 jsonschema-3.2.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv     
#这个警告是提示在root用户操作下的风险 ,不用管

docker启动靶场环境

安装完毕后cd进入到/home/vulhub文件夹下,这里以log4j/CVE-2021-44228为例:

进入对应目录下,使用以下命令启动该漏洞靶场环境

如果你后面docker-compose build又报错:TypeError: kwargs_from_env() got an unexpected keyword argument ‘ssl_version’

解决办法:安装低版本的docker

┌──(root㉿192)-[~/Desktop/vulhub-master/log4j/CVE-2021-44228]
└─# docker-compose build
Traceback (most recent call last):File "/usr/local/bin/docker-compose", line 8, in <module>sys.exit(main())^^^^^^File "/usr/local/lib/python3.11/dist-packages/compose/cli/main.py", line 81, in maincommand_func()File "/usr/local/lib/python3.11/dist-packages/compose/cli/main.py", line 200, in perform_commandproject = project_from_options('.', options)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/compose/cli/command.py", line 60, in project_from_optionsreturn get_project(^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/compose/cli/command.py", line 152, in get_projectclient = get_client(^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/compose/cli/docker_client.py", line 41, in get_clientclient = docker_client(^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/compose/cli/docker_client.py", line 124, in docker_clientkwargs = kwargs_from_env(environment=environment, ssl_version=tls_version)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: kwargs_from_env() got an unexpected keyword argument 'ssl_version'┌──(root㉿192)-[~/Desktop/vulhub-master/log4j/CVE-2021-44228]
└─# pip install docker==6.1.3 -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting docker==6.1.3Downloading https://pypi.tuna.tsinghua.edu.cn/packages/db/be/3032490fa33b36ddc8c4b1da3252c6f974e7133f1a50de00c6b85cca203a/docker-6.1.3-py3-none-any.whl (148 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 148.1/148.1 kB 626.7 kB/s eta 0:00:00
Requirement already satisfied: packaging>=14.0 in /usr/lib/python3/dist-packages (from docker==6.1.3) (24.0)
Requirement already satisfied: requests>=2.26.0 in /usr/lib/python3/dist-packages (from docker==6.1.3) (2.31.0)
Requirement already satisfied: urllib3>=1.26.0 in /usr/lib/python3/dist-packages (from docker==6.1.3) (1.26.18)
Requirement already satisfied: websocket-client>=0.32.0 in /usr/local/lib/python3.11/dist-packages (from docker==6.1.3) (0.59.0)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from websocket-client>=0.32.0->docker==6.1.3) (1.16.0)
Installing collected packages: dockerAttempting uninstall: dockerFound existing installation: docker 7.1.0Uninstalling docker-7.1.0:Successfully uninstalled docker-7.1.0
Successfully installed docker-6.1.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv          ┌──(root㉿192)-[~/Desktop/vulhub-master/log4j/CVE-2021-44228]
└─# docker-compose up -d                                                 
Creating network "cve-2021-44228_default" with the default driver
Pulling solr (vulhub/solr:8.11.0)...
8.11.0: Pulling from vulhub/solr
43c265008fae: Pulling fs layer
af36d2c7a148: Pulling fs layer
2b7b4d10e1c1: Pulling fs layer
f264389d8f2f: Waiting
1a2c46e93f4a: Waiting
f9506bb322c0: Waiting
96f5dad14c2c: Waiting
00cc69e6b3f8: Waiting
7deb39580f8e: Waiting
4f4fb700ef54: Waiting

这里我们等了许久发现根本完成不了启动

解决方法

更换docker源

┌──(root㉿192)-[~/Desktop/vulhub-master/log4j/CVE-2021-44228]
└─# cd /etc/docker ┌──(root㉿192)-[/etc/docker]
└─# touch daemon.json┌──(root㉿192)-[/etc/docker]
└─# vim daemon.json {
"registry-mirrors":["https://6kx4zyno.mirror.aliyuncs.com"]
}
:wq

重新加载源 重新重启docker服务

  • [ systemctl daemon-reload ]
  • [systemctl restart docker ]
┌──(root㉿192)-[/etc/docker]
└─# systemctl daemon-reload ┌──(root㉿192)-[/etc/docker]
└─# systemctl restart docker

在这里插入图片描述
我们看到速度很快 基本就5秒

##引用 https://blog.csdn.net/m0_73615178/article/details/136282974

使用docker-compose查看进程端口 再访问

在这里插入图片描述

┌──(root㉿192)-[~/Desktop/vulhub-master/log4j/CVE-2021-44228]
└─# ifconfig
br-76fd4b9f6713: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500inet 172.18.0.1  netmask 255.255.0.0  broadcast 172.18.255.255inet6 fe80::42:88ff:fe4a:617c  prefixlen 64  scopeid 0x20<link>ether 02:42:88:4a:61:7c  txqueuelen 0  (Ethernet)RX packets 198  bytes 485887 (474.4 KiB)RX errors 0  dropped 0  overruns 0  frame 0TX packets 273  bytes 66974 (65.4 KiB)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255ether 02:42:8a:f5:bc:cf  txqueuelen 0  (Ethernet)RX packets 0  bytes 0 (0.0 B)RX errors 0  dropped 0  overruns 0  frame 0TX packets 0  bytes 0 (0.0 B)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500inet 192.168.70.131  netmask 255.255.255.0  broadcast 192.168.70.255inet6 fe80::20c:29ff:fea9:70ef  prefixlen 64  scopeid 0x20<link>ether 00:0c:29:a9:70:ef  txqueuelen 1000  (Ethernet)RX packets 607076  bytes 621908988 (593.0 MiB)RX errors 0  dropped 0  overruns 0  frame 0TX packets 304754  bytes 23586908 (22.4 MiB)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536inet 127.0.0.1  netmask 255.0.0.0inet6 ::1  prefixlen 128  scopeid 0x10<host>loop  txqueuelen 1000  (Local Loopback)RX packets 450  bytes 547951 (535.1 KiB)RX errors 0  dropped 0  overruns 0  frame 0TX packets 450  bytes 547951 (535.1 KiB)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0veth1a7f791: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500inet6 fe80::5063:33ff:fe92:2152  prefixlen 64  scopeid 0x20<link>ether 52:63:33:92:21:52  txqueuelen 0  (Ethernet)RX packets 198  bytes 488659 (477.2 KiB)RX errors 0  dropped 0  overruns 0  frame 0TX packets 284  bytes 67840 (66.2 KiB)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

本机访问端口192.168.70.131:8973
在这里插入图片描述修改了ip地址

https://blog.csdn.net/ldl345/article/details/137604277

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com