vi /etc/sysconfig/nfs
添加:
RQUOTAD_PORT=3001
MOUNTD_PORT=3002
STATD_PORT=3003
这里加入lock_tcp和lock_udp之后不能,看注释发现:
To set lockd kernel module parameters please see
/etc/modprobe.d/lockd.conf
修改
options lockd nlm_tcpport=3004
options lockd nlm_udpport=3004
restart nfs rpcbind