为网卡添加一个本网段IPV4地址,x.x.x.123,并启用,然后在阿里镜像站GUN里,下载wget2的包
[root@localhost ~]# nmcli connection modify ens160 ipv4.method manual ipv4.addresses 192.168.23.123/24 ipv4.gateway 192.168.23.2 ipv4.dns 114.114.114.114 autoconnect yes
[root@localhost ~]# nmcli connection up ens160
Socket error Event: 32 Error: 10053.
Connection closing...Socket close.
Connection closed by foreign host.
Disconnected from remote host(192.168.23.130:22) at 15:42:38.
Type `help' to learn how to use Xshell prompt.
[C:\~]$ ssh root@192.168.23.123
Connecting to 192.168.23.123:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Activate the web console with: systemctl enable --now cockpit.socket
Register this system with Red Hat Insights: insights-client --register
Create an account or view all your systems at https://red.ht/insights-dashboard
Last login: Thu Mar 23 15:40:14 2023 from 192.168.23.1
[root@localhost ~]# ping www.baidu.com
PING www.a.shifen.com (180.101.50.242) 56(84) bytes of data.
64 bytes from 180.101.50.242 (180.101.50.242): icmp_seq=1 ttl=128 time=10.6 ms
64 bytes from 180.101.50.242 (180.101.50.242): icmp_seq=2 ttl=128 time=18.0 ms
64 bytes from 180.101.50.242 (180.101.50.242): icmp_seq=3 ttl=128 time=12.5 ms
64 bytes from 180.101.50.242 (180.101.50.242): icmp_seq=4 ttl=128 time=13.9 ms
64 bytes from 180.101.50.242 (180.101.50.242): icmp_seq=5 ttl=128 time=13.6 ms
^C
--- www.a.shifen.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4007ms
rtt min/avg/max/mdev = 10.578/13.722/18.041/2.453 ms
2023-03-23 16:01:27 (615 KB/s) - ‘index.html’ saved [254400]
[root@localhost ~]# mkdir /test
[root@localhost ~]# cd /test/
[root@localhost test]# ls
[root@localhost test]# wget https://mirrors.aliyun.com/gnu/wget/wget2-latest.tar.gz
--2023-03-25 10:14:21-- https://mirrors.aliyun.com/gnu/wget/wget2-latest.tar.gz
Resolving mirrors.aliyun.com (mirrors.aliyun.com)... 180.101.199.214, 180.101.199.213, 180.101.199.212, ...
Connecting to mirrors.aliyun.com (mirrors.aliyun.com)|180.101.199.214|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3780748 (3.6M) [application/octet-stream]
Saving to: ‘wget2-latest.tar.gz’
wget2-latest. 100% 3.61M 1.25MB/s in 2.9s
2023-03-25 10:14:24 (1.25 MB/s) - ‘wget2-latest.tar.gz’ saved [3780748/3780748]
[root@localhost test]# ls
wget2-latest.tar.gz