买了一个香港服务器
首先安装宝塔
安装之前升级系统
`yum update`
然后执行命令安装宝塔面板
`yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec`
安装成功会有以下提示
```
Installing collected packages: pycparser, cffi, cryptography, pyOpenSSl
Successfully installed cffi-1.15.1 cryptography-41.0.4 pyOpenSSl-23.2.0 pycparser-2.21
1
Starting Bt-Panel... Bt-Panel (pid 45525) already running
Starting Bt-Tasks... Bt-Tasks (pid 45544) already running
username: uzfbk7yu
Stopping Bt-Tasks... done
Stopping Bt-Panel... done
Starting Bt-Panel.... done
Starting Bt-Tasks... done
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* extras: mirrors.ustc.edu.cn
* updates: mirrors.ustc.edu.cn
Package firewalld-0.6.3-13.el7_9.noarch already installed and latest version
Nothing to do
Created symlink from /etc/systemd/system/multi-user.target.wants/firewalld.service to /usr/lib/systemd/system/firewalld.service.
success
==================================================================
Congratulations! Installed successfully!
========================面板账户登录信息==========================
外网面板地址: https://ip:201212/xxxxxx
内网面板地址: https://ip:201212/xxxxxx
username: username
password: password
=========================打开面板前请看===========================
【云服务器】请在安全组放行 xxxxxx 端口
因默认启用自签证书https加密访问,浏览器将提示不安全
点击【高级】-【继续访问】或【接受风险并继续】访问
教程:https://www.bt.cn/bbs/thread-117246-1-1.html
==================================================================
Time consumed: 2 Minute!
```
然后绑定手机
可以通过命令来修改默认的用户名密码
```
[root@mntex6eb7u7r ~]# bt
===============宝塔面板命令行==================
(1) 重启面板服务 (8) 改面板端口
(2) 停止面板服务 (9) 清除面板缓存
(3) 启动面板服务 (10) 清除登录限制
(4) 重载面板服务 (11) 设置是否开启IP + User-Agent验证
(5) 修改面板密码 (12) 取消域名绑定限制
(6) 修改面板用户名 (13) 取消IP访问限制
(7) 强制修改MySQL密码 (14) 查看面板默认信息
(22) 显示面板错误日志 (15) 清理系统垃圾
(23) 关闭BasicAuth认证 (16) 修复面板(检查错误并更新面板文件到最新版)
(24) 关闭动态口令认证 (17) 设置日志切割是否压缩
(25) 设置是否保存文件历史副本 (18) 设置是否自动备份面板
(26) 关闭面板ssl (28) 修改面板安全入口
(0) 取消 (29) 取消访问设备验证
===============================================
请输入命令编号:
```
接着安装lnmp环境
接着开始布署网站