The following is an introduction to the commonly used Linux commands of the Pagoda panel from the Pagoda linux tutorial column. I hope it will be helpful to friends in need!
Commonly used Linux commands in Pagoda panel
Pagoda 6.0 version has launched a command tool, which can be called by executing the bt command. As shown in the figure:
#Windows users do not need to view this command. This command is only available to Linux users.
Management Pagoda
Stop panel service
/etc/init.d/bt stop
Start panel service
/etc/init.d/bt start
Restart the panel service
/etc/init.d/bt restart
Uninstall panel service
/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 , if you want to change it to 8881 (centos 6 system)
echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt 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
Force to change 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 the 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 authorization IP
cat /www/server/panel/data/limitip.conf
Close access restrictions
rm -f /www/server/panel/data/limitip.conf
View the permitted domain name
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
For more programming related content, please Pay attention to the Introduction to Programming column on the php Chinese website!
The above is the detailed content of Commonly used Linux commands in Pagoda Panel. For more information, please follow other related articles on the PHP Chinese website!