gpt4 book ai didi

linux - 缺少 127.0.0.1(环回地址)

转载 作者:太空宇宙 更新时间:2023-11-04 03:41:42 24 4
gpt4 key购买 nike

Ubuntu Linux,14.04(DigitalOcean)

$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 04:01:1f:4c:XX:XX
inet addr:128.199.XXX.XXX Bcast:128.199.XXX.255 Mask:255.255.192.0
inet6 addr: fe80::601:1fff:XXXX:XXX/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1565 errors:0 dropped:0 overruns:0 frame:0
TX packets:1603 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:228014 (228.0 KB) TX bytes:260483 (260.4 KB)

lo Link encap:Local Loopback
LOOPBACK MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

我在环回中找不到 127.0.0.1。

我可以恢复 127.0.0.1 吗?

$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.

长时间没有回复。

$ cat /etc/network/interfaces
# This file describes the network interfaces available on your
# system and how to activate them. For more information, see
# interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 128.199.XXX.XXX
netmask 255.255.XXX.0
gateway 128.199.XXX.1
dns-nameservers 8.8.4.4 8.8.8.8 209.244.0.3

/etc/网络/接口(interface)。这是默认的。

最佳答案

谢谢,已解决。

sudo apt-get update
sudo dpkg --configure -a
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo reboot now

$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.031 ms

关于linux - 缺少 127.0.0.1(环回地址),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29386320/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com