标签:its div class star rpcbind 关闭防火墙 figure sed project
系统版本: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
标签:its div class star rpcbind 关闭防火墙 figure sed project
原文地址:https://www.cnblogs.com/relax1949/p/9261081.html