赞
踩
wget https://mirrors.huaweicloud.com/openeuler/openEuler-20.03-LTS-SP3/source/Packages/nfs-utils-2.5.1-4.oe1.src.rpm
rpm -ivh nfs-utils-2.5.1-4.oe1.src.rpm
vi rpmbuild/SPECS/nfs-utils.spec
软件包名称为:compat-nfs-utils
Package名称(Pname)为:nfs-utils
修改编译用的“%{name}”改为“%{Pname}”
检查、修改Requires信息
mv rpmbuild/SPECS/nfs-utils.spec rpmbuild/SPECS/compat-nfs-utils.spec
yum install rpm-build -y
yum install autoconf automake device-mapper-devel krb5-devel libcap-devel libevent-devel libtirpc-devel libtool openldap-devel python3-devel rpcgen sqlite-devel tcp_wrappers-devel -y
rpmbuild -bb rpmbuild/SPECS/compat-nfs-utils.spec
yum install gssproxy quota rpcbind -y
rpm -ivh rpmbuild/RPMS/aarch64/compat-nfs-utils-2.5.1-4.ky10.aarch64.rpm rpmbuild/RPMS/aarch64/compat-nfs-utils-help-2.5.1-4.ky10.aarch64.rpm
systemctl start nfs
cat > /etc/exports << EOF
/root *(rw,sync,no_root_squash)
EOF
exportfs -r
showmount -e 127.0.0.1
cat > /etc/hosts.deny << EOF
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
showmount:ALL
EOF
systemctl restart nfs
另外一台设备(192.168.137.1)
showmount -e 192.168.137.102
cat > /etc/hosts.allow <<EOF
portmap:192.168.137.1
lockd:192.168.137.1
rquotad:192.168.137.1
mountd:192.168.137.1
statd:192.168.137.1
EOF
另一台设备(192.168.137.1)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。