宝塔自带脚本一键脚本自动挂载硬盘


 

 

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