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

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

[复制链接]
我来看看 发表于 2023-03-18 02:33:54 | 显示全部楼层 |阅读模式
; G. a8 v. u6 X

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

- Q3 k" `6 ?" G

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

+ V X) H' q! i* n1 Z. S3 Q% J

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

4 p% | m* t* L( D3 k8 V8 O

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

; s7 ]- o- \ Z9 b( ~/ p4 U

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

6 c! b! o! G! A: @

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

* `. U1 I. h! R) l$ ]

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

0 \& b( G, L v" g1 y1 L

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

- {! }& j. }) E/ Z9 J v' L. l1 O7 f0 F

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

9 Z# J/ w) X4 Q$ x2 r- S+ `

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

1 w% Z( @4 K H$ n/ \' n* l

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

5 e4 x X7 e7 \1 M0 q4 d# b! Y

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

8 H: P* ^5 [0 S, |0 `

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

, F- h- Y- D4 b7 \! m+ c4 ]3 R

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

& _+ {1 u+ [, Q# M2 J) w

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

, d6 q& i" e" R

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

5 @3 `5 }0 C A; v8 Z

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

# Z0 b$ m, p+ f V

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

: M+ c: s8 P- T' J7 i) G0 u( J

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

" C6 u6 K9 Z4 U# E: W! o! D$ G% `

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

( I& I- B* r( Z- w7 y2 q6 O- T

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

; d) q7 q2 h s2 D! c' b9 h& Z

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

- o ^+ O5 V I! n. @8 g7 m

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

6 h/ P$ F. r; q3 N' Y' w# w 5 a3 i) I$ n0 }% I' o# f7 ? 2 h# D7 `$ @. W- y. Q4 R0 v z & {9 x( D* H" f4 ~ 0 c. M& @- W% n. K# O! y9 n: S

暂时无法加载帖子列表

回复

使用道具 举报

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

使用道具 举报

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

使用道具 举报

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

    本版积分规则

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

    GMT+8, 2026-10-31 20:13 , Processed in 0.034985 second(s), 25 queries , Gzip On.

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

    Powered by Discuz! X3.5

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