宝塔迷 - 脚本命令 https://www.baota.me/script.html 分享宝塔面板常用脚本命令 堡塔日志分析系统安装命令 https://www.baota.me/post-389.html 2023-10-04T17:17:00+08:00 简单介绍可视化的日志查询分析系统,多主机日志汇总、存储,海量数据快速查询,同时具备网站统计数据的可视化分析,拥有高度可扩展性,是运维和运营人员的好帮手。演示图片安装方法使用 SSH 连接工具,如 堡塔SSH终端 连接到您的 Linux 服务器后,根据系统执行相应命令开始安装(大约2分钟完成面板安装)注意:推荐使用Chrome、火狐、edge浏览器,国产浏览器(极速模式)安装命令URL=https://download.bt.cn/cloudwaf/scripts/install_cloudwaf.sh && if [ -f /usr/bin/curl ];then curl -sSO "$URL" ;else wget -O install_cloudwaf.sh "$URL";fi;bash install_cloudwaf.sh 堡塔云WAF防火墙安装命令 https://www.baota.me/post-387.html 2023-10-04T17:11:48+08:00 简单介绍基于宝塔面板10年行业积累,打造的免费私有云WAF防火墙,有效拦截sql注入、xss、一句话木马、防采集等常见渗透攻击,为您的业务网站保驾护航。演示图片安装方法使用 SSH 连接工具,如 堡塔SSH终端 连接到您的 Linux 服务器后,根据系统执行相应命令开始安装(大约2分钟完成面板安装)注意:推荐使用Chrome、火狐、edge浏览器,国产浏览器(极速模式)安装命令URL=https://download.bt.cn/cloudwaf/scripts/install_cloudwaf.sh && if [ -f /usr/bin/curl ];then curl -sSO "$URL" ;else wget -O install_cloudwaf.sh "$URL";fi;bash install_cloudwaf.sh 宝塔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 宝塔面板修复命令 https://www.baota.me/post-242.html 2023-03-03T13:28:45+08:00 宝塔面板修复命令其实是官方提供的更新命令,对文件进行覆盖更新。堡塔命令行工具箱 修复面板bt 16普通修复命令(更新面板文件)curl https://download.bt.cn/install/update_panel.sh|bash重装环境修复(重装环境并更新面板文件)rm -rf /www/server/panel/pyenv && curl https://download.bt.cn/install/update_panel.sh|bash 宝塔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