夏明

There is only one thing in the world worse than being talked about, and that is not being talked about.

M1 Mac 安装宝塔面板

2021-10-06


相关官网

安装Docker

直接官网下载安装即可,下载地址:https://docs.docker.com/desktop/mac/apple-silicon/

在Docker里安装CentOS

docker pull centos

映射宝塔端口

创建一个CentOS容器并映射8888端口,复制返回的容器ID

docker run -d -it -p 8888:8888 centos

进入CentOS安装宝塔

进入容器终端

docker exec -it [容器ID] bash

在CentOS中执行宝塔安装命令

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

安装完成后,提示给的外网IP是用不了的,所以这里需要用本地ip访问面板