VPS搭建EMBY和挂载Google Drive Part2
1、安装rclonecurl https://rclone.org/install.sh | sudo bash2、配置rclone config3.挂载mkdir -p /home/gdrive/usr/bin/rclone mount gd: /home/gdrive \--umask 0000 \--default-permissions \--allow-non-empty \--allo
1、安装rclone
curl https://rclone.org/install.sh | sudo bash
2、配置
rclone config
3.挂载
mkdir -p /home/gdrive
/usr/bin/rclone mount gd: /home/gdrive \
--umask 0000 \
--default-permissions \
--allow-non-empty \
--allow-other \
--buffer-size 32M \
--dir-cache-time 12h \
--vfs-read-chunk-size 64M \
--vfs-read-chunk-size-limit 1G &
——————————
4、查看挂载
df -h
5、自动挂载
cat > /etc/systemd/system/rclone.service <<EOF
[Unit]
Description=Rclone
AssertPathIsDirectory=LocalFolder
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount emby: /home/gdrive \
--umask 0000 \
--default-permissions \
--allow-non-empty \
--allow-other \
--buffer-size 32M \
--dir-cache-time 12h \
--vfs-read-chunk-size 64M \
--vfs-read-chunk-size-limit 1G
ExecStop=/bin/fusermount -u LocalFolder
Restart=on-abort
User=root
[Install]
WantedBy=default.target
EOF
6、设置启动
systemctl start rclone
7、开启启动
systemctl enable rclone
8、安装bbrplus 这里和之前搭建SSR之类使用BBR加速一样 不赘述
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
9、虚拟内存
wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh
更多推荐
所有评论(0)