您的位置:首页 > 运维架构

cygwin ping: socket: Operation not permitted

2016-10-30 02:08 393 查看

cygwin ping: socket: Operation not permitted

cygwin执行ping命令,得到如下输出:

$ ping google.com

ping: socket: Operation not permitted

这是因为cygwin的ping需要以管理员的身份运行。可以在cygwin的命令行快捷方式(Cygwin64 Terminal)点击右键属性
Properties
>>
Shortcut
>>
Advanced...
>> 选中
Run as administrator
,这样下次执行命令时就不会出现上述问题了。

$ ping google.com

PING 127.8.0.1 (127.8.0.1): 56 data bytes

64 bytes from 127.8.0.1: icmp_seq=0 ttl=128 time=0 ms

64 bytes from 127.8.0.1: icmp_seq=1 ttl=128 time=0 ms

64 bytes from 127.8.0.1: icmp_seq=2 ttl=128 time=0 ms

参考文档:

1. Larry Hall (Cygwin) - Re: ping “Operation not permitted” on Windows 7
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: