yum install iptables-services wget vim lrzsz git lsof unzip curl net-tools epel-release
add-apt-repository ppa:qbittorrent-team/qbittorrent-stable
yum install qbittorrent-nox
vim /etc/systemd/system/qbittorrent.service
[Unit] Description=qBittorrent Daemon Service After=network.target [Service] User=root ExecStart=/usr/bin/qbittorrent-nox ExecStop=/usr/bin/killall -w qbittorrent-nox [Install] WantedBy=multi-user.target
systemctl daemon-reload
systemctl start qbittorrent
systemctl enable qbittorrent
systemctl status qbittorrent
查看我们新加硬盘得位置 sudo fdisk –list
Disk /dev/nvme1n1: 6.84 TiB, 7500000000000 bytes, 14648437500 sectors
查看我们得系统文件得格式 df -T
/dev/root ext4 8065444 1530748 6518312 20%
mkfs.ext4 /dev/nvme1n1
mkdir /t mount /dev/nvme1n1 /t
df -hl
curl -O https://nc.qdhiker.com/s/7zDYfq7R5aJJwHN/download/PT.sh
wget -N --no-check-certificate -q -O PT.sh "https://nc.qdhiker.com/s/7zDYfq7R5aJJwHN/download/PT.sh" && chmod +x PT.sh && bash PT.sh
#!/bin/sh
sed -i ‘s/^#*PermitRootLogin.*$/PermitRootLogin yes/g’ /etc/ssh/sshd_config
sed -i ‘s/^#*PasswordAuthentication.*$/PasswordAuthentication yes/g’ /etc/ssh/sshd_config
systemctl restart sshdapt update
apt -y install vim net-tools lrzsz software-properties-common
add-apt-repository -y ppa:qbittorrent-team/qbittorrent-stable
apt update
apt -y install qbittorrent-nox
cat <<EOF> /etc/systemd/system/qbittorrent.service
[Unit]
Description=qBittorrent Daemon Service
After=network.target[Service]
User=root
ExecStart=/usr/bin/qbittorrent-nox
ExecStop=/usr/bin/killall -w qbittorrent-nox[Install]
WantedBy=multi-user.target
EOFsystemctl daemon-reload
systemctl start qbittorrent
systemctl enable qbittorrent
systemctl status qbittorrentmkfs.ext4 /dev/nvme1n1
mkdir /t
mount /dev/nvme1n1 /t