Bt(寶塔面板)的面板很好用,但是我們不排除面板出現(xiàn)問題,不能登陸,這種情況我們就只能利用ssh登陸來輸入命令解決很多的問題,小編這里收羅了一點(diǎn)常用命令,不過我看到他們官方也是有的。56云這里也就是記錄一下,方便自己平時(shí)查閱。
成都創(chuàng)新互聯(lián)專注于企業(yè)網(wǎng)絡(luò)營銷推廣、網(wǎng)站重做改版、濱湖網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、H5技術(shù)、商城開發(fā)、集團(tuán)公司官網(wǎng)建設(shè)、成都外貿(mào)網(wǎng)站建設(shè)、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為濱湖等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。
一:安裝寶塔
寶塔Linux面板5.9(穩(wěn)定版)安裝命令:
Centos安裝腳本
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh 8c0882dde
Ubuntu/Deepin安裝腳本
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh 8c0882dde
Debian安裝腳本
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh 8c0882dde
Fedora安裝腳本
wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh 8c0882dde
二:管理寶塔面板
停止面板
/etc/init.d/bt stop
啟動(dòng)面板
/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
查看當(dāng)前面板端口
cat /www/server/panel/data/port.pl
修改面板端口,如要改成8881(centos 6 系統(tǒng))
start
修改面板端口,如要改成8881(centos 7 系統(tǒng))
echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restartfirewall-cmd --permanent --zone=public --add-port=8881/tcpfirewall-cmd --reload
強(qiáng)制修改MySQL管理(root)密碼,如要改成123456
cd /www/server/panel && python tools.pyc root 123456
修改面板密碼,如要改成123456
cd /www/server/panel && python tools.pyc panel 123456
查看寶塔日志
cat /tmp/panelBoot.pl
查看軟件安裝日志
cat /tmp/panelExec.log
站點(diǎn)配置文件位置
/www/server/panel/vhost
刪除域名綁定面板
rm -f /www/server/panel/data/domain.conf
清理登陸限制
rm -f /www/server/panel/data/*.login
查看面板授權(quán)IP
cat /www/server/panel/data/limitip.conf
關(guān)閉訪問限制
rm -f /www/server/panel/data/limitip.conf
查看許可域名
cat /www/server/panel/data/domain.conf
關(guān)閉面板SSL
rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart
查看面板錯(cuò)誤日志
cat /tmp/panelBoot
查看數(shù)據(jù)庫錯(cuò)誤日志
cat /www/server/data/*.err
站點(diǎn)配置文件目錄(nginx)
/www/server/panel/vhost/nginx
站點(diǎn)配置文件目錄(apache)
/www/server/panel/vhost/apache
站點(diǎn)默認(rèn)目錄
/www/wwwroot
數(shù)據(jù)庫備份目錄
/www/backup/database
站點(diǎn)備份目錄
/www/backup/site
站點(diǎn)日志
/www/wwwlogs
三:Nginx服務(wù)管理
nginx安裝目錄
/www/server/nginx
啟動(dòng)
/etc/init.d/nginx start
停止
/etc/init.d/nginx stop
重啟
/etc/init.d/nginx restart
啟載
/etc/init.d/nginx reload
nginx配置文件
/www/server/nginx/conf/nginx.conf
四:Apache服務(wù)管理
apache安裝目錄
/www/server/httpd
啟動(dòng)
/etc/init.d/httpd start
停止
/etc/init.d/httpd stop
重啟
/etc/init.d/httpd restart
啟載
/etc/init.d/httpd reload
apache配置文件
/www/server/apache/conf/httpd.conf
五:MySQL服務(wù)管理
mysql安裝目錄
/www/server/mysql
phpmyadmin安裝目錄
/www/server/phpmyadmin
數(shù)據(jù)存儲(chǔ)目錄
/www/server/data
啟動(dòng)
/etc/init.d/mysqld start
停止
/etc/init.d/mysqld stop
重啟
/etc/init.d/mysqld restart
啟載
/etc/init.d/mysqld reload
mysql配置文件
/etc/my.cnf
六:FTP服務(wù)管理
ftp安裝目錄
/www/server/pure-ftpd
啟動(dòng)
/etc/init.d/pure-ftpd start
停止
/etc/init.d/pure-ftpd stop
重啟
/etc/init.d/pure-ftpd restart
ftp配置文件
/www/server/pure-ftpd/etc/pure-ftpd.conf
七:PHP服務(wù)管理
php安裝目錄
/www/server/php
啟動(dòng)(請(qǐng)根據(jù)安裝PHP版本號(hào)做更改,例如:/etc/init.d/php-fpm-54 start)
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72} start
停止(請(qǐng)根據(jù)安裝PHP版本號(hào)做更改,例如:/etc/init.d/php-fpm-54 stop)
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72} stop
重啟(請(qǐng)根據(jù)安裝PHP版本號(hào)做更改,例如:/etc/init.d/php-fpm-54 restart)
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72} restart
啟載(請(qǐng)根據(jù)安裝PHP版本號(hào)做更改,例如:/etc/init.d/php-fpm-54 reload)
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72} reload
配置文件(請(qǐng)根據(jù)安裝PHP版本號(hào)做更改,例如:/www/server/php/52/etc/php.ini)
/www/server/php/{52|53|54|55|56|70|71|72}/etc/php.ini
八:redis服務(wù)管理
redis安裝目錄
/www/server/redis
啟動(dòng)
/etc/init.d/redis start
停止
/etc/init.d/redis stop
redis配置文件
/www/server/redis/redis.conf
九:Memcached服務(wù)管理
memcached安裝目錄
/usr/local/memcached
啟動(dòng)
/etc/init.d/memcached start
停止
/etc/init.d/memcached stop
重啟
/etc/init.d/memcached restart
啟載
/etc/init.d/memcached reload
十:寶塔面板切換免費(fèi)版/專業(yè)版
免費(fèi)版升級(jí)專業(yè)版
wget -O update.sh http://download.bt.cn/install/update.sh && bash update.sh pro
專業(yè)版降級(jí)為免費(fèi)版
wget -O update.sh http://download.bt.cn/install/update.sh && bash update.sh free
如果免費(fèi)版專業(yè)版切換看的不是很明了,可以看看大鳥寫過的教程:Linux-BT(寶塔面板)切換免費(fèi)版/專業(yè)版教程
十一:Linux面板6.X安裝命令
Centos安裝命令:
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
Ubuntu/Deepin安裝命令:
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh
Debian安裝命令:
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh
Fedora安裝命令:
wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh
十二:5.x平滑升級(jí)到6.x命令
curl http://download.bt.cn/install/update_to_6.sh|bash
注意:
1、Centos6請(qǐng)勿執(zhí)行此升級(jí)命令,僅限于Centos7系統(tǒng)平滑升級(jí)
2、升級(jí)過程耗時(shí)較長且可能會(huì)受網(wǎng)絡(luò)因素影響導(dǎo)致升級(jí)失敗
3、如果升級(jí)后無法正常啟動(dòng)面板,請(qǐng)重新執(zhí)行升級(jí)命令
4、升級(jí)有一定的風(fēng)險(xiǎn),生產(chǎn)環(huán)境請(qǐng)謹(jǐn)慎升級(jí)
十三:寶塔面板卸載命令
wget http://download.bt.cn/install/bt-uninstall.shsh bt-uninstall.sh
卸載教程:寶塔面板(linux)卸載的一些方法的整理以及卸載之后一些文件的刪除
十四:更新證書
"/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh"
強(qiáng)制更新所有l(wèi)et證書
"/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" --force
十五:提示ip地址獲取失敗
面板綁定寶塔賬號(hào)提示ip地址獲取失?。?/p>
echo "125.88.182.170 www.bt.cn" >> /etc/hosts
十六:bt命令
寶塔面板新增快捷命令,SSH中輸入bt直接調(diào)出來15個(gè)小工具,其中包括重啟面板、修改面板密碼、修改MYSQL密碼、取消綁定域名限制等。
網(wǎng)站題目:Bt(寶塔面板)常用命令大全
網(wǎng)站網(wǎng)址:http://aaarwkj.com/article6/ihhhog.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供自適應(yīng)網(wǎng)站、用戶體驗(yàn)、ChatGPT、定制開發(fā)、App開發(fā)、網(wǎng)站改版
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)