Focus on cloud service provider activities
Notes on website operation and maintenance

30+Collection of commonly used pagoda panel commands (fast operation and maintenance of pagoda panel)

When we operate and maintain the pagoda panel, such as restarting the database, and restarting the Nginx engine, we may log in to the pagoda panel and start it in the background. But what if sometimes the panel can't get in? Here we can actually know some common commands of the pagoda panel, which is more efficient. Here are 30+commands for the pagoda panel, which we can collect.

1、 Install the pagoda

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

2、 Management pagoda

Pagoda toolbox (Including most of the following functions, executing the bt command directly in ssh is limited to panels above 6. x)

bt

stop it

/etc/init.d/bt stop

start-up

/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 the current panel port

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

Modify the panel port 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 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

Force the MySQL management (root) password to be changed to 123456

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

Change the panel password to 123456

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

View the pagoda log

cat /tmp/panelBoot.pl

View the software installation log

cat /tmp/panelExec.log

Site Profile Location

/www/server/panel/vhost

Delete Domain Name Binding Panel

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

Clear login restrictions

rm -f /www/server/panel/data/*.login

View Panel Licensing IP

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

Turn off access restrictions

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

View licensed domain names

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

Close Panel SSL

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

View Panel Error Log

cat /tmp/panelBoot

View database error log

cat /www/server/data/*.err

Site Profile 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

3、 Nginx Service Management

Nginx installation directory

/www/server/nginx

start-up

/etc/init.d/nginx start

stop it

/etc/init.d/nginx stop

restart

/etc/init.d/nginx restart

Start load

/etc/init.d/nginx reload

Nginx configuration file

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

4、 Apache Service Management

Apache installation directory

/www/server/httpd

start-up

/etc/init.d/httpd start

stop it

/etc/init.d/httpd stop

restart

/etc/init.d/httpd restart

Start load

/etc/init.d/httpd reload

Apache configuration file

/www/server/apache/conf/httpd.conf

5、 MySQL Service Management

MySQL installation directory

/www/server/mysql

Phpmyadmin installation directory

/www/server/phpmyadmin

Data store directory

/www/server/data

start-up

/etc/init.d/mysqld start

stop it

/etc/init.d/mysqld stop

restart

/etc/init.d/mysqld restart

Start load

/etc/init.d/mysqld reload

MySQL configuration file

/etc/my.cnf

6、 FTP Service Management

Ftp installation directory

/www/server/pure-ftpd

start-up

/etc/init.d/pure-ftpd start

stop it

/etc/init.d/pure-ftpd stop

restart

/etc/init.d/pure-ftpd restart

Ftp configuration file

/www/server/pure-ftpd/etc/pure-ftpd.conf

7、 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|72|73|74} start

stop it (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|72|73|74} stop

restart (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|72|73|74} restart

Start 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|72|73|74} 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|72|73|74}/etc/php.ini

8、 Redis Service Management

Redis installation directory

/www/server/redis

start-up

/etc/init.d/redis start

stop it

/etc/init.d/redis stop

Redis configuration file

/www/server/redis/redis.conf

9、 Memcached Service Management

Memcached installation directory

/usr/local/memcached

start-up

/etc/init.d/memcached start

stop it

/etc/init.d/memcached stop

restart

/etc/init.d/memcached restart

Start load

/etc/init.d/memcached reload

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » 30+Collection of commonly used pagoda panel commands (fast operation and maintenance of pagoda panel)


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge