Skip to main content
We are Brand SEO Beijing serving international business, your marketing partner, Contact us by mi@mgsh.com.cn

Website Environment Building Pagoda Panel Tool Linux Common Commands

The following commands do not need to be remembered, and can be used for debugging when necessary, because most of them already have an interface in the panel, which is very mature.

Install the pagoda

Centos install script
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

Ubuntu/Deepin installation script

wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && sudo bash install.sh

Debian installation script

wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.sh

Fedora Install Script

wget -O install.sh http://download.bt.cn/install/install.sh && bash install.sh

 

management pagoda

Stop
/etc/init.d/bt stop

start up

/etc/init.d/bt start

Reboot

/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 ports

cat /www/server/panel/data/port.pl

Modify the panel port, if you want to change it to 8881 (centos 6 system)

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

Modify the panel port, if you want to change it to 8881 (centos 7 system)

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

Forcibly modify the MySQL management (root) password, if you want to change it to 123456

cd /www/server/panel && python tools.py root 123456

Modify the panel password, if you want to change it to 123456

cd /www/server/panel && python tools.py panel 123456

View Pagoda Log

cat /tmp/panelBoot.pl

View software installation logs

cat /tmp/panelExec.log

Site configuration file location

/www/server/panel/vhost

Delete Domain Binding 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

Turn off access restrictions

rm -f /www/server/panel/data/limitip.conf

View Licensed Domains

cat /www/server/panel/data/domain.conf

Turn off panel SSL

rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart

View panel error log

cat /tmp/panelBoot

View the database error log

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

Site default directory

/www/wwwroot

database backup directory

/www/backup/database

Site Backup Directory

/www/backup/site

site log

/www/wwwlogs

 

Nginx service management

nginx installation directory
/www/server/nginx

start up

/etc/init.d/nginx start

Stop

/etc/init.d/nginx stop

Reboot

/etc/init.d/nginx restart

open load

/etc/init.d/nginx reload

nginx configuration file

/www/server/nginx/conf/nginx.conf

 

Apache service management

apache installation directory
/www/server/httpd

start up

/etc/init.d/httpd start

Stop

/etc/init.d/httpd stop

Reboot

/etc/init.d/httpd restart

open load

/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 up

/etc/init.d/mysqld start

Stop

/etc/init.d/mysqld stop

Reboot

/etc/init.d/mysqld restart

open load

/etc/init.d/mysqld reload

mysql configuration file

/etc/my.cnf

 

FTP service management

ftp installation directory
/www/server/pure-ftpd

start up

/etc/init.d/pure-ftpd start

Stop

/etc/init.d/pure-ftpd stop

Reboot

/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 up(Please make changes according to the installed PHP version number, for example: /etc/init.d/php-fpm-54 start)

/etc/init.d/php-fpm-{52|53|54|55|56|70|71} start

Stop(Please make changes according to the installed PHP version number, for example: /etc/init.d/php-fpm-54 stop)

/etc/init.d/php-fpm-{52|53|54|55|56|70|71} stop

Reboot(Please make changes according to the installed PHP version number, for example: /etc/init.d/php-fpm-54 restart)

/etc/init.d/php-fpm-{52|53|54|55|56|70|71} restart

open load(Please make changes according to the installed PHP version number, for example: /etc/init.d/php-fpm-54 reload)

/etc/init.d/php-fpm-{52|53|54|55|56|70|71} reload

Configuration file(Please make changes according to the installed PHP version number, for example: /www/server/php/52/etc/php.ini)

/www/server/php/{52|53|54|55|56|70|71}/etc/php.ini

 

Redis service management

redis installation directory
/www/server/redis

start up

/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 up

/etc/init.d/memcached start

Stop

/etc/init.d/memcached stop

Reboot

/etc/init.d/memcached restart

open load

/etc/init.d/memcached reload
Back to Top