[root@iz2zeba0uq29fqh3j5avvvz cdr-csv]#mount -t nfs 10.10.10.10:/usr/local/freeswitch/log/cdr-csv /usr/local/freeswitch/log/cdr-csv/
如下报错:
mount.nfs: access denied by server while mounting 10.10.17.37:/usr/local/freeswitch/log/cdr-csv
二、解决过程
1、首先查看服务端messenge日志
[root@SWCH-FS ~]# tail -f /var/log/messages
有如下报错:
May 19 11:54:55 SWCH-FS rpc.mountd[4757]: refused mount request from IP for /usr/local/freeswitch/log/cdr-csv (/usr/local/freeswitch/log/cdr-csv): unmatched host
2、修改配置文件/etc/exports,添加如下内容:
/usr/local/freeswitch/log/cdr-csv 10.10.10.10(rw,sync,no_root_squash)
注:IP地址为客户端ip
3、平滑重启nfs
systemctl reload nfs
4、再次挂载,成功挂载。