0%

Centos 编译安装 zfs

  • 安装依赖

    1
    2
    3
    4
    yum groupinstall "Development Tools"
    yum install zlib-devel libuuid-devel libattr-devel libblkid-devel libselinux-devel libudev-devel
    yum install parted lsscsi ksh openssl-devel elfutils-libelf-devel
    yum install kernel-devel-$(uname -r)
  • 这里下载源代码并解压

    1
    wget https://github.com/zfsonlinux/zfs/releases/download/zfs-0.8.1/zfs-0.8.1.tar.gz && tar zxf zfs-0.8.1.tar.gz
  • 编译安装

    1
    2
    3
    4
    5
    cd ../zfs-0.8.1
    sh autogen.sh
    ./configure
    make -s -j$(nproc)
    make install
  • 重启系统

本文到此结束  感谢您的阅读