zoukankan      html  css  js  c++  java
  • linux下lz4解压缩遇到的那些事儿

    一.Debian系列:Debian、Ubuntu等
    1.1 kali下修改apt-get源:
      vim /etc/apt/sources.list
          deb http://mirrors.ustc.edu.cn/kali sana main non-free contrib
          deb http://mirrors.ustc.edu.cn/kali-security/ sana/updates main contrib non-free
          deb-src http://mirrors.ustc.edu.cn/kali-security/ sana/updates main contrib non-free

    1.2 Ubuntu下修改apt-get源:

      vi /etc/apt/sources.list
      :%s/us.archive/cn.archive/g         #将其中的us.archive 全部替换为 cn.archive

    2.安装lz4:
      apt-get update
      apt-get install liblz4-tool

    3.解lz4文件:
      lz4 -d 文件名

    二.RedHat系列:Redhat、Centos、Fedora等
    1.遇到: Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
               vi /etc/yum.repos.d/epel.repo
       修改为: baseurl
                  #mirrorlist

    2.修改yum源(好处利用国内资源下载更快):
        cd /etc/yum.repos.d                                    
        mv CentOS-Base.repo CentOS-Base.repo.bk                                            #备份
        wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo      #下载阿里云的yum
        yum clean all                                        
        yum makecache                                                                   #使yum生效


    3.第三方源EPEL:
        rpm -q epel-release            #检查EPEL是否安装
        yum install epel-release        #安装EPEL

    4.安装lz4(其他包一样):
        yum install lz4
        yum install lz4-devel

    5.解lz4文件:
        lz4 -d 文件名

    *关于xshell连接:关防火墙service iptables stop,开ssh服务service sshd start,用户配密码才能登

  • 相关阅读:
    在tableViewCell上添加button导致按钮没有点击效果和不能滑动
    jquery添加自定义校验
    json转化对特殊字段的处理
    模仿spring authentication-provider 自己写登录人管理
    hibernate自动建表
    java 上传文件
    java实现赋值excel模板,并在新文件中写入数据,并且下载
    实现图片预览
    ajax+jquery实现父页面弹出子页面,选择提交后给父页面传值
    上传附件,压缩并加密
  • 原文地址:https://www.cnblogs.com/Dleo/p/5758350.html
Copyright © 2011-2022 走看看