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

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/376079.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

【机器学习】使用决策树分类器预测汽车安全性的研究与分析

文章目录 一、决策树算法简介决策树的结构分类和回归树 (CART)决策树算法术语决策树算法直觉 二、属性选择度量信息增益熵 基尼指数计算分割基尼指数的步骤 三、决策树算法中的过度拟合避免过度拟合的方法 四、导入库和数据可视化探索性数据分析重命名列名查看数据集的总结信息…

我的AI音乐梦:ChatGPT帮我做专辑

​&#x1f308;个人主页&#xff1a;前端青山 &#x1f525;系列专栏&#xff1a;AI篇 &#x1f516;人终将被年少不可得之物困其一生 依旧青山,本期给大家带来ChatGPT帮我做音乐专辑 嘿&#xff0c;朋友们&#xff01; 想象一下&#xff0c;如果有个超级聪明的机器人能帮你写…

Linux Mac 安装Higress 平替 Spring Cloud Gateway

Linux Mac 安装Higress 平替 Spring Cloud Gateway Higress是什么?传统网关分类Higress定位下载安装包执行安装命令执行脚本 安装成功打开管理界面使用方法configure.shreset.shstartup.shshutdown.shstatus.shlogs.sh Higress官网 Higress是什么? Higress是基于阿里内部的…

java LogUtil输出日志打日志的class文件内具体方法和行号

最近琢磨怎么把日志打的更清晰&#xff0c;方便查找问题&#xff0c;又不需要在每个class内都创建Logger对象&#xff0c;还带上不同的颜色做区分&#xff0c;简直不要太爽。利用堆栈的方向顺序拿到日志的class问题。看效果&#xff0c;直接上代码。 1、demo test 2、输出效果…

将vue项目整合到springboot项目中并在阿里云上运行

第一步&#xff0c;使用springboot中的thymeleaf模板引擎 导入依赖 <!-- thymeleaf 模板 --><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-thymeleaf</artifactId></dependency> 在r…

Golang:数据科学领域中的高性能并发编程新星

文章目录 📖 介绍 📖🏡 演示环境 🏡📒 文章内容 📒📝 并发性能的卓越表现📝 系统级工具的便捷性📝 语言设计的简洁性📝 强类型系统的严格性📝 版本兼容性的稳定性📝 内置工具的全面性⚓️ 相关链接 ⚓️📖 介绍 📖 在数据科学和机器学习的广阔天地…

力扣-回溯法

何为回溯法&#xff1f; 在搜索到某一节点的时候&#xff0c;如果我们发现目前的节点&#xff08;及其子节点&#xff09;并不是需求目标时&#xff0c;我们回退到原来的节点继续搜索&#xff0c;并且把在目前节点修改的状态还原。 记住两个小诀窍&#xff0c;一是按引用传状态…

什么是面向对象编程

什么是面向对象编程&#xff1f;&#xff08;OOP&#xff09; ● 面向对象编程是一种基于对象概念的编程范式&#xff1b;&#xff08;所谓的编程范式&#xff0c;就是代码风格&#xff0c;我们“如何”编写和组织代码&#xff09;&#xff1b; ● 我们使用对象来模拟&#xf…

[C++] STL :stackqueue详解 及 模拟实现

标题&#xff1a;[C] STL &#xff1a;stack&&queue详解 水墨不写bug 目录 &#xff08;一&#xff09;stack简介 &#xff08;二&#xff09;queue简介 &#xff08;三&#xff09;容器适配器 &#xff08;四&#xff09;stack和queue的模拟实现 /*** …

LabVIEW从测试曲线中提取特征值

在LabVIEW中开发用于从测试曲线中提取特征值的功能时&#xff0c;可以考虑以下几点&#xff1a; 数据采集与处理&#xff1a; 确保你能够有效地采集和处理测试曲线数据。这可能涉及使用DAQ模块或其他数据采集设备来获取曲线数据&#xff0c;并在LabVIEW中进行处理和分析。 特…

lvs集群、NAT模式和DR模式、keepalive

目录 lvs集群概念 集群的类型&#xff1a;三种类型 系统可靠性指标 lvs集群中的术语 lvs的工作方式 NAT模式 lvs的工具 算法 实验 数据流向 步骤 一 、调度器配置&#xff08;test1 192.168.233.10&#xff09; 二、RS配置&#xff08;nginx1和nginx2&#xff09;…

Python那些优质可视化工具!

作者&#xff1a;Lty美丽人生 https://blog.csdn.net/weixin_44208569 本次分享10个适用于多个学科的Python数据可视化库&#xff0c;其中有名气很大的也有鲜为人知的&#xff01; 1、matplotlib 两个直方图 matplotlib 是Python可视化程序库的泰斗。经过十几年它任然是Pytho…

王牌站士Ⅴ--mysql9.0发布向量类型糊弄了事

前言 MySQL在本月发布了9.0大版本&#xff0c;作为一个老用户&#xff0c;忍不住关注了一下&#xff0c;简单说下这次大版本更新。 2023年&#xff0c;AI爆火&#xff0c;带动了向量数据库赛道。当下几乎所有主流 DBMS 都已经提供向量数据类型支持 —— MySQL 除外。 大家原…

【vue教程】二. Vue特性原理详解

目录 回顾本章涵盖知识点Vue 实例和选项创建 Vue 实例Vue 实例的选项 Vue 模板语法插值表达式指令v-bindv-modelv-on 自定义指令创建自定义指令在模板中使用自定义指令自定义指令的钩子函数自定义指令的实例演示 指令注册局部注册指令过滤器 数据绑定和响应式原理响应式数据绑定…

【CUDA|CUDNN】安装

every blog every motto: You can do more than you think. https://blog.csdn.net/weixin_39190382?typeblog 0. 前言 显卡驱动安装参考之前的文章 cuda、cudnn 安装 1. cuda 安装 访问https://developer.nvidia.com/cuda-toolkit-archive 选择需要的版本&#xff1a;h…

css实现渐进中嵌套渐进的方法

这是我们想要的实现效果&#xff1a; 思路&#xff1a; 1.有一个底色的背景渐变 2.需要几个小的块级元素做绝对定位通过渐变filter模糊来实现 注意&#xff1a;这里的采用的定位方法&#xff0c;所以在内部的元素一律要使用绝对定位&#xff0c;否则会出现层级的问题&…

面试经验之谈

优质博文&#xff1a;IT-BLOG-CN ​通常面试官会把每一轮面试分为三个环节&#xff1a;① 行为面试 ② 技术面试 ③ 应聘者提问 行为面试环节 面试开始的5~10分钟通常是行为面试的时间&#xff0c;面试官会参照简历和你的自我介绍了解应聘者的过往经验和项目经历。由于面试官…

Hangfire发布托管到iis无法正常执行任务

本文以windowsServer2012R2iis8示例。 当我们设置了一个后台周期性任务后发布到iis&#xff0c;如果出现网站间隔时间较长没有用户去访问&#xff0c;这是iis可能就会自动回收导致Hangfire服务停止&#xff0c;导致我们的后台任务终止执行&#xff0c;直到进来一个请求&#xf…

基于全国产复旦微JFM7K325T+ARM人工智能数据处理平台

复旦微可以配合的ARM平台有&#xff1a;RK3588/TI AM62X/ NXP IMX.8P/飞腾FT2000等。 产品概述 基于PCIE总线架构的高性能数据预处理FMC载板&#xff0c;板卡采用复旦微的JFM7K325T FPGA作为实时处理器&#xff0c;实现各个接口之间的互联。该板卡可以实现100%国产化。 板卡具…

window下tqdm进度条

原代码是linux下运行&#xff0c;修改后可在window下运行。 #ifndef TQDM_H #define TQDM_H#include <chrono> #include <ctime> #include <numeric> #include <ios> #include <string> #include <cstdlib> #include <iostream> #i…