aaPanel面板和宝塔(BT)面板安装及命令

aaPanel面板和宝塔面板都是同一家公司在运营,只是aaPanel面板主要服务于海外客户,宝塔面板服务于本地客户。通常如果使用的是海外的服务器部署web环境,建议使用aaPanel面板。宝塔面板是一款基于 Web 的管理服务器的面板软件,它可以帮助用户方便地管理服务器的各种功能。面板支持Linux与Windows系统。一键配置:LAMP/LNMP、网站、数据库、FTP、SSL,通过Web端轻松管理服务器。

aaPanel面板安装:

Centos 安装:yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh aapanel

Ubuntu/Deepin安装:wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && sudo bash install.sh aapanel

Debian安装:wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh aapanel

注意:确保是干净的操作系统,没有安装Apache/Nginx/php/MySQL等其他环境(现有环境可以不安装)

推荐使用Chrome、Firefox、edge浏览器访问面板登录地址

宝塔面板安装:

使用 SSH 连接工具,如 堡塔SSH终端 连接到您的 Linux 服务器后, 挂载磁盘 ,根据系统执行相应命令开始安装(大约2分钟完成面板安装): 

宝塔系统环境兼容列表:install主流系统环境兼容列表install国产系统环境兼容列表

系统兼容性顺序:Centos7.x > Debian10 > Ubuntu 20.04 > Cenots8.x > Ubuntu 18.04 > 其它系统提示:Centos官方已宣布在2020年停止对Centos6的维护更新,各大软件开发商也逐渐停止对Centos6的兼容,新服务器不建议使用Centos6

CentOS 7.6+、Ubuntu18.04+、Debian10.0+,确保是干净的操作系统,没有安装过其它环境带的Apache/Nginx/php/MySQL/pgsql/gitlab/java(已有环境、网站在运行的不可安装

宝塔面板登录资料只会显示一次,我们不会记录,如果忘记了请重新输入服务器登录资料重新安装宝塔面板或者按照下面教程登录您的服务器执行bt命令查看。

Centos安装脚本yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec

Ubuntu/Deepin安装脚本wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec

Debian安装脚本wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh ed8484bec

安装脚本if [ -f /usr/bin/curl ];then curl -sSO https://download.bt.cn/install/install_panel.sh;else wget -O install_panel.sh https://download.bt.cn/install/install_panel.sh;fi;bash install_panel.sh ed8484bec

国产龙芯架构安装脚本(其他CPU请勿使用)wget -O install_panel.sh https://download.bt.cn/install/0/loongarch64/loongarch64_install_panel.sh && bash install_panel.sh ed8484bec

注意:必须为没装过其它环境如Apache/Nginx/php/MySQL的新系统,推荐使用centos 7.X的系统安装宝塔面板

推荐使用Chrome、火狐、edge浏览器,国产浏览器请使用极速模式访问面板登录地址

如果不确定使用哪个Linux系统版本的,可以使用安装脚本

国产龙芯架构CPU安装命令,支持龙芯架构的loongnix 8.x、统信UOS 20、kylin v10系统

aaPanel 宝塔面板命令行:

Management/面板管理

Stop 停止:service bt stop

Start 启动:service bt start

Restart 重启:service bt restart

Uninstall 卸载:service bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel

View current port of control panel 查看目前面板端口号:cat /www/server/panel/data/port.pl

Change port of control panel,e.g. 8881(centos 6 操作系统)更改面板端口号为8881:echo '8881' > /www/server/panel/data/port.pl && service bt restart iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 8881 -j ACCEPT service iptables save service iptables restart

Change port of control panel,e.g. 8881(centos 7 操作系统)更改面板端口号8881:echo '8881' > /www/server/panel/data/port.pl && service bt restart firewall-cmd --permanent --zone=public --add-port=8881/tcp firewall-cmd --reload

Force to change MySQL manager (root) Password,e.g. 123456 更改MySQL root的密码为123456:cd /www/server/panel && python tools.py root 123456

Change control Panel login password,e.g. 123456 修改面板登录密码为123456:cd /www/server/panel && python tools.py panel 123456

Site Configuration location 站点配置位置:/www/server/panel/vhost

Delete banding domain of control panel 删除控制面板的绑定域:rm -f /www/server/panel/data/domain.conf

Clean login restriction 清除登录限制:rm -f /www/server/panel/data/*.login

View control panel authorization IP 查看控制面板授权IP:cat /www/server/panel/data/limitip.conf

Stop access restriction 停止访问限制:rm -f /www/server/panel/data/limitip.conf

View permission domain 查看权限域:cat /www/server/panel/data/domain.conf

Turn off control panel SSL 关闭控制面板 SSL:rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart

View control panel error logs 查看控制面板错误日志:cat /tmp/panelBoot

View database error log 查看数据库错误日志:cat /www/server/data/*.err

Site Configuration directory(nginx) 站点配置目录(nginx):/www/server/panel/vhost/nginx

Site Configuration directory(apache) 站点配置目录(apache):/www/server/panel/vhost/apache

Site default directory 站点默认目录:/www/wwwroot

Database backup directory 数据库备份目录:/www/backup/database

Site backup directory 站点备份目录:/www/backup/site

Site logs 站点日志:/www/wwwlogs

Nginx

nginx installation directory nginx安装目录:/www/server/nginx

Start 启动:service nginx start

Stop 停止:service nginx stop

Restart 重启:service nginx restart

Reload 重新加载:service nginx reload

nginx Configuration nginx 配置:/www/server/nginx/conf/nginx.conf

Apache

apache installation directory 阿帕奇安装目录:/www/server/httpd

Start 启动:service httpd start

Stop 停止:service httpd stop

Restart 重启:service httpd restart

Reload 重新加载:service httpd reload

apache Configuration 阿帕奇配置:/www/server/apache/conf/httpd.conf

MySQL

mysql installation directory mysql安装目录:/www/server/mysql

phpmyadmin installation directory phpmyadmin安装目录:/www/server/phpmyadmin

Data storage directory 数据存储目录:/www/server/data mysql

Start 启动:service mysqld start

Stop 停止:service mysqld stop

Restart 重启:service mysqld restart

Reload 重新加载:service mysqld reload

mysql Configuration mysql配置:/etc/my.cnf

FTP

ftp installation directory ftp安装目录:/www/server/pure-ftpd

Start 启动:service pure-ftpd start

Stop 停止:service pure-ftpd stop

Restart 重新加载:service pure-ftpd restart

ftp Configuration FTP配置:/www/server/pure-ftpd/etc/pure-ftpd

PHP

php installation directory PHP安装目录:/www/server/php

Start(Please modify by PHP version, e.g. service php-fpm-54 start) 启动(请根据PHP版本进行修改,例如service php-fpm-54 start):servicephp-fpm-{52|53|54|55|56|70|71|72|73|74|80|81} start

Stop(Please modify by PHP version, e.g. service php-fpm-54 stop) 停止(请根据PHP版本进行修改,例如service php-fpm-54 stop):service php-fpm-{52|53|54|55|56|70|71|72|73|74|80|81} stop

Restart(Please modify by PHP version, e.g. service php-fpm-54 restart) 重启(请根据PHP版本修改,例如service php-fpm-54 restart):service php-fpm-{52|53|54|55|56|70|71|72|73|74|80|81} restart

Reload(Please modify by PHP version, e.g. service php-fpm-54 reload) 重新加载(请根据PHP版本进行修改,例如service php-fpm-54 reload):service php-fpm-{52|53|54|55|56|70|71|72|73|74|80|81} reload

Configuration(Please modify by PHP version, e.g. /www/server/php/52/etc/php.ini) 配置(请根据PHP版本进行修改,例如/www/server/php/52/etc/php.ini):/www/server/php/{52|53|54|55|56|70|71|72|73|74|80|81}/etc/php.ini

Redis

redis installation directory redis安装目录:/www/server/redis

Start 启动:service redis start

Stop 停止:service redis stop

redis Configuration redis配置:/www/server/redis/redis.conf

Memcached

memcached installation directory memcached安装目录:/usr/local/memcached

Start 启动:service memcached start

Stop 停止:service memcached stop

Restart 重启:service memcached restart

Reload 重新加载:service memcached reload

滚动至顶部