宝塔面板分linux面板和windows面板,安装宝塔linux面板首先要访问宝塔官网查看对应版本进行选择
宝塔面板的安装需要注意的地方有:
1.纯净系统
2.确保是干净的操作系统,没有安装过其它环境带的Apache/Nginx/php/MySQL,否则安装不上
3.区分linux版本
CentOS 6.x / 7.x可直接在官网选择5.3正式版
Ubuntu、Debian、Fedora要安装宝塔需要安装4.5测试版
建议在完成磁盘挂载后进行安装
安装方法:
使用SSH工具登录linux服务器
输入命令: lsb_release -a ,即可列出所有版本信息,例如:
显示linux版本为centOS 6.4,可以直接安装5.3正式版。
宝塔面板在centOS下的指令为:
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
手动输入易出错,在此推荐通过复制粘贴运行
说明:在电脑上通过ctrl+C复制后,在linux服务器上通过单击右键粘贴
回车执行,开始安装(整个安装过程大约耗时2分钟)
待出现complete时,说明安装成功。此时面板会显示完成后的登录地址(BT面板默认8888端口),登录账户(username),登录密码(password),将信息保存后即可使用宝塔面板。
如下所示:
说明:linux下的复制组合键为Ctrl + Insert,复制后在电脑上通过ctrl+V保存到自己的重要文档即可
这样就可以访问了。
二、在运行上面命令的时候,就报了一个错误:
[root@localhost Desktop]# lsb_release -a
bash: lsb_release: command not found...
这个错误的原因是没有安装lsb_release
使用yum安装lsb,具体命令如下:
[root@localhost Desktop]# yum install -y redhat-lsb
显示结果如下:
如上就安装好了:
[root@localhost Desktop]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.2.1511 (Core)
Release: 7.2.1511
Codename: Core