登陆aws Lightsail
推荐大家通过aws Lightsail控制台登陆
登陆的账号默认为普通用户,
输入 yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
出现以下提示
Loaded plugins: fastestmirror
You need to be root to perform this command.
由于安装宝塔面板需要root权限,所以这里我们要切换到root用户。
- su root
如果是首次登陆需要设置root密码
- sudo passwd
切换到root用户后在复制以下代码安装宝塔面板,代码来自宝塔官方
- yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
输入以上代码,即可自动安装宝塔面板了。