您现在的位置是:首页 > 网站制作 > 网站建设网站建设

宝塔LINUX管理面板命令大全

胜于蓝2019-08-23【网站建设】人已围观

简介安装宝塔Centos安装脚本 yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.shUbuntu/Deepin安装脚本 wget -O instal

安装宝塔

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

WAR胜于蓝|优秀个人博客

管理宝塔

停止

 
  1. /etc/init.d/bt stop
启动

 
  1. /etc/init.d/bt start
重启

 
  1. /etc/init.d/bt restart
卸载

 
  1. /etc/init.d/bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel
查看当前面板端口

 
  1. cat /www/server/panel/data/port.pl
修改面板端口,如要改成8881(centos 6 系统)

 
  1. echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart
  2. iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 8881 -j ACCEPT
  3. service iptables save
  4. service iptables restart
修改面板端口,如要改成8881(centos 7 系统)

 
  1. echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart
  2. firewall-cmd --permanent --zone=public --add-port=8881/tcp
  3. firewall-cmd --reload
强制修改MySQL管理(root)密码,如要改成123456

 
  1. cd /www/server/panel && python tools.pyc root 123456
修改面板密码,如要改成123456

 
  1. cd /www/server/panel && python tools.pyc panel 123456
查看宝塔日志

 
  1. cat /tmp/panelBoot.pl
查看软件安装日志

 
  1. cat /tmp/panelExec.log
站点配置文件位置

 
  1. /www/server/panel/vhost
删除域名绑定面板

 
  1. rm -f /www/server/panel/data/domain.conf
清理登陆限制

 
  1. rm -f /www/server/panel/data/*.login
查看面板授权IP

 
  1. cat /www/server/panel/data/limitip.conf
关闭访问限制

 
  1. rm -f /www/server/panel/data/limitip.conf
查看许可域名

 
  1. cat /www/server/panel/data/domain.conf
关闭面板SSL

 
  1. rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart
查看面板错误日志

 
  1. cat /tmp/panelBoot
查看数据库错误日志

 
  1. cat /www/server/data/*.err
站点配置文件目录(nginx)

 
  1. /www/server/panel/vhost/nginx
站点配置文件目录(apache)

 
  1. /www/server/panel/vhost/apache
站点默认目录

 
  1. /www/wwwroot
数据库备份目录

 
  1. /www/backup/database
站点备份目录

 
  1. /www/backup/site
站点日志

 
  1. /www/wwwlogs

WAR胜于蓝|优秀个人博客

Nginx服务管理

nginx安装目录

 
  1. /www/server/nginx
启动

 
  1. /etc/init.d/nginx start
停止

 
  1. /etc/init.d/nginx stop
重启

 
  1. /etc/init.d/nginx restart
启载

 
  1. /etc/init.d/nginx reload
nginx配置文件

 
  1. /www/server/nginx/conf/nginx.conf

WAR胜于蓝|优秀个人博客

Apache服务管理

apache安装目录

 
  1. /www/server/httpd
启动

 
  1. /etc/init.d/httpd start
停止

 
  1. /etc/init.d/httpd stop
重启

 
  1. /etc/init.d/httpd restart
启载

 
  1. /etc/init.d/httpd reload
apache配置文件

 
  1. /www/server/apache/conf/httpd.conf

WAR胜于蓝|优秀个人博客

MySQL服务管理

mysql安装目录

 
  1. /www/server/mysql
phpmyadmin安装目录

 
  1. /www/server/phpmyadmin
数据存储目录

 
  1. /www/server/data
启动

 
  1. /etc/init.d/mysqld start
停止

 
  1. /etc/init.d/mysqld stop
重启

 
  1. /etc/init.d/mysqld restart
启载

 
  1. /etc/init.d/mysqld reload
mysql配置文件

 
  1. /etc/my.cnf

WAR胜于蓝|优秀个人博客

FTP服务管理

ftp安装目录

 
  1. /www/server/pure-ftpd
启动

 
  1. /etc/init.d/pure-ftpd start
停止

 
  1. /etc/init.d/pure-ftpd stop
重启

 
  1. /etc/init.d/pure-ftpd restart
ftp配置文件

 
  1. /www/server/pure-ftpd/etc/pure-ftpd.conf

WAR胜于蓝|优秀个人博客

PHP服务管理

php安装目录

 
  1. /www/server/php
启动(请根据安装PHP版本号做更改,例如:/etc/init.d/php-fpm-54 start)

 
  1. /etc/init.d/php-fpm-{52|53|54|55|56|70|71} start
停止(请根据安装PHP版本号做更改,例如:/etc/init.d/php-fpm-54 stop)

 
  1. /etc/init.d/php-fpm-{52|53|54|55|56|70|71} stop
重启(请根据安装PHP版本号做更改,例如:/etc/init.d/php-fpm-54 restart)

 
  1. /etc/init.d/php-fpm-{52|53|54|55|56|70|71} restart
启载(请根据安装PHP版本号做更改,例如:/etc/init.d/php-fpm-54 reload)

 
  1. /etc/init.d/php-fpm-{52|53|54|55|56|70|71} reload
配置文件(请根据安装PHP版本号做更改,例如:/www/server/php/52/etc/php.ini)

 
  1. /www/server/php/{52|53|54|55|56|70|71}/etc/php.ini

WAR胜于蓝|优秀个人博客

Redis服务管理

redis安装目录

 
  1. /www/server/redis
启动

 
  1. /etc/init.d/redis start
停止

 
  1. /etc/init.d/redis stop
redis配置文件

 
  1. /www/server/redis/redis.conf

WAR胜于蓝|优秀个人博客

Memcached服务管理

memcached安装目录

 
  1. /usr/local/memcached
启动

 
  1. /etc/init.d/memcached start
停止

 
  1. /etc/init.d/memcached stop
重启

 
  1. /etc/init.d/memcached restart
启载

 
  1. /etc/init.d/memcached reload

Tags:

很赞哦! ()

文章评论

当前时间

快速排名

  • 网站建设|万词霸屏,企业软文推广,刷下拉框
  • 快速排名:不用再等SEO三个月,只需3-7天即可把行业关键词覆盖百度搜索引擎首页,点击不收费,排名报表,真实访问量报表一目了然。

合作加盟

  • 扫码请注明来意,否则不会通过
  • 填写商户姓名不要带有“超市”,“便利店” ,“百货”等
  • 扫码成为快钱代理
  • 扫码加站长微信,为您推荐快钱总部负责人
  • 快钱POSS机(电签版)
  • 1,免押版:签约费率快捷交易0.38%,常规交易0.65%
  • 贷记卡单笔≥3000元视为激活
  • 2,,有押版:签约快捷交易0.38%,常规交易0.65%
  • 激活首刷≥99元,扣除99元系统服务费,多出部分shishi到账
  • 电签版ipos参与每月扶持奖励
  • 电签版ipos与Mpos单独考核台均
  • 30台以上有效激活奖励3000元扶持金
  • 当月交易额≥3000元的为活跃用户

站点信息

  • 建站时间:2018-10-24
  • 网站程序:帝国CMS7.5
  • 主题模板《今夕何夕》
  • 文章统计7074篇文章
  • 标签管理标签云
  • 统计数据百度统计
  • 扫描二维码:请注明来意,否则不会通过
  • 微信号:扫描二维码,关注我们
歌名 - 歌手
0:00