寶塔自帶腳本一鍵腳本自動掛載硬盤


 

 

CentOS:

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

Debian:

wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh

Ubuntu:

wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && sudo bash auto_disk.sh

腳本是寶塔開發的,默認將數據盤掛載到/www目錄

若磁盤已分區,且未掛載,工具會自動將分區掛載到/www
若磁盤是新磁盤,工具會自動分區並格式化成xfs/ext4文件系統


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM