# 宝塔安装

国内版宝塔 [https://www.bt.cn](https://www.bt.cn/)

#### 系统兼容性顺序：Centos7.x > Debian10 > Ubuntu 20.04 > Cenots8.x > Ubuntu 18.04 > 其它系统

```docker
docker run -tid --name baota \
--net=host --privileged=true \
--shm-size=1g --restart always \
-v baota_www:/www \
-v ~/wwwroot:/www/wwwroot \
pch18/baota
```

```bash
echo 'Centos安装BT命令' ;\
yum -y install wget    ;\
wget -O install.sh http://download.bt.cn/install/install_6.0.sh ; \
sh install.sh
```

```bash
echo 'Ubuntu安装命令' ;\
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh ;\
sudo bash install.sh
```

```bash
echo 'Deepin安装命令' ;\
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh ;\
sudo bash install.sh
```

```bash
echo 'Debian安装命令' ;\
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh ;\
bash install.sh
```

```bash
echo 'Fedora安装命令' ;\
wget -O install.sh http://download.bt.cn/install/install_6.0.sh ;\
bash install.sh 
```

#### 国际版宝塔 [https://www.aapanel.com](https://www.aapanel.com/)

```docker
docker run -d \
-p 8886:8888 \
-p 22:21 \
-p 443:443 \
-p 80:80 \
-p 889:888 \
-v ~/website_data:/www/wwwroot \
-v ~/mysql_data:/www/server/data \
-v ~/vhost:/www/server/panel/vhost \
aapanel/aapanel:lib
```

```bash
echo 'Centos' ;\
yum install -y wget ;\
wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh ;\
bash install.sh
```

```bash
echo 'Centos/Ubuntu/Debian/Fedora 支持ipv6';\
curl -sSO http://www.aapanel.com/script/new_install_en.sh ;\
bash new_install_en.sh
```

```bash
echo 'Ubuntu/Deepin' ;\
wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh ;\
sudo bash install.sh
```

```bash
echo 'Debian' ;\
wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh ;\
bash install.sh
```

SSPanel V3 魔改 [https://github.com/Anankke/SSPanel-Uim](https://github.com/Anankke/SSPanel-Uim)

```docker
echo '魔改尝鲜版(内测中)' ;\
wget https://raw.githubusercontent.com/Baiyuetribe/SSPanel-Uim-Docker/master/docker-compose.yml ;\
docker-compose up -d
```

宝塔Linux面板教程 [https://www.kancloud.cn/chudong/bt2017](https://www.kancloud.cn/chudong/bt2017)

宝塔windows面板教程 [https://www.kancloud.cn/chudong/bt\_win](https://www.kancloud.cn/chudong/bt_win)

{% file src="https://3504178614-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9pUnnHKrKhH99NhIo8OF%2Fuploads%2FjKA3Z2E2oClIWHXJ5AVB%2F%E5%AE%9D%E5%A1%94%E9%9D%A2%E6%9D%BF%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84%E8%A7%A3%E6%9E%90.txt?alt=media&token=bdb3f512-43da-4393-8e41-6137df43facf" %}

