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

 

 

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文件系统

posted @ 2022-01-21 15:59  JS脚本  阅读(2173)  评论(0)    收藏  举报