(蔡庐强烈推荐)sshfs的安装.pdfVIP

  • 7
  • 0
  • 约4.48千字
  • 约 3页
  • 2017-05-27 发布于河南
  • 举报
(蔡庐强烈推荐)sshfs的安装

(蔡庐强烈推荐 )sshfs的安装 sshfs: How do you install sshfs and fuse? [CentOS/Linux/Redhat] 补补充充:: 官网下载地址:/sshfs.html 挂挂载载命命令令:: sshfs 192.1 8.77.147:/data/mntTest /mnt/test 解释如下: sshfs 要挂载的ip为192.1 8.77.147的服务器:服务器的目录 本地的目录 操作本地目录就相当于操作远 即ip为192.1 8.77.147的服务器的目录 取取消消挂挂载载命命令令:: fusermount -u /mnt/test 解释如下: -u表示取消挂载,即不把本地的文件指向另外一台服务器。 /mnt/test 即要取消本地被挂载的目录。 还还要要注注意意的的是是:: 要挂载的目录即/mnt/test 目录,目录里面不能有任何文件即要为空文件 1 Replies One may wonder what is sshfs and why would you want it? Well simply put, sshfs allows you to mount another server’s filesystem into a folder on your local system which in the background is doing ssh commands and transfers. As a mounted folder, you are able to move about and copy files back and forth as everything was on local server. As you can see this makes it very easy for you to work with files on multiple servers. Note : you only have to do the following installations on the server where you are doing the mounts on. Let us download and install the filesystem framework which is a requirement for sshfs called fuse. wget /sourceforge/fuse/fuse-2.7.4.tar.gz tar zxpfv fuse-*.gz cd fuse* ./configure If you get the following error, you will either have to point to the location of the kernel source or install it if needed. checking kernel source directory... ot found configure: error: *** Please specify the location of the kernel source with *** the --with-kernel=SRCDIR option configure: error: ./configure failed for kernel In our case here, we will be installing the source using yum. yum -y install kernel-devel Once installed, you will have to find out the directory it is installed in ls -l /usr/src/kernels/ total 4.0K drwxr-xr-x 18 root root 4.0K Oct 7 14 :50 2.6.18-92.1.13.el

文档评论(0)

1亿VIP精品文档

相关文档