dump

说明:sshfs可以帮助本地mac访问虚拟机上的共享文件夹,从而操作虚拟机上的文件夹非常方便

1、安装sshfs

sudo port install sshfs

2、使用,指定远程目录,到本地某一目录share

sshfs root@10.0.6.**:/home/www/blogApi ./

3、取消挂载,当需要取消挂载时,使用:fusermount -u share_path_dir 并不成功,提示fusermount命令找不到,使用umount share_path_dir即可

umount share

此处参考:https://www.jianshu.com/p/31205b26deff

4、当发现再次进入目录报错,或者取消挂载umount dir失败时,需要杀掉相应进程:
根据名称查询进程

pgrep -lf sshfs

杀死进程

pkill -9 sshfs

5、当发现share文件夹的权限所有组,所有者不对时,修改

chown -R admin:admin share

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-04
  • 2021-11-24
  • 2021-08-26
  • 2021-08-20
  • 2021-12-26
  • 2021-11-17
猜你喜欢
  • 2022-01-08
  • 2021-04-11
  • 2021-06-20
  • 2022-01-08
  • 2021-12-14
  • 2021-12-18
相关资源
相似解决方案