title: Baota Linux Panel Command Encyclopedia
date: 2022-03-16 14:23:14
toc: true
category:
- Linux
tags: - linux
- baota
- panel
- command
- encyclopedia
Official Commands#
Baota Installation#
Centos Installation Script
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
Ubuntu/Deepin Installation Script
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh
Debian Installation Script
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh
Fedora Installation Script
wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh
Managing Baota#
Baota Toolbox**(Includes most of the following functions, execute bt commands directly in SSH, only available for panel versions 6.x and above)**
bt
Stop
/etc/init.d/bt stop
Start
/etc/init.d/bt start
Restart
/etc/init.d/bt restart
Uninstall
/etc/init.d/bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel
View current panel port
cat /www/server/panel/data/port.pl
Change panel port to 8881 (for CentOS 6)
echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 8881 -j ACCEPT
service iptables save
service iptables restart
Change panel port to 8881 (for CentOS 7)
echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart
firewall-cmd --permanent --zone=public --add-port=8881/tcp
firewall-cmd --reload
Force change MySQL management (root) password to 123456
cd /www/server/panel && python tools.py root 123456
Change panel password to 123456
cd /www/server/panel && python tools.py panel 123456
View Baota logs
cat /tmp/panelBoot.pl
View software installation logs
cat /tmp/panelExec.log
Site configuration file location
/www/server/panel/vhost
Delete domain binding to panel
rm -f /www/server/panel/data/domain.conf
Clear login restrictions
rm -f /www/server/panel/data/*.login
View panel authorized IP
cat /www/server/panel/data/limitip.conf
Disable access restrictions
rm -f /www/server/panel/data/limitip.conf
View license domain
cat /www/server/panel/data/domain.conf
Disable panel SSL
rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart
View panel error logs
cat /tmp/panelBoot
View database error logs
cat /www/server/data/*.err
Site configuration file directory (nginx)
/www/server/panel/vhost/nginx
Site configuration file directory (apache)
/www/server/panel/vhost/apache
Default site directory
/www/wwwroot
Database backup directory
/www/backup/database
Site backup directory
/www/backup/site
Site logs
/www/wwwlogs
Nginx Service Management#
Nginx installation directory
/www/server/nginx
Start
/etc/init.d/nginx start
Stop
/etc/init.d/nginx stop
Restart
/etc/init.d/nginx restart
Reload
/etc/init.d/nginx reload
Nginx configuration file
/www/server/nginx/conf/nginx.conf
Apache Service Management#
Apache installation directory
/www/server/httpd
Start
/etc/init.d/httpd start
Stop
/etc/init.d/httpd stop
Restart
/etc/init.d/httpd restart
Reload
/etc/init.d/httpd reload
Apache configuration file
/www/server/apache/conf/httpd.conf
MySQL Service Management#
MySQL installation directory
/www/server/mysql
phpMyAdmin installation directory
/www/server/phpmyadmin
Data storage directory
/www/server/data
Start
/etc/init.d/mysqld start
Stop
/etc/init.d/mysqld stop
Restart
/etc/init.d/mysqld restart
Reload
/etc/init.d/mysqld reload
MySQL configuration file
/etc/my.cnf
FTP Service Management#
FTP installation directory
/www/server/pure-ftpd
Start
/etc/init.d/pure-ftpd start
Stop
/etc/init.d/pure-ftpd stop
Restart
/etc/init.d/pure-ftpd restart
FTP configuration file
/www/server/pure-ftpd/etc/pure-ftpd.conf
PHP Service Management#
PHP installation directory
/www/server/php
Start**(Please change according to the installed PHP version, for example: /etc/init.d/php-fpm-54 start)**
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} start
Stop**(Please change according to the installed PHP version, for example: /etc/init.d/php-fpm-54 stop)**
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} stop
Restart**(Please change according to the installed PHP version, for example: /etc/init.d/php-fpm-54 restart)**
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} restart
Reload**(Please change according to the installed PHP version, for example: /etc/init.d/php-fpm-54 reload)**
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} reload
Configuration file**(Please change according to the installed PHP version, for example: /www/server/php/52/etc/php.ini)**
/www/server/php/{52|53|54|55|56|70|71|72|73|74}/etc/php.ini
Redis Service Management#
Redis installation directory
/www/server/redis
Start
/etc/init.d/redis start
Stop
/etc/init.d/redis stop
Redis configuration file
/www/server/redis/redis.conf
Memcached Service Management#
Memcached installation directory
/usr/local/memcached
Start
/etc/init.d/memcached start
Stop
/etc/init.d/memcached stop
Restart
/etc/init.d/memcached restart
Reload
/etc/init.d/memcached reload
External Commands#
Baota Panel 7.7#
Original installation script
wget -O install.sh http://f.cccyun.cc/bt/install_6.0.sh && bash install.sh
Old version upgrade script
curl http://f.cccyun.cc/bt/update6.sh|bash
One-click optimization patch
Optimization content
- Remove Baota panel's forced binding account
- Remove calculation questions and delay waits during various deletion operations
- Remove junk files automatically created when creating a website (index.html, 404.html, .htaccess)
- Disable the prompt page for unbound domains to prevent others from accessing and discovering the use of Baota panel
- Disable activity recommendations and online customer service
Note: Only applicable to Baota version 7.7
wget -O optimize.sh http://f.cccyun.cc/bt/optimize.sh && bash optimize.sh
References#
- Baota Panel - Easy-to-use Linux/Windows Server Management Panel
- Baota Linux Panel Installation Tutorial - Updated on February 18, 2022 - Version 7.9.0 Official - Linux Panel - Baota Panel Forum
- Baota Linux Panel Command Encyclopedia - Baota Panel
- Baota Panel 7.7 Original Installation Script - Tutorial - Forum
- One-Click Optimization Patch for Baota Panel - Shell Script - Forum
- Baota Panel Site and Database One-Click Backup and Restore Script - Shell Script - Forum