End-of-central-directory signature not found(转)

Reproduce

1, 从github上下载zip文件

curl -O https://github.com/Song2017/Resource/blob/master/Work/JMeter/jmeter.wordpress.zip
2, 本地解压zip文件

unzip jmeter.wordpress.zip
3, error 出现

Reason

jmeter.wordpress.zip其实只是一个网页文件,并不是真正的zip文件

song@test MINGW64 /c/temp
$ file jmeter.wordpress.zip
jmeter.wordpress.zip: HTML document, UTF-8 Unicode text, with very long lines

Solution:

github文件地址后加上?raw=true

‘curl -L’ + ‘>’ 将下载文件重定向到jm.zip

转载于:https://blog.51cto.com/6658943/2164984

你可能感兴趣的:(End-of-central-directory signature not found(转))