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‘