Bt(宝塔面板)的面板很好用,但是我们不排除面板出现问题,不能登陆,这种情况我们就只能利用ssh登陆来输入命令解决很多的问题,小编这里收罗了一点常用命令,不过我看到他们官方也是有的56云这里也就是记录一下,方便自己平时查阅。
一:安装宝塔
宝塔Linux面板5.9(稳定版)安装命令:
Centos安装脚本
yum安装- y wget,,wget - o安装。sh http://download.bt.cn/install/install_6.0.sh,,sh安装。Ubuntu sh 8 c0882dde
/深化版的安装脚本
wget - o安装。sh http://download.bt.cn/install/install-ubuntu_6.0.sh,,sudo bash安装。sh 8 c0882dde
Debian安装脚本
wget - o安装。sh http://download.bt.cn/install/install-ubuntu_6.0.sh,,bash安装。sh 8 c0882dde
Fedora安装脚本
wget - o安装。sh http://download.bt.cn/install/install_6.0.sh,,bash安装。sh 8 c0882dde
二:管理宝塔面板
停止面板
/etc/init。d/bt停止
启动面板
/etc/init。d/bt开始
重启面板
/etc/init。d/bt重启
卸载面板
/etc/init。d/bt停止,,chkconfig——德尔bt,,rm - f/etc/init.d/bt,,rm射频/www/服务器/小组
查看当前面板端口
猫/www/服务器/小组/数据/端口。pl
修改面板端口,如要改成8881 (centos 6系统)
开始修改面板端口,如要改成8881 (centos 7系统)
回声‘8881’比;/www/服务器/小组/数据/端口。pl,,/etc/init.d/bt restartfirewall-cmd——永久区公共——添加一个端口=8881/tcpfirewall-cmd重载=
强制修改MySQL管理(根)密码,如要改成123456
cd/www/服务器/面板,,python工具。佩克根123456名
修改面板密码,如要改成123456
cd/www/服务器/面板,,python工具。佩克面板123456名
查看宝塔日志
猫/tmp/panelBoot.pl
查看软件安装日志
猫/tmp/panelExec.log
站点配置文件位置
/www/服务器/小组/vhost
删除域名绑定面板
rm - f/www/服务器/小组/数据/domain.conf
清理登陆限制
rm - f/www/服务器/小组/数据/* .login
查看面板授权IP
猫/www/服务器/小组/数据/limitip.conf
关闭访问限制
rm - f/www/服务器/小组/数据/limitip.conf
查看许可域名
猫/www/服务器/小组/数据/domain.conf
关闭面板SSL
rm - f/www/服务器/小组/数据/ssl。pl,,/etc/init.d/bt重启
查看面板错误日志
猫/tmp/panelBoot
查看数据库错误日志
猫/www/服务器/数据/* .err
站点配置文件目录(nginx)
/www/服务器/小组/vhost/nginx
站点配置文件目录(apache)
/www/服务器/小组/vhost/apache
站点默认目录
/www/wwwroot
数据库备份目录
/www/备份/数据库
站点备份目录
/www/备份/网站站点日志
/www/wwwlogs
三:Nginx服务管理
Nginx安装目录
/www/服务器/nginx
启动
/etc/init。d/nginx开始
停止
/etc/init。d/nginx停止
重启
/etc/init。d/nginx重启
启载
/etc/init。d/nginx重载
nginx配置文件
/www/服务器/nginx/conf/nginx.conf
四:Apache服务管理
Apache安装目录
/www/服务器/httpd
启动
/etc/init。d/httpd start
停止
/etc/init。d/httpd停止
重启
/etc/init。d/httpd重启
启载
/etc/init。d/apache httpd重载
配置文件
/www/服务器/apache/conf/httpd . conf
五:MySQL服务管理
MySQL安装目录
/www/服务器/mysql
phpmyadmin安装目录
/www/服务器/phpmyadmin
数据存储目录
/www/服务器/数据
启动
/etc/init。d/mysqld开始
停止
/etc/init。d/mysqld停止
重启
/etc/init。d/mysqld重启
启载
/etc/init。d/mysqld重载
mysql配置文件
/etc/my . cnf中所做六:FTP服务管理
FTP安装目录
/www/服务器/pure-ftpd
启动
/etc/init。d/pure-ftpd开始
停止
/etc/init。d/pure-ftpd停止
重启
/etc/init。d/pure-ftpd重启
ftp配置文件
/www/服务器/pure-ftpd/etc/pure-ftpd.conf
七:PHP服务管理
PHP安装目录
/www/服务器/php
启动(请根据安装php版本号做更改,例如:/etc/init。d/php-fpm-54开始)
/etc/init。54 53 d/php-fpm - {52 | | | | 56 55 | 70 | 71 | 72}