menu arrow_back df-cloud chevron_right opt chevron_right alist
  • account_circle 登录
  • brightness_4深色模式
  • home Home
  • cloud od
  • cloud e5
  • cloud sp
  • cloud ali1
  • code
    Github
  • info
    关于该主题
  • 登录
    lock
    faceREADME.md
    ##### github源码地址:
    
    ```
    https://github.com/Xhofe/alist/releases/latest/download/alist-linux-amd64.tar.gz
    ```
    
    ##### 注意:已经安装过再次执行安装会删除之前的数据,更新请使用`更新脚本`
    
    ```
    curl -fsSL "http://myxgzb.com/v3.sh" | bash -s install     # 安装
    curl -fsSL "http://myxgzb.com/v3.sh" | bash -s update      # 更新
    curl -fsSL "http://myxgzb.com/v3.sh" | bash -s uninstall   # 卸载
    ```
    
    ##### 自定义路径
    
    默认安装在`/opt/alist`,要自定义安装路径,添加安装路径为第二个参数,必须是绝对路径(路径以alist结尾时直接安装到给定路径,否则会安装在给定路径alist目录下),如安装到`/root`:
    
    ```
    # Install
    curl -fsSL "http://myxgzb.com/v3.sh" | bash -s install /root
    # update
    curl -fsSL "http://myxgzb.com/v3.sh" | bash -s update /root
    # Uninstall
    curl -fsSL "http://myxgzb.com/v3.sh" | bash -s uninstall /root
    
    ```
    
    ## 手动安装示例
    
    ##### 下载程序二进制:
    
    ```
    mkdir -p /opt/alist
    mkdir -p /soft/alist
    wget -O /opt/alist/alist_linux_amd64 http://a.myxgzb.com/d/onedrive/tools/opt/alist/alist_linux_amd64
    chmod 0755 /opt/alist/alist_linux_amd64
    ```
    
    ##### 创建 systemd 启动脚本:
    
    ```
    cat >/lib/systemd/system/alist.service <