CentOS7.x安装qBittorrent

  1. 安装程序

    yum install qbittorrent-nox -y
    
  2. 生成配置

    useradd www
    su www
    qbittorrent-nox
    # 输入 y
    Ctrl+C
    
  3. 修改配置

    vim ~/.config/qBittorrent/qBittorrent.conf
    
    [LegalNotice]
    Accepted=true
    
    [Network]
    Cookies=@Invalid()
    
    [Preferences]
    WebUI\Port=8080
    WebUI\Username=root
    WebUI\Password_ha1=@ByteArray(11111111111111111111111111111111)
    
    ESC
    :wq
    
  4. 启动控制

    useradd www
    cd /etc/systemd/system
    vim qbitt.service
    
    [Unit]
    Description=Start qbittorrent on boot.
    After=default.target network.target
    
    [Service]
    User=www
    Group=www
    Type=forking
    ExecStart=/usr/bin/qbittorrent-nox -d
    PrivateTmp=true
    
    [Install]
    WantedBy=multi-user.target
    
    ESC
    :wq
    
    # 更新systemd
    systemctl daemon-reload
    systemctl enable qbitt
    systemctl start qbitt
    
  5. 使用Nginx代理

    vim xxx/nginx.conf
    
    server {
        listen       80;
        server_name  qbit.so1234.top;
        location / {
            proxy_pass          http://127.0.0.1:8080;
        }
    }
    
    ESC
    :wq
    
    nginx -t
    nginx -s reload
    
Copyright © 豆包嘿嘿~ 2012-∞ 冀ICP备17033181号 all right reserved,powered by Gitbook修订: 21-06-18 13:18

results matching ""

    No results matching ""