我从微软商店买了kali linux。
我想运行./ngrok authtoken <my_authtoken>
但是得到了-bash: ./ngrok: cannot execute binary file: Exec format error
所以我尝试了chmod +x ./ngrok authtoken <my_authtoken>和sudo chmod +x ./ngrok authtoken <my_authtoken>
但不管怎样我都能得到chmod: cannot access 'authtoken': No such file or directory chmod: cannot access '<my_authtoken>'
我该怎么办?我真的需要运行./ngrok authtoken <my_authtoken>
附言:我想使用blackeye,当我选择下载Ngrok的号码时
编辑1:我从https://ngrok.com/download下载了另一个版本,我在blackeye目录中删除了以前的Ngrok并解压缩了新的。现在我得到了bash: ./ngrok: Permission denied
编辑2:已经有12天了,没有准确的答案,我猜我得拿到真正的Kali Linux,问题出在windows版本上。
发布于 2021-03-29 02:25:25
总是在谷歌上搜索并尝试在你发布问题之前找到答案。
您的第一个错误(-bash: ./ngrok: cannot execute binary file: Exec format error)可能是因为您试图运行为x86或ARM (请参阅https://askubuntu.com/a/648558)等不同架构设计的程序。
您的第二个错误(chmod: cannot access 'authtoken': No such file or directory chmod: cannot access '<my_authtoken>')是因为您试图从chmod中运行命令,您必须chmod文件,然后运行它。
第三个错误(bash: ./ngrok: Permission denied)是因为您需要将文件chmod转换为可执行文件,然后才能运行它,并且不需要使用sudo,除非chmod返回chmod: cannot access '<yourfile>': Permission denied,否则您应该使用sudo。
你应该运行的是:
curl -L https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o ngrok.zip
unzip ngrok.zip
chmod +x ngrok
./ngrok authtoken <myauthtoken>https://stackoverflow.com/questions/66721534
复制相似问题