运维面板安装

服务器运维面板

1 使用SSH连接到服务器

(1)在终端内使用SSH命令连接到服务器

1# 将 <ip_address> 替换为远程服务器的公网IP地址
2ssh root@<ip_address>

(2)接受SSH密钥指纹:

当你第一次通过 SSH 连接到一台新的远程服务器时,SSH客户端会提示你确认服务器的身份,这是一个安全措施,此时你可能会看到类似以下的消息,询问是否信任这个服务器的公钥指纹

The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established. ED25519 key fingerprint is SHA256:... This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])?

输入 yes 并按回车键以接受并继续连接

(3)输入密码

如果使用密码验证,你将被提示输入 root 用户的密码:

root@xxx.xxx.xxx.xxx's password:

输入密码并按回车键。注意:输入密码时不会显示字符。

(4)进行远程操作

成功连接后,你将看到服务器的命令提示符,此时就可以执行各种命令了

Welcome to Alibaba Cloud Elastic Compute Service ! [root@xxxxxxxxxxxxxxxxxxxxxx ~]#

2 主机面板安装

(1)安装宝塔面板

根据你的操作系统版本,选择合适的命令安装宝塔面板,不同操作系统安装命令参考

这里以 Alibaba Cloud Linux 操作系统为例,首先连接到远程服务器并在终端中执行以下命令:

1url=https://download.bt.cn/install/install_lts.sh;if [ -f /usr/bin/curl ];then curl -sSO $url;else wget -O install_lts.sh $url;fi;bash install_lts.sh ed8484bec

然后当看到 Do you want to install Bt-Panel to the /www directory now? 后,输入 y 并按回车键以接受安装

+---------------------------------------------------------------------- | Bt-WebPanel FOR CentOS/Ubuntu/Debian +---------------------------------------------------------------------- | Copyright © 2015-2099 BT-SOFT(http://www.bt.cn) All rights reserved. +---------------------------------------------------------------------- | The WebPanel URL will be http://SERVER_IP:10984 when installed. +---------------------------------------------------------------------- | 为了您的正常使用,请确保使用全新或纯净的系统安装宝塔面板,不支持已部署项目/环境的系统安装 +---------------------------------------------------------------------- | 当前您正在安装的是宝塔面板稳定版-9.0-lts +---------------------------------------------------------------------- Do you want to install Bt-Panel to the /www directory now?(y/n):

(2)保存账户登录信息

安装完成后,终端会显示宝塔面板的访问地址、用户名和密码。建议复制一下单独保存。

========================面板账户登录信息========================== 【云服务器】请在安全组放行 10984 端口 外网面板地址: https://xxx.xxx.xxx.xxx:10984/f0cdd6aa 内网面板地址: https://xxx.xxx.xxx.xxx:10984/f0cdd6aa username: ggod4ui7 password: 6a32ffab 浏览器访问以下链接,添加宝塔客服 https://www.bt.cn/new/wechat_customer ==================================================================

(4)云服务器安全组端口放行

首先进入云服务器管理控制台,然后点击「安全组」、点击「安全组名称」

bt-001

点击访问规则(入方向)下的「手动添加」

bt-002

添加端口信息,并点击「保存」

bt-003

(5)访问宝塔面板

在浏览器中访问外网面板地址,并在登录页输入账号和密码进行登录。

bt-004