Ubuntu Server 安装宝塔-详细教程,细致到每一步都有说明

在这里插入图片描述

前言

  • 我的Ubuntu Server版本Ubuntu 24.04.2 LTS

宝塔

  • 进入下载页面【https://www.bt.cn/new/download.html】
  • 找到 Linux面板安装脚本
  • 选择 Ubuntu/Deepin
  • 复制命令
    wget -O install_panel.sh https://download.bt.cn/install/install_panel.sh && sudo bash install_panel.sh ed8484bec
    

-

  • 输入命令后,需要输入密码
    在这里插入图片描述

  • 输入密码后吗,会有个提示,输入y 即可
    在这里插入图片描述

宝塔安装完成提示

在这里插入图片描述

Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 49 not upgraded.
Rules updated
Rules updated (v6)
Rules updated
Rules updated (v6)
Rules updated
Rules updated (v6)
Rules updated
Rules updated (v6)
Rules updated
Rules updated (v6)
Rules updated
Rules updated (v6)
Rules updated
Rules updated (v6)
Skipping adding existing rule
Skipping adding existing rule (v6)
Rules updated
Rules updated (v6)
Command may disrupt existing ssh connections. Proceed with operation (y|n)? Firewall is active and enabled on system startup
Default incoming policy changed to 'deny'
(be sure to update your rules accordingly)
Firewall reloaded
==================================================================
Congratulations! Installed successfully!
=============注意:首次打开面板浏览器将提示不安全=================

 请选择以下其中一种方式解决不安全提醒
 1、下载证书,地址:https://dg2.bt.cn/ssl/baota_root.pfx,双击安装,密码【www.bt.cn】
 2、点击【高级】-【继续访问】或【接受风险并继续】访问
 教程:https://www.bt.cn/bbs/thread-117246-1-1.html
 mac用户请下载使用此证书:https://dg2.bt.cn/ssl/mac.crt

========================面板账户登录信息==========================

 【云服务器】请在安全组放行 12566 端口
 外网ipv4面板地址: http://1.1.1.1:12566/019275c9
 外网ipv6面板地址: http://[1:1:1:1:1:1:1:2686]:12566/c9
 内网面板地址:     http://192.168.1.1:12566/c9
 username: 123
 password: 321

 浏览器访问以下链接,添加宝塔客服
 https://www.bt.cn/new/wechat_customer
==================================================================
Time consumed: 1 Minute!
root123@ubuntuserver:~$