自动将硬盘挂载至www目录(宝塔自动硬盘挂载脚本)

搜推网
2021-05-05 / 0 评论 / 12 阅读 / 正在检测是否收录...

1149597725.png

本脚本为由宝塔官方提供,一键自动挂载硬盘至www目录
脚本内容:

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

其中存在交互,输入代码后会提示选择,请输入 y 回车表示确认(如下)

+----------------------------------------------------------------------
| Bt-WebPanel Automatic disk partitioning tool
+----------------------------------------------------------------------
| Copyright © 2015-2017 BT-SOFT(http://www.bt.cn) All rights reserved.
+----------------------------------------------------------------------
| Auto mount partition disk to /www
+----------------------------------------------------------------------
Do you want to try to mount the data disk to the /www directory?(y/n): y
0

评论 (0)

取消