|NO.Z.00021|——————————|NavigationLog|——|寶塔Linux.V7.4.5|
阿新 • • 發佈:2022-03-22
[NavigationIng:寶塔Linux.V7.4.5] [NavigationIng.了不起]
一、概述:
### --- 面板特色功能: ~~~ 一鍵配置伺服器環境(LAMP/LNMP) ~~~ 一鍵安全重啟 ~~~ 一鍵建立管理網站、ftp、資料庫 ~~~ 一鍵部署SSL證書 ~~~ 一鍵部署原始碼(discuz、wordpress、dedecms、z-blog、微擎等等) ~~~ 一鍵配置(定期備份、資料匯入、偽靜態、301、SSL、子目錄、反向代理、切換PHP版本) ~~~ 一鍵安裝常用PHP擴充套件(fileinfo、intl、opcache、imap、memcache、apc、redis、ioncube、imagick) ~~~ 資料庫一鍵匯入匯出 ~~~ 系統監控(CPU、記憶體、磁碟IO、網路IO) ~~~ 防火牆埠放行 ~~~ SSH開啟與關閉及SSH埠更改 ~~~ 禁PING開啟或關閉 ~~~ 方便高效的檔案管理器(上傳、下載、壓縮、解壓、檢視、編輯等等) ~~~ 計劃任務(定期備份、日誌切割、shell指令碼) ~~~ 軟體管理(一鍵安裝、解除安裝、版本切換) ~~~ 嚴格目錄和檔案許可權 ~~~ 增加全面防暴破機制 ~~~ 增強面板session的安全性 ~~~ 增強面板入口驗證機制 ~~~ 優化寶塔終端 ~~~ 優化面板記憶體釋放機制
### --- 硬體環境要求:
~~~ 記憶體:512M以上,推薦768M以上(純面板約佔60M記憶體)
~~~ 硬碟:300M以上可硬硬碟空間(純面板約佔20M磁碟空間)
~~~ 系統:Centos7.*:確保是乾淨的作業系統,沒有安裝過Apache/nginx/php/mysql/pgsql/gitlab/Java
~~~ 架構:x86_64(主流伺服器均是此架構,ARM不完整相容)
~~~ 部署環境:centos7.6-1810
~~~ 寶塔linux版本:7.4.5
二、安裝部署寶塔Linux控制面板:
### --- 部署寶塔linux控制面板: ~~~ # 基於centos7部署寶塔linux控制面板(指令碼方式) [root@localhost ~]# yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh ~~~ 以上節點無法使用使用備用節點: [root@localhost ~]# yum install -y wget && wget -O install.sh http://180.101.160.68:5880/install/install_6.0.sh && sh install.sh success ================================================================== Congratulations! Installed successfully! ================================================================== 外網面板地址: http://36.27.38.121:8888/50c371ee 內網面板地址: http://192.168.1.61:8888/50c371ee username: rzqiqhpi password: e4695cb9 If you cannot access the panel, release the following panel port [8888] in the security group 若無法訪問面板,請檢查防火牆/安全組是否有放行面板[8888]埠 ================================================================== Time consumed: 23 Minute!
### --- linux控制面板升級:
[root@localhost ~]# curl http://download.bt.cn/install/update6.sh|bash
### --- 若點選更新沒有生效,請嘗試重啟面板服務:
[root@localhost ~]# bt restart
三、通過IE瀏覽器訪問地址登入bt管理介面
四、寶塔Linux常用命令:
### --- Centos安裝指令碼 [root@localhost ~]# yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh Ubuntu/Deepin安裝指令碼 [root@localhost ~]# wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh Debian安裝指令碼 [root@localhost ~]# wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh Fedora安裝指令碼 [root@localhost ~]# wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh [root@localhost ~]# bt // 檢視bt工具箱 [root@localhost ~]# /etc/init.d/bt stop // 停止bt [root@localhost ~]# /etc/init.d/bt start // 啟動bt [root@localhost ~]# /etc/init.d/bt restart // 重啟bt [root@localhost ~]# /etc/init.d/bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel //解除安裝bt [root@localhost ~]# cat /www/server/panel/data/port.pl // 檢視當前面板埠
### --- 修改面板埠號:
~~~ 修改面板埠,如要改成8881(centos 6 系統)
[root@localhost ~]# echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 8881 -j ACCEPT
[root@localhost ~]# service iptables save
[root@localhost ~]# service iptables restart
~~~ 修改面板埠,如要改成8881(centos 7 系統)
[root@localhost ~]# echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart
[root@localhost ~]# firewall-cmd --permanent --zone=public --add-port=8881/tcp
[root@localhost ~]# firewall-cmd --reload
### --- 強制修改MySQL管理(root)密碼,如要改成123456
[root@localhost ~]# cd /www/server/panel && python tools.py root 123456 // 修改面板密碼,如要改成123456
### --- 日誌及配置檔案地址
[root@localhost ~]# cat /tmp/panelBoot.pl // 檢視寶塔日誌
[root@localhost ~]# cat /tmp/panelExec.log // 檢視軟體安裝日誌
[root@localhost ~]# /www/server/panel/vhost // 站點配置檔案位置
[root@localhost ~]# rm -f /www/server/panel/data/domain.conf // 刪除域名繫結面板
[root@localhost ~]# rm -f /www/server/panel/data/*.login // 清理登陸限制
[root@localhost ~]# cat /www/server/panel/data/limitip.conf // 檢視面板授權IP
rm -f /www/server/panel/data/limitip.conf // 關閉訪問限制
cat /www/server/panel/data/domain.conf // 檢視許可域名
rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart // 關閉面板SSL
cat /tmp/panelBoot // 檢視面板錯誤日誌
cat /www/server/data/*.err // 檢視資料庫錯誤日誌
/www/server/panel/vhost/nginx // 站點配置檔案目錄(nginx)
/www/server/panel/vhost/apache // 站點配置檔案目錄(apache)
/www/wwwroot // 站點預設目錄
/www/backup/database // 資料庫備份目錄
/www/backup/site // 站點備份目錄
/www/wwwlogs // 站點日誌
### --- Nginx服務管理
/www/server/nginx // nginx安裝目錄
/etc/init.d/nginx start // 啟動
/etc/init.d/nginx stop // 停止
/etc/init.d/nginx restart // 重啟
/etc/init.d/nginx reload // 啟載
/www/server/nginx/conf/nginx.conf // nginx配置檔案
### --- Apache服務管理
/www/server/httpd // apache安裝目錄
/etc/init.d/httpd start // 啟動
/etc/init.d/httpd stop // 停止
/etc/init.d/httpd restart // 重啟
/etc/init.d/httpd reload // 啟載
/www/server/apache/conf/httpd.conf // apache配置檔案
### --- MySQL服務管理
/www/server/mysql // mysql安裝目錄
/www/server/phpmyadmin // phpmyadmin安裝目錄
/www/server/data // 資料儲存目錄
/etc/init.d/mysqld start // 啟動
/etc/init.d/mysqld stop // 停止
/etc/init.d/mysqld restart // 重啟
/etc/init.d/mysqld reload // 啟載
/etc/my.cnf // mysql配置檔案
### --- FTP服務管理
/www/server/pure-ftpd // ftp安裝目錄
/etc/init.d/pure-ftpd start // 啟動
/etc/init.d/pure-ftpd stop // 停止
/etc/init.d/pure-ftpd restart // 重啟
/www/server/pure-ftpd/etc/pure-ftpd.conf // ftp配置檔案
### --- PHP服務管理
/www/server/php // php安裝目錄
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} start // 啟動(請根據安裝PHP版本號做更改,例如:/etc/init.d/php-fpm-54 start)
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} stop // 停止(請根據安裝PHP版本號做更改,例如:/etc/init.d/php-fpm-54 stop)
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} restart // 重啟(請根據安裝PHP版本號做更改,例如:/etc/init.d/php-fpm-54 restart)
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} reload // 啟載(請根據安裝PHP版本號做更改,例如:/etc/init.d/php-fpm-54 reload)
/www/server/php/{52|53|54|55|56|70|71|72|73|74}/etc/php.ini // 配置檔案(請根據安裝PHP版本號做更改,例如:/www/server/php/52/etc/php.ini)
### --- Redis服務管理
/www/server/redis // redis安裝目錄
/etc/init.d/redis start // 啟動
/etc/init.d/redis stop // 停止
/www/server/redis/redis.conf // redis配置檔案
### --- Memcached服務管理
/usr/local/memcached // memcached安裝目錄
/etc/init.d/memcached start // 啟動
/etc/init.d/memcached stop // 停止
/etc/init.d/memcached restart // 重啟
/etc/init.d/memcached reload // 啟載
===============================END===============================
Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart ——W.S.Landor
來自為知筆記(Wiz)