---
title: "Arch 安裝BT面板"
id: "2923"
type: "post"
slug: "arch-%e5%ae%89%e8%a3%9dbt%e9%9d%a2%e6%9d%bf"
published_at: "2020-04-22T16:04:55+00:00"
modified_at: "2020-05-19T03:03:27+00:00"
url: "https://seq.ink/all/2923.html"
markdown_url: "https://seq.ink/all/2923.html.md"
excerpt: "先安裝Docker sudo pacman -S docker 創建一個容器 docker run -itd --name ws -v /www:/www --network host centos /bin/bash 后台運行一個cent ..."
taxonomy_category:
  - "ALL"
  - "Linux"
---

先安裝Docker  
 `sudo pacman -S docker`

創建一個容器  
 `docker run -itd --name ws -v /www:/www --network host centos /bin/bash`  
 后台運行一個centos容器 橋接網絡模式 容器名ws 宿主目錄/www 容器目錄/www綁定 進入容器打開shell

啓動容器  
 `docker start ws`

進入容器終端  
 `docker attach ws`

執行BT面板安裝命令  
 `yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh`

編輯 `vi /root/.bashrc`  
 加入內容 `bt 3` (作用是啓動容器時BT面板跟隨啓動)

`Ctrl + P + Q` 退出容器但不關閉容器

可以耍了  
 訪問ip用http://127.0.0.1:8888/
