一台全新Ubuntu vps工作流

Blog11个月前更新 VoxHuang
243 0 0

设置时区

dpkg-reconfigure tzdata

更新apt包索引

sudo apt update

安装fuse3

sudo apt install fuse3
sudo apt install libfuse3-dev

安装alist

Alist官方文档

安装rclone

curl https://rclone.org/install.sh | sudo bash

设置rclone

rclone config

新建alist文件夹

mkdir /mnt/alist

设置rclone开机自启动

VPS目录 /etc/systemd/system ,在里面新建一个名为 rclone.service 的文件并编辑

cat > /etc/systemd/system/rclone.service <<EOF
[Unit]
Description=Rclone
AssertPathIsDirectory=/mnt/alist
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/bin/rclone mount alist: /mnt/alist \
--use-mmap \
--umask 0000 \
--default-permissions \
--allow-non-empty \
--allow-other \
--cache-dir=/home/cache \
--dir-cache-time 24h \
--vfs-cache-mode full \
--buffer-size 512M \
--vfs-read-chunk-size 16M \
--vfs-read-chunk-size-limit 64M \
--vfs-cache-max-size 10G
ExecStop=/bin/fusermount -u /mnt/alist
Restart=on-abort
User=root

[Install]
WantedBy=default.target
EOF

启动 rclone 服务

systemctl start rclone

运行开机启动

systemctl enable rclone

查看挂载状态

df -h

安装docker

curl -fsSL https://get.docker.com | bash -s docker

开机启动

cat > /etc/systemd/system/docker.service <<EOF
[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target firewalld.service
Wants=network-online.target

[Service]
Type=notify
ExecStart=/usr/bin/dockerd
ExecReload=/bin/kill -s HUP $MAINPID
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
TimeoutStartSec=0
Delegate=yes
KillMode=process
Restart=on-failure
StartLimitBurst=3
StartLimitInterval=60s

[Install]
WantedBy=multi-user.target
EOF
systemctl enable docker

启动docker

sudo systemctl start docker

fast面板

docker run -d \
--restart=always \
--name fast \
-p 9000:8081 \
-d -v /var/run/docker.sock:/var/run/docker.sock \
wangbinxingkong/fast

安装Aria2

P3TERX/aria2.sh

配置Aria2下载完成自动上传rclone

Aria2 + Rclone 实现 OneDrive、Google Drive 等网盘离线下载

© 版权声明

相关文章

暂无评论

暂无评论...