CentOS7编译安装NFS

Posted relax1949

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS7编译安装NFS相关的知识,希望对你有一定的参考价值。

系统版本:CentOS Linux release 7.5.1804 (Core)

nfs版本:nfs-utils-2.3.2

 

安装前先关闭防火墙和selinux

systemctl stop firewalld

setenforce 0

 

1、先解决依赖关系

# yum -y install libwrap libwrap-devel libtirpc libtirpc-devel libevent libevent-devel device-mapper-event-libs device-mapper-libs libdevmapper libdevmapper-devel device-mapper-devel libblkid libblkid-devel dh-autoreconf rpcbind redhat-lsb initscripts libnfs-utils

 

2、下载软件、解压并编译

# https://excellmedia.dl.sourceforge.net/project/nfs/nfs-utils/2.3.2/nfs-utils-2.3.2.tar.gz

# tar -zxvf nfs-utils-2.3.2.tar.gz

# cd nfs-utils-2.3.2
# sed -i ‘/strict-prototypes/d‘ configure.ac
# autoreconf -fiv

# ./configure --prefix=/data/server/nfs
--sysconfdir=/etc
--sbindir=/usr/sbin
--without-tcp-wrappers
--disable-nfsv4
--disable-gss
 

 

3、

 

 

 

 

 

systemctl start rpcbind
systemctl start nfs-server
systemctl daemon-reload

 

 

 

 












以上是关于CentOS7编译安装NFS的主要内容,如果未能解决你的问题,请参考以下文章

centos7(Linux)部署nginx+HAProxy+nfs

centos7安装nfs挂载

CentOS7 安装NFS服务

Centos7安装配置NFS服务和挂载

centos7安装nfs服务配置

centos7.1安装nfs