localhost를 ping 할 수 없습니다.
ashish@ashishk:~$ ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
^C
--- localhost ping statistics ---
16 packets transmitted, 0 received, 100% packet loss, time 15003ms
다음은 내 호스트 파일입니다.
ashish@ashishk:~/chef-repo/.chef$ cat /etc/hosts
127.0.0.1 localhost
115.112.95.170 ashishk.example.com chef
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
솔루션 :
ashish @ ashishk : ~ / chef-repo / .chef $ vim /etc/sysctl.conf
# Ignore Directed pings
net.ipv4.icmp_echo_ignore_all = 1
0으로 만들었습니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다