1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-02 07:06:44 +02:00
seaweedfs/weed/command/weedfuse
2019-05-11 01:17:55 -07:00
..
README.md weedfuse: adapt to fstab command line pattern 2019-05-11 01:17:55 -07:00
weedfuse.go weedfuse: adapt to fstab command line pattern 2019-05-11 01:17:55 -07:00

Mount the SeaweedFS via FUSE

Mount by fstab

$ # on linux
$ sudo apt-get install fuse
$ sudo echo 'user_allow_other' >> /etc/fuse.conf
$ sudo mv weedfuse /sbin/mount.weedfuse

$ # on Mac
$ sudo mv weedfuse /sbin/mount_weedfuse

On both OS X and Linux, you can add one of the entries to your /etc/fstab file like the following:

# mount the whole SeaweedFS
localhost:8888/    /home/some/mount/folder  weedfuse

# mount the SeaweedFS sub folder
localhost:8888/sub/dir    /home/some/mount/folder  weedfuse

# mount the SeaweedFS sub folder with some options
localhost:8888/sub/dir    /home/some/mount/folder  weedfuse  user

To verify it can work, try this command

$ sudo mount -av

...

/home/some/mount/folder           : successfully mounted

If you see successfully mounted, try to access the mounted folder and verify everything works.

To debug, run these:


$ weedfuse -foreground localhost:8888/ /home/some/mount/folder

To unmount the folder:


$ sudo umount /home/some/mount/folder