有人有原始的..默认主机文件、解析文件..和网络文件吗?
请有人帮我把这些恢复正常,这样我就可以安装一个网络服务器了。我累了,只是想安装一个网络服务器。
答案1
在 shell 上发出命令dpkg-reconfigure -a
将重新配置您的大部分系统。这也会恢复大部分配置文件。有关您的网络和名称服务器的文件并不是真正通用的,因此您应该使用适合您的设置的文件,而不是其他人的设置。
然而,以下是我的配置文件..
/etc/resolv.conf
# this nameserver is running by Google.
# Change IP to your local router or ISP's dns server for improved privacy(disputed)
nameserver 8.8.8.8
/etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
/etc/网络/接口
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# DHCP use
# comment out the following line to use static IP settings
auto eth0
iface eth0 inet dhcp
# static IP use. uncomment to use
#iface eth0 inet static
# address 192.168.1.90
# netmask 255.255.255.0
# network 192.168.1.90
# broadcast 192.168.1.255
# gateway 192.168.1.1