zip无法解压
使用unzip解压,提示
[root@iZ28g3behi3Z html]# unzip /var/www/html/deyizhonggong.zip
Archive: /var/www/html/deyizhonggong.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /var/www/html/deyizhonggong.zip or
/var/www/html/deyizhonggong.zip.zip, and cannot find /var/www/html/deyizhonggong.zip.ZIP, period.
Archive: /var/www/html/deyizhonggong.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /var/www/html/deyizhonggong.zip or
/var/www/html/deyizhonggong.zip.zip, and cannot find /var/www/html/deyizhonggong.zip.ZIP, period.
仔细看了下,用的文件根本不是zip格式的,是rar,用
rar x deyizhonggong.zip 解压
压缩目录,使用命令zip ceshi.zip /var/www/html/wp-admin/* 得到的文件永恒是
![](https://images2015.cnblogs.com/blog/946146/201604/946146-20160427224438533-1143083327.jpg)
解决方法:用zip压缩目录要加上 -r 参数
zip -r ceshi.zip /var/www/html/wp-admin/
很惭愧,只做了一点微小的工作