宝塔迷 - 宝塔面板命令 https://www.baota.me/tag/orders.html 宝塔linux面板服务管理命令 https://www.baota.me/post-276.html 2023-03-06T15:15:00+08:00 卸载面板/etc/init.d/bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel卸载脚本wget http://download.bt.cn/install/bt-uninstall.sh && bash bt-uninstall.sh重装面板环境rm -rf /www/server/panel/pyenv && curl https://download.bt.cn/install/update_panel.sh|bash检查nginx网站劫持木马curl -sSO -k https://download.bt.cn/tools/w_check.py && btpython w_check.py && rm -rf w_check.py堡塔命令行工具箱 (仅限6.x以上版本的面板,5.x以下版本请点击右侧目录 - 旧版本管理宝塔)bt重启面板bt 1停止面板bt 2启动面板bt 3重载面板bt 4修改面板密码 (交互式,执行命令后回车输入新的面板密码即可,推荐密码规则:大小写字母,数字,特殊符号)bt 5修改面板用户名 (交互式,执行命令后回车输入新的面板用户名即可,推荐用户名规则:大小写字母,数字,特殊符号)bt 6修改数据库密码bt 7修改面板使用端口bt 8清除面板缓存bt 9清除面板登录限制bt 10取消域名绑定限制bt 12取消IP访问限制bt 13查看面板默认登录信息bt 14清理系统垃圾bt 15修复面板bt 16设置日志切割是否压缩 (默认开启,执行第一次bt 17是关闭日志压缩,再执行一次是开启日志压缩)bt 17设置是否自动备份面板 (默认开启,执行第一次bt 18是关闭面板自动备份,再执行一次是开启面板自动备份)bt 18显示面板错误日志bt 22关闭BasicAuth认证bt 23关闭动态口令认证bt 24设置是否保存文件历史副本 (默认开启,执行第一次bt 25是关闭文件副本功能,再执行一次是开启文件副本功能)bt 25关闭面板静态文件加速rm -rf /www/server/panel/plugin/static_cdn/ && bt restart开启面板离线模式echo "True" >/www/server/panel/data/not_network.pl关闭面板离线模式rm -rf /www/server/panel/data/not_network.pl && bt restart 宝塔linux面板Memcached服务管理命令 https://www.baota.me/post-284.html 2023-01-01T17:01:00+08:00 memcached安装目录/usr/local/memcached启动/etc/init.d/memcached start停止/etc/init.d/memcached stop重启/etc/init.d/memcached restart启载/etc/init.d/memcached reload 宝塔linux面板Redis服务管理命令 https://www.baota.me/post-283.html 2023-01-01T17:00:00+08:00 redis安装目录/www/server/redis启动/etc/init.d/redis start停止/etc/init.d/redis stopredis配置文件/www/server/redis/redis.conf 宝塔linux面板FTP服务管理命令 https://www.baota.me/post-281.html 2023-01-01T16:56:00+08:00 ftp安装目录/www/server/pure-ftpd启动/etc/init.d/pure-ftpd start停止/etc/init.d/pure-ftpd stop重启/etc/init.d/pure-ftpd restartftp配置文件/www/server/pure-ftpd/etc/pure-ftpd.conf 宝塔linux面板PHP服务管理命令 https://www.baota.me/post-282.html 2023-01-01T16:56:00+08:00 php安装目录/www/server/php启动 (请根据安装PHP版本号做更改,例如:/etc/init.d/php-fpm-54 start)/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} start停止 (请根据安装PHP版本号做更改,例如:/etc/init.d/php-fpm-54 stop)/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} stop重启 (请根据安装PHP版本号做更改,例如:/etc/init.d/php-fpm-54 restart)/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} restart启载 (请根据安装PHP版本号做更改,例如:/etc/init.d/php-fpm-54 reload)/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} reload配置文件 (请根据安装PHP版本号做更改,例如:/www/server/php/52/etc/php.ini)/www/server/php/{52|53|54|55|56|70|71|72|73|74}/etc/php.ini 宝塔linux面板Apache服务管理命令 https://www.baota.me/post-279.html 2023-01-01T16:36:00+08:00 apache安装目录/www/server/httpd启动/etc/init.d/httpd start停止/etc/init.d/httpd stop重启/etc/init.d/httpd restart启载/etc/init.d/httpd reloadapache配置文件/www/server/apache/conf/httpd.conf 宝塔linux面板MySQL服务管理命令 https://www.baota.me/post-280.html 2023-01-01T16:36:00+08:00 mysql安装目录/www/server/mysqlphpmyadmin安装目录/www/server/phpmyadmin数据存储目录/www/server/data启动/etc/init.d/mysqld start停止/etc/init.d/mysqld stop重启/etc/init.d/mysqld restart启载/etc/init.d/mysqld reloadmysql配置文件/etc/my.cnf 宝塔linux面板Nginx服务管理命令 https://www.baota.me/post-278.html 2023-01-01T16:11:00+08:00 nginx安装目录/www/server/nginx启动/etc/init.d/nginx start停止/etc/init.d/nginx stop重启/etc/init.d/nginx restart启载/etc/init.d/nginx reloadnginx配置文件/www/server/nginx/conf/nginx.conf 宝塔linux面板5.9服务管理命令 https://www.baota.me/post-277.html 2023-01-01T15:16:00+08:00 停止/etc/init.d/bt stop启动/etc/init.d/bt start重启/etc/init.d/bt restart查看当前面板端口cat /www/server/panel/data/port.pl修改面板端口,如要改成8881(CentOS 6 系统)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修改面板端口,如要改成8881(CentOS 7 系统)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强制修改MySQL管理(root)密码,如要改成123456cd /www/server/panel && python tools.py root 123456修改面板密码,如要改成123456cd /www/server/panel && python tools.py panel 123456查看面板用户名cd /www/server/panel && python tools.py username查看宝塔日志cat /tmp/panelBoot.pl查看软件安装日志cat /tmp/panelExec.log站点配置文件位置/www/server/panel/vhost删除域名绑定面板rm -f /www/server/panel/data/domain.conf清理登陆限制rm -f /www/server/panel/data/*.login查看面板授权IPcat /www/server/panel/data/limitip.conf关闭访问限制rm -f /www/server/panel/data/limitip.conf查看许可域名cat /www/server/panel/data/domain.conf关闭面板SSLrm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart查看面板错误日志cat /tmp/panelBoot查看数据库错误日志cat /www/server/data/*.err站点配置文件目录(nginx)/www/server/panel/vhost/nginx站点配置文件目录(apache)/www/server/panel/vhost/apache站点默认目录/www/wwwroot数据库备份目录/www/backup/database站点备份目录/www/backup/site站点日志/www/wwwlogs 宝塔云监控面板安装命令 https://www.baota.me/post-192.html 2022-10-21T12:31:00+08:00 简单介绍堡塔云监控,多台服务器集中监控展示,实时接收异常提醒,帮助运维快速定位故障。演示图片安装方法使用 SSH 连接工具,如 堡塔SSH终端 连接到您的 Linux 服务器后,根据系统执行相应命令开始安装(大约2分钟完成面板安装)注意:推荐使用Chrome、火狐、edge浏览器,国产浏览器(极速模式)安装命令curl -sS http://download.bt.cn/install/install_btmonitor.sh -o /tmp/install_btmonitor.sh && bash /tmp/install_btmonitor.sh