找回密码
 加入怎通
查看: 226|回复: 2

linux安装宝塔面板命令大全(alpine linux安装宝塔)

[复制链接]
我来看看 发表于 2023-03-18 02:33:54 | 显示全部楼层 |阅读模式
0 ?" N' M4 v# B1 E" u+ Q/ c i

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

! _% Y2 N# g8 P* [ {1 {) s

Ubuntu/Deepin安装脚本wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && sudo bash install.sh

' M5 K0 L2 S6 a& |2 E/ j1 c: r3 M0 \" b

Debian安装脚本wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.shFedora安装脚本

# ~; Z% ~2 e/ V0 ~7 t

wget -O install.sh http://download.bt.cn/install/install.sh && bash install.sh管理宝塔停止/etc/init.d/bt stop

1 [! f" D) }/ i1 u7 ^

启动/etc/init.d/bt start重启/etc/init.d/bt restart卸载/etc/init.d/bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel

: O- L9 t: P$ o

查看当前面板端口cat /www/server/panel/data/port.pl修改面板端口,如要改成8881(centos 6 系统)echo 8881 > /www/server/panel/data/port.pl && /etc/init.d/bt restart

0 y' r! m7 @/ m

iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 8881 -j ACCEPTservice iptables saveservice iptables restart

" s' D3 v; T; T% R4 P/ }, I

修改面板端口,如要改成8881(centos 7 系统)echo 8881 > /www/server/panel/data/port.pl && /etc/init.d/bt restartfirewall-cmd --permanent --zone=public --add-port=8881/tcp

) m, }* V, c U; s C' l) \

firewall-cmd --reload强制修改MySQL管理(root)密码,如要改成www123cd /www/server/panel && python tools.py root www123

1 J5 y4 C' {. j6 ?! x, g4 `* |( G

修改面板密码,如要改成123456cd /www/server/panel && python tools.py panel www123查看宝塔日志cat /tmp/panelBoot.pl查看软件安装日志

% M/ u$ m6 H$ p( @5 C- R/ z7 l% t. w

cat /tmp/panelExec.log站点配置文件位置/www/server/panel/vhost删除域名绑定面板rm -f /www/server/panel/data/domain.conf

' y/ Q2 f/ [$ N0 S9 X

清理登陆限制rm -f /www/server/panel/data/*.login查看面板授权IPcat /www/server/panel/data/limitip.conf关闭访问限制rm -f /www/server/panel/data/limitip.conf

5 E* U; A- O& |/ Z# J E$ }9 A7 v8 k

查看许可域名cat /www/server/panel/data/domain.conf关闭面板SSLrm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart

8 l8 v6 k* m" s5 `! n3 G% d! G

查看面板错误日志cat /tmp/panelBoot查看数据库错误日志cat /www/server/data/*.err站点配置文件目录(nginx)/www/server/panel/vhost/nginx

% K. _$ Y0 \1 |8 U. c

站点配置文件目录(apache)/www/server/panel/vhost/apache站点默认目录/www/wwwroot数据库备份目录/www/backup/database站点备份目录/www/backup/site

8 l1 q1 u7 h% l8 S' T0 M9 c

站点日志/www/wwwlogsNginx服务管理nginx安装目录/www/server/nginx启动/etc/init.d/nginx start停止/etc/init.d/nginx stop重启

2 I( D0 v- w( d) G

/etc/init.d/nginx restart启载/etc/init.d/nginx reloadnginx配置文件/www/server/nginx/conf/nginx.confApache服务管理

6 Z) f$ f" Y- f0 g

apache安装目录/www/server/httpd启动/etc/init.d/httpd start停止/etc/init.d/httpd stop重启/etc/init.d/httpd restart

$ R$ H7 W" r0 g, o

启载/etc/init.d/httpd reloadapache配置文件/www/server/apache/conf/httpd.confMySQL服务管理mysql安装目录/www/server/mysql

( Z# v& P# S6 Z

phpmyadmin安装目录/www/server/phpmyadmin数据存储目录/www/server/data启动/etc/init.d/mysqld start停止/etc/init.d/mysqld stop

( n! B" D0 Y; j- T1 j, [

重启/etc/init.d/mysqld restart启载/etc/init.d/mysqld reloadmysql配置文件/etc/my.cnfFTP服务管理ftp安装目录/www/server/pure-ftpd

, Y" {- ?% Z% E$ w) h

启动/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

5 g, h6 |- s- K8 b a' @

文章转自:linux安装宝塔面板命令大全_云修网

7 y3 a) [0 H9 { / P8 M* b" Y5 [; o; J ( ]( \. L- y0 r3 g) x- J0 l- b: ?$ n6 c% B( _ 6 m$ \8 D% G4 S- O

暂时无法加载帖子列表

回复

使用道具 举报

nvdjk 发表于 2026-09-16 06:37:43 | 显示全部楼层
刚好遇到类似问题,看完这个帖子心里有底了
回复

使用道具 举报

asd410881 发表于 2026-10-18 12:51:47 | 显示全部楼层
内容很干货,没有多余的废话,值得反复看
回复

使用道具 举报

    您需要登录后才可以回帖 登录 | 加入怎通

    本版积分规则

    QQ|手机版|小黑屋|网站地图|真牛社区 ( 苏ICP备2023040716号-2 )

    GMT+8, 2026-10-31 19:00 , Processed in 0.040868 second(s), 29 queries , Gzip On.

    免责声明:本站信息来自互联网,本站不对其内容真实性负责,如有侵权等情况请联系420897364#qq.com(把#换成@)删除。

    Powered by Discuz! X3.5

    快速回复 返回顶部 返回列表