Home avatar

Lixp 的 Blog

部署aria2 Pro服务

docker run -d \
    --name aria2-pro \
    --restart unless-stopped \
    --log-opt max-size=50m \
    --network host \
    -e RPC_SECRET="密码" \
    -e RPC_PORT=6800 \
    -e LISTEN_PORT=6888 \
    -v $PWD/aria2/config:/config \
    -v $PWD/aria2/downloads:/downloads \
    p3terx/aria2-pro

Zerotier安装

# 安装
curl -s https://install.zerotier.com | sudo bash

# 设置 zerotier 开机自启
systemctl enable zerotier-one.service

# 启动 zerotier 服务
systemctl start zerotier-one.service

# 加入网络
zerotier-cli join xxxxx

# 加入中继
zerotier-cli orbit xxxx xxxx

首先:

Systemd管理服务

# 启动服务
sudo systemctl start docker

# 停止服务
sudo systemctl stop docker  

# 开机启动服务
sudo systemctl enable docker

# 禁止开机启动服务
sudo systemctl disable docker

Netcat传输文件

# 接受端
nc -l -p 1234 > file.tar.gz

# 发送端
nc 192.168.1.1 1234 < file.tar.gz

适用于scp/rsync不能用的情况