> For the complete documentation index, see [llms.txt](https://xn--7dvp7de53ainp.gitbook.io/untitled/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xn--7dvp7de53ainp.gitbook.io/untitled/gong-zuo-bi-ji/bao-ta-an-zhuang.md).

# 宝塔安装

国内版宝塔 [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>

```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>

宝塔windows面板教程 <https://www.kancloud.cn/chudong/bt_win>

{% file src="/files/xizuiRcnHPa2ljCzTGoM" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xn--7dvp7de53ainp.gitbook.io/untitled/gong-zuo-bi-ji/bao-ta-an-zhuang.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
