Linux共享文件夹及文件夹同步

题外话

  1. centos上的systemctl命令在最新的Ubuntu上用update-rc.d代替

共享文件夹

** 建议使用nfs,以下为安装步骤:**

  1. 安装rpc服务和nfs服务
  • centos
yum install rpcbind
systemctl satrt rpcbind
systemctl enable rpcbind
yum install nfs-tools
systemctl satrt nfs
systemctl enable nfs
  1. 编辑配置文件
image
  1. 在客户机挂载
mount 192.168.10.110:/nfs_data /data

持久化配置

image

文件夹同步

参考:syncthing

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容