Collection of common linux commands for pagoda control panel

Source code resource sharing of softnet 2022-06-24 07:45:01 阅读数:464

collectioncommonlinuxcommandspagoda


Pagoda panel is a common server operation and maintenance panel for webmaster friends , Can pass Web End easy management server , Improve operation and maintenance efficiency . When you install the pagoda panel in the server, you will use the specific script commands of the pagoda panel . Today's article summarizes the common use of pagoda panels Linux command , This is convenient for you to collect and search .
1、 Install the pagoda
Centos set up script

 

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

Ubuntu/Deepin set up script

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

Debian set up script

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

Fedora set up script

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

2、 Manage the pagoda
stop it

  1. /etc/init.d/bt stop

start-up

  1. /etc/init.d/bt start

restart

  1. /etc/init.d/bt restart

uninstall

  1. /etc/init.d/bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel

View the current panel port

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

Modify panel port , If you want to change it to 8881(centos 6 System )

  1. echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart
  2. iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 8881 -j ACCEPT
  3. service iptables save
  4. service iptables restart

Modify panel port , If you want to change it to 8881(centos 7 System )

  1. echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart
  2. firewall-cmd --permanent --zone=public --add-port=8881/tcp
  3. firewall-cmd --reload

Force modification MySQL management (root) password , If you want to change it to 123456

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

Change panel password , If you want to change it to 123456

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

Check out the pagoda log

  1. cat /tmp/panelBoot.pl

Check the software installation log

  1. cat /tmp/panelExec.log

Site profile location

  1. /www/server/panel/vhost

Delete domain name binding panel

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

Clear the landing restrictions

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

View panel Authorization IP

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

Turn off access restrictions

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

View the licensed domain name

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

Close the panel SSL

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

Check the panel error log

  1. cat /tmp/panelBoot

Check the database error log

  1. cat /www/server/data/*.err

Site profile directory (nginx)

  1. /www/server/panel/vhost/nginx

Site profile directory (apache)

  1. /www/server/panel/vhost/apache

Site default directory

  1. /www/wwwroot

Database backup directory

  1. /www/backup/database

Site backup directory

  1. /www/backup/site

Site logs

  1. /www/wwwlogs

3、Nginx Service management
nginx The installation directory

  1. /www/server/nginx

start-up

  1. /etc/init.d/nginx start

stop it

  1. /etc/init.d/nginx stop

restart

  1. /etc/init.d/nginx restart

Start loading

  1. /etc/init.d/nginx reload

nginx The configuration file

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

4、Apache Service management
apache The installation directory

  1. /www/server/httpd

start-up

  1. /etc/init.d/httpd start

stop it

  1. /etc/init.d/httpd stop

restart

  1. /etc/init.d/httpd restart

Start loading

  1. /etc/init.d/httpd reload

apache The configuration file

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

5、MySQL Service management
mysql The installation directory

  1. /www/server/mysql

phpmyadmin The installation directory

  1. /www/server/phpmyadmin

Data storage directory

  1. /www/server/data

start-up

  1. /etc/init.d/mysqld start

stop it

  1. /etc/init.d/mysqld stop

restart

  1. /etc/init.d/mysqld restart

Start loading

  1. /etc/init.d/mysqld reload

mysql The configuration file

  1. /etc/my.cnf

6、FTP Service management
ftp The installation directory

  1. /www/server/pure-ftpd

start-up

  1. /etc/init.d/pure-ftpd start

stop it

  1. /etc/init.d/pure-ftpd stop

restart

  1. /etc/init.d/pure-ftpd restart

ftp The configuration file

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

7、PHP Service management
php The installation directory

  1. /www/server/php

start-up ( Please install according to PHP Change version number , for example :/etc/init.d/php-fpm-54 start)

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

stop it ( Please install according to PHP Change version number , for example :/etc/init.d/php-fpm-54 stop)

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

restart ( Please install according to PHP Change version number , for example :/etc/init.d/php-fpm-54 restart)

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

Start loading ( Please install according to PHP Change version number , for example :/etc/init.d/php-fpm-54 reload)

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

The configuration file ( Please install according to PHP Change version number , for example :/www/server/php/52/etc/php.ini)

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

8、Redis Service management
redis The installation directory

  1. /www/server/redis

start-up

  1. /etc/init.d/redis start

stop it

  1. /etc/init.d/redis stop

redis The configuration file

  1. /www/server/redis/redis.conf

9、Memcached Service management
memcached The installation directory

  1. /usr/local/memcached

start-up

  1. /etc/init.d/memcached start

stop it

  1. /etc/init.d/memcached stop

restart

  1. /etc/init.d/memcached restart

Start loading

  1. /etc/init.d/memcached reload

 

copyright:author[Source code resource sharing of softnet],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/175/202206240311234454.html