admin 发布的文章

安装

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

常规启动

rclone serve webdav --addr :8889 /simonpool --cache-dir /cache --user simon --pass simon  --no-checksum  --no-modtime  --no-seek

pm2启动webdav

pm2 start --name webdav rclone  -- serve webdav --addr :8889 /simonpool --cache-dir /cache  --user simon --pass simon  --no-checksum  --no-modtime

pm2启动http服务

pm2 start --name http rclone -- serve http --addr :8888 /simonpool

find ./ -name "*.tmp" -type f -print -exec rm -i {} \;
#解压
7zr x manager.7z -r -o /home/xx
#压缩
7zr a -t7z -r ../test.7z ./*

压缩直传远程

tar cjvf - /etc | ssh user@remoteip "cat > /home/user/etc.tar.bz"

压缩直传并远程解压

tar cjvf - /etc | ssh user@hostname "tar xvjf - --keep-newer-files"

wget -N --no-check-certificate "https://github.000060000.xyz/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh

卸载原内核
wget -N --no-check-certificate "https://github.000060000.xyz/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

生成/etc/wireguard/wg0.conf,可以从代理服务器获取

apt update
apt install wireguard
apt install resolvconf
wg-quick up wg0

开机启动

systemctl enable wg-quick@wg0.service
systemctl daemon-reload
systemctl start wg-quick@wg0

移除开机启动

systemctl stop wg-quick@wg0
systemctl disable wg-quick@wg0.service
rm -i /etc/systemd/system/wg-quick@wg0*
systemctl daemon-reload
systemctl reset-failed

参考
https://gobomb.github.io/post/wireguard-notes/