CentOS7编译安装NFS

匿名 (未验证) 提交于 2019-12-03 00:39:02

系统版本: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

原文:https://www.cnblogs.com/relax1949/p/9261081.html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!