寶塔linux面板重啓、重置等命令

現在有很多網友都在使用寶塔主機管理系統、對一些不懂 linux 操作的朋友來說,是一個很好的管理系統、
但是有些朋友重啓服務器以後,有可能造成一些服務無法重啓。今天我們蒐集下關於寶塔面板的命令集錦

安裝寶塔


Centos 安裝腳本

 

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

Ubuntu/Deepin 安裝腳本

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

Debian 安裝腳本

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

Fedora 安裝腳本

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

管理寶塔

 
  1. 停止
  2. /etc/init.d/bt stop
  3. 啓動
  4. /etc/init.d/bt start
  5. 重啓
  6. /etc/init.d/bt restart
  7. 卸載
  8. /etc/init.d/bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel
  9. 查看當前面板端口
  10. cat /www/server/panel/data/port.pl
  11. 修改面板端口,如要改成 8881(centos 6 系統)
  12. echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart
  13. iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 8881 -j ACCEPT
  14. service iptables save
  15. service iptables restart
  16. 修改面板端口,如要改成 8881(centos 7 系統)
  17. echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart
  18. firewall-cmd --permanent --zone=public --add-port=8881/tcp
  19. firewall-cmd --reload
  20. 強制修改 MySQL 管理(root)密碼,如要改成 123456
  21. cd /www/server/panel && python tools.pyc root 123456
  22. 修改面板密碼,如要改成 123456
  23. cd /www/server/panel && python tools.pyc panel 123456
  24. 查看寶塔日誌
  25. cat /tmp/panelBoot.pl
  26. 查看軟件安裝日誌
  27. cat /tmp/panelExec.log
  28. 站點配置文件位置
  29. /www/server/panel/vhost
  30. 刪除域名綁定面板
  31. rm -f /www/server/panel/data/domain.conf
  32. 清理登陸限制
  33. rm -f /www/server/panel/data/*.login
  34. 查看面板授權 IP
  35. cat /www/server/panel/data/limitip.conf
  36. 關閉訪問限制
  37. rm -f /www/server/panel/data/limitip.conf
  38. 查看許可域名
  39. cat /www/server/panel/data/domain.conf
  40. 關閉面板 SSL
  41. rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart
  42. 查看面板錯誤日誌
  43. cat /tmp/panelBoot
  44. 查看數據庫錯誤日誌
  45. cat /www/server/data/*.err
  46. 站點配置文件目錄(nginx)
  47. /www/server/panel/vhost/nginx
  48. 站點配置文件目錄(apache)
  49. /www/server/panel/vhost/apache
  50. 站點默認目錄
  51. /www/wwwroot
  52. 數據庫備份目錄
  53. /www/backup/database
  54. 站點備份目錄
  55. /www/backup/site
  56. 站點日誌
  57. /www/wwwlogs

Nginx 服務管理

 
  1. nginx 安裝目錄
  2. /www/server/nginx
  3. 啓動
  4. /etc/init.d/nginx start
  5. 停止
  6. /etc/init.d/nginx stop
  7. 重啓
  8. /etc/init.d/nginx restart
  9. 啓載
  10. /etc/init.d/nginx reload
  11. nginx 配置文件
  12. /www/server/nginx/conf/nginx.conf
  13. Apache 服務管理
  14. apache 安裝目錄
  15. /www/server/httpd
  16. 啓動
  17. /etc/init.d/httpd start
  18. 停止
  19. /etc/init.d/httpd stop
  20. 重啓
  21. /etc/init.d/httpd restart
  22. 啓載
  23. /etc/init.d/httpd reload
  24. apache 配置文件
  25. /www/server/apache/conf/httpd.conf

MySQL 服務管理

 
  1. mysql 安裝目錄
  2. /www/server/mysql
  3. phpmyadmin 安裝目錄
  4. /www/server/phpmyadmin
  5. 數據存儲目錄
  6. /www/server/data
  7. 啓動
  8. /etc/init.d/mysqld start
  9. 停止
  10. /etc/init.d/mysqld stop
  11. 重啓
  12. /etc/init.d/mysqld restart
  13. 啓載
  14. /etc/init.d/mysqld reload
  15. mysql 配置文件
  16. /etc/my.cnf

FTP 服務管理

 
  1. ftp 安裝目錄
  2. /www/server/pure-ftpd
  3. 啓動
  4. /etc/init.d/pure-ftpd start
  5. 停止
  6. /etc/init.d/pure-ftpd stop
  7. 重啓
  8. /etc/init.d/pure-ftpd restart
  9. ftp 配置文件
  10. /www/server/pure-ftpd/etc/pure-ftpd.conf

PHP 服務管理

 
  1. php 安裝目錄
  2. /www/server/php
  3. 啓動(請根據安裝 PHP 版本號做更改,例如:/etc/init.d/php-fpm-54 start)
  4. /etc/init.d/php-fpm-{52|53|54|55|56|70|71} start
  5. 停止(請根據安裝 PHP 版本號做更改,例如:/etc/init.d/php-fpm-54 stop)
  6. /etc/init.d/php-fpm-{52|53|54|55|56|70|71} stop
  7. 重啓(請根據安裝 PHP 版本號做更改,例如:/etc/init.d/php-fpm-54 restart)
  8. /etc/init.d/php-fpm-{52|53|54|55|56|70|71} restart
  9. 啓載(請根據安裝 PHP 版本號做更改,例如:/etc/init.d/php-fpm-54 reload)
  10. /etc/init.d/php-fpm-{52|53|54|55|56|70|71} reload
  11. 配置文件(請根據安裝 PHP 版本號做更改,例如:/www/server/php/52/etc/php.ini)
  12. /www/server/php/{52|53|54|55|56|70|71}/etc/php.ini

Redis 服務管理

 
  1. redis 安裝目錄
  2. /www/server/redis
  3. 啓動
  4. /etc/init.d/redis start
  5. 停止
  6. /etc/init.d/redis stop
  7. redis 配置文件
  8. /www/server/redis/redis.conf

Memcached 服務管理

 
  1. memcached 安裝目錄
  2. /usr/local/memcached
  3. 啓動
  4. /etc/init.d/memcached start
  5. 停止
  6. /etc/init.d/memcached stop
  7. 重啓
  8. /etc/init.d/memcached restart
  9. 啓載
  10. /etc/init.d/memcached reload

如有不全、歡迎投稿。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章