这个报错的原因是要压缩的文件是个符号链接文件,但指向的文件不存在,
解决方法是加上-y参数,意思是store symbolic links as the link instead of the referenced file
,也就是保存符号链接。
zip -r -y test.zip test/
参考:“zip warning: name not matched” while compressing a directory - Unix & Linux Stack Exchange