說明:
1:本工具默認(rèn)將數(shù)據(jù)盤掛載到/www目錄
2:若您的磁盤已分區(qū),且未掛載,工具會自動將分區(qū)掛載到/www
3:若您的磁盤是新磁盤,工具會自動分區(qū)并格式化成xfs/ext4文件系統(tǒng)
使用方法 :根據(jù)系統(tǒng)選擇命令后進入ssh執(zhí)行命令即可
已安裝寶塔若想掛載遷移務(wù)必先做快照或數(shù)據(jù)備份
Centos系統(tǒng)請使用以下命令:
- yum install wget -y && wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh
Ubuntu系統(tǒng)請使用以下命令:
- wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && sudo bash auto_disk.sh
Debian系統(tǒng)請使用以下命令:
- wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh