设置时区
dpkg-reconfigure tzdata
更新apt包索引
sudo apt update
安装fuse3
sudo apt install fuse3
sudo apt install libfuse3-dev
安装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
配置Aria2下载完成自动上传rclone
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...