Collection of commonly used commands in the Pagoda panel: managing Nginx/MySQL/FTP/Apache/PHP, etc.

888u

Last update at :2024-03-16,Edit by888u

I gave you an introduction to the Pagoda Linux panel installation tutorial before. Today I will share the commonly used Pagoda Linux panel commands, which can be used to manage (stop/start/restart/uninstall) installed programs, including Nginx, MySQL, FTP, Apache , PHP, Redis, Memcached, etc.

1. Introduction to commonly used pagoda commands

The Pagoda management commands compiled in this article are applicable to the Pagoda Linux panel. After directly SSHing to the host, you can manage the corresponding software by executing the corresponding command code.

First, let’s sort out the common commands for managing the pagoda panel:

Pagoda Toolbox

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

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 change the MySQL management (root) password, if you want to change it to 123456

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

Change 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 log

cat /tmp/panelExec.log

Site configuration file 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 authorized 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 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

How to install Pagoda Linux Panel, please refer to: "Pagoda Linux Panel Installation Tutorial: Supporting CentOS, Ubuntu, Debian"

2. Arrangement of commonly used pagoda commands

The following introduces the pagoda management commands of commonly used software, the pagoda installation path of each software, and the path where the configuration file is located.

1. 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

Launch

/etc/init.d/nginx reload

nginx configuration file

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

2. 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

Launch

/etc/init.d/mysqld reload

mysql configuration file

/etc/my.cnf

3. 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

4. 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

Launch

/etc/init.d/httpd reload

apache configuration file

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

5. PHP service management

php installation directory

/www/server/php

Start (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 (please change it 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 (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

6. 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

7. 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

Launch

/etc/init.d/memcached reload

Recommended site search: PHP space rental, game server defense, foreign free cloud server, cpanel space, Taiwan proxy server, server hosting, US host, free linux host, free asp.net space, how to build a server,

Collection of commonly used commands in the Pagoda panel: managing Nginx/MySQL/FTP/Apache/PHP, etc.

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码