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 start nfs
      systemctl enable nfs
  1. 编辑配置文件
    file

  2. 在客户机挂载

    mount 192.168.10.110:/nfs_data /data
  3. 持久化配置
    编辑配置文件/etc/fstab,添加

    192.168.10.110:/nfs_data  /data  nfs defaults,_netdev  0  0

文件夹同步

参考:syncthing
简单写下操作步骤:

  1. 安装
    apt update
    apt install syncthing
    cp  /usr/lib/systemd/user/syncthing.service  /etc/systemd/system
    systemctl daemon-reload
    systemctl start syncthing@<your_username>
    systemctl enable syncthing@<your_username>
  2. 配置文件在
    ~/.config/syncthing/config.xml
暂无评论

发送评论 编辑评论

|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇