zoukankan      html  css  js  c++  java
  • 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.
    仔细看了下,用的文件根本不是zip格式的,是rar,用
    rar x deyizhonggong.zip 解压
    压缩目录,使用命令zip ceshi.zip /var/www/html/wp-admin/* 得到的文件永恒是
    解决方法:用zip压缩目录要加上 -r 参数
    zip -r ceshi.zip /var/www/html/wp-admin/
  • 相关阅读:
    单一职责原则
    算法的设计与分析 -----图 (1)
    交换机
    子网掩码
    IP地址分类+网络号
    网络参考模型与5G协议
    什么是5G
    RxJAVA
    EventBus3.0的学习
    ButterKnife+Zelezny插件
  • 原文地址:https://www.cnblogs.com/wuxie1989/p/5440778.html
Copyright © 2011-2022 走看看