同步操作将从 Juicedata/JuiceFS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
This is a guide about how to mount JuiceFS automatically at boot.
Copy juicefs
as /sbin/mount.juicefs
, then edit /etc/fstab
with following line:
<REDIS-URL> <MOUNTPOINT> juicefs _netdev[,<MOUNT-OPTIONS>] 0 0
The format of <REDIS-URL>
is redis://<user>:<password>@<host>:<port>/<db>
, e.g. redis://localhost:6379/1
. And replace <MOUNTPOINT>
with specific path you wanna mount JuiceFS to, e.g. /jfs
. If you need set mount options, replace [,<MOUNT-OPTIONS>]
with comma separated options list. The following line is an example:
redis://localhost:6379/1 /jfs juicefs _netdev,max-uploads=50,writeback,cache-size=2048 0 0
Note: By default, CentOS 6 will NOT mount network file system after boot, run following command to enable it:
$ sudo chkconfig --add netfs
Create a file named io.juicefs.<NAME>.plist
under ~/Library/LaunchAgents
. Replace <NAME>
with JuiceFS volume name. Add following contents to the file (again, replace NAME
, PATH-TO-JUICEFS
, REDIS-URL
and MOUNTPOINT
with appropriate value):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>io.juicefs.NAME</string>
<key>ProgramArguments</key>
<array>
<string>PATH-TO-JUICEFS</string>
<string>mount</string>
<string>REDIS-URL</string>
<string>MOUNTPOINT</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Use following commands to load the file created in the previous step and test whether the loading is successful. Please ensure Redis server is already running.
$ launchctl load ~/Library/LaunchAgents/io.juicefs.<NAME>.plist
$ launchctl start ~/Library/LaunchAgents/io.juicefs.<NAME>
$ ls <MOUNTPOINT>
If mount failed, you can add following configuration to io.juicefs.<NAME>.plist
file for debug purpose:
<key>StandardOutPath</key>
<string>/tmp/juicefs.out</string>
<key>StandardErrorPath</key>
<string>/tmp/juicefs.err</string>
Use following commands to reload the latest configuration and inspect the output:
$ launchctl unload ~/Library/LaunchAgents/io.juicefs.<NAME>.plist
$ launchctl load ~/Library/LaunchAgents/io.juicefs.<NAME>.plist
$ cat /tmp/juicefs.out
$ cat /tmp/juicefs.err
If you install Redis server by Homebrew, you could use following command to start it at boot:
$ brew services start redis
Then add following configuration to io.juicefs.<NAME>.plist
file for ensure Redis server is loaded:
<key>KeepAlive</key>
<dict>
<key>OtherJobEnabled</key>
<string>homebrew.mxcl.redis</string>
</dict>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。