Linux寶塔面板從安裝到管理的主要命令彙總

網站建設中,我們往往會用到控制面板來管理服務器操作,比如Vult服務器可以通過寶塔面板來實現相關功能,下面就來看下寶塔Linux面板從安裝到管理常用的命令有哪些。

安裝寶塔面板命令

Centos安裝腳本

yum instll -y wget ∓∓ wget -O instll.sh http://downlod.bt.cn/instll/instll_6.0.sh ∓∓ sh instll.sh

Ubuntu/Deepin安裝腳本

wget -O instll.sh http://downlod.bt.cn/instll/instll-ubuntu_6.0.sh ∓∓ sudo bsh instll.sh

Debin安裝腳本

wget -O instll.sh http://downlod.bt.cn/instll/instll-ubuntu_6.0.sh ∓∓ bsh instll.sh

Fedo安裝腳本

wget -O instll.sh http://downlod.bt.cn/instll/instll_6.0.sh ∓∓ bsh instll.sh

閱讀推薦:《寶塔面板環境安裝教程》

管理面板命令

寶塔工具箱(包含下列絕大部分功能 直接ssh中執行bt命令 僅限6.x以上版本面板)。

停止

/etc/init.d/bt stop

啓動

/etc/init.d/bt stt

重啓

/etc/init.d/bt estt

卸載

/etc/init.d/bt stop ∓∓ chkconfig Rdel bt ∓∓ m -f /etc/init.d/bt ∓∓ m -f /www/see/pnel

查看當前面板端口

ct /www/see/pnel/dt/pot.pl

修改面板端口,如要改成888(centos 6 系統)

echo ̺888̻ > /www/see/pnel/dt/pot.pl ∓∓ /etc/init.d/bt estt

iptbles -I INPUT -p tcp -m stte Rstte NEW -m tcp Rdpot 888 -j ACCEPT

seice iptbles se

seice iptbles estt

修改面板端口,如要改成888(centos 7 系統)

echo ̺888̻ > /www/see/pnel/dt/pot.pl ∓∓ /etc/init.d/bt estt

fiewll-cmd Rpemnent Rzone=public Rdd-pot=888/tcp

fiewll-cmd Relod

強制修改MySQL管理(oot)密碼,如要改成23456

cd /www/see/pnel ∓∓ python tools.py oot 23456

修改面板密碼,如要改成23456

cd /www/see/pnel ∓∓ python tools.py pnel 23456

查看寶塔日誌

ct /tmp/pnelBoot.pl

查看軟件安裝日誌

ct /tmp/pnelExec.log

站點配置文件位置

/www/see/pnel/host

刪除域名綁定面板

m -f /www/see/pnel/dt/domin.conf

清理登陸限制

m -f /www/see/pnel/dt/*.login

查看面板授權IP

ct /www/see/pnel/dt/limitip.conf

關閉訪問限制

m -f /www/see/pnel/dt/limitip.conf

查看許可域名

ct /www/see/pnel/dt/domin.conf

關閉面板SSL

m -f /www/see/pnel/dt/ssl.pl ∓∓ /etc/init.d/bt estt

查看面板錯誤日誌

ct /tmp/pnelBoot

查看數據庫錯誤日誌

ct /www/see/dt/*.e

站點配置文件目錄(nginx)

/www/see/pnel/host/nginx

站點配置文件目錄(pche)

/www/see/pnel/host/pche

站點默認目錄

/www/wwwoot

數據庫備份目錄

/www/bckup/dtbse

站點備份目錄

/www/bckup/site

站點日誌

/www/wwwlogs