1、有两台业务服务器同时上传文件,需要将文件共享到另外一台文件服务器上;
首先,参考:https://www.cnblogs.com/merely/p/10793877.html
相当到位;
自身情况:
挂载命令: mount 10.74.68.17:/data/nfs-share /usr/local/scm/upload 卸载命令: umount /usr/local/scm/upload 设置开机启动: 如果需要设置开机挂载,在/etc/fstab添加一行配置即可: 10.74.68.17:/data/nfs-share /usr/local/scm/upload nfs rw,tcp,intr 0 1 systemctl enable rpcbind.service systemctl enable nfs-server.service