huaidan 发表于 2025-3-28 17:01:02

建站教程宝塔linux如何挂载数据盘教程菜鸟教程宝塔,linux,如何,挂载,数据 - Powered by Discuz!

<link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css"><font color="#555555"><font style="background-color:rgb(255, 255, 255)"><font face="Lato, sans-serif"><font style="font-size:15px">宝塔现在很多人在用了,挺多人还不知道如何挂载数据盘,好在官方出了一个挂载数据盘一键脚本,只需在安装宝塔前,先运行下挂载脚本,一键挂载下。挂载数据盘成功以后在安装宝塔就行了。</font></font></font></font><font color="#555555"><font style="background-color:rgb(255, 255, 255)"><font face="Lato, sans-serif"><font style="font-size:15px"></font></font></font></font><br /><strong>说明</strong><font style="color:rgb(85, 85, 85)"><font style="background-color:rgb(255, 255, 255)"><font face="Lato, sans-serif"><font style="font-size:15px">1、本工具默认将数据盘挂载到/www目录<br />2、若您的服务器之前安装过Windows系统,需要手动删除NTFS分区,挂载工具会直接跳过NTFS分区<br />3、若您的磁盘已分区,且未挂载,工具会自动将分区挂载到/www<br />4、若您的磁盘是新磁盘,工具会自动分区并格式化成ext4文件系统<br />5、本工具只自动挂载一个分区,若您有多块数据盘,请手动挂载未被自动挂载的磁盘<br />6、此脚本只适用于新磁盘挂载,若数据盘已有数据请勿使用此脚本</font></font></font></font><font style="color:rgb(85, 85, 85)"><font style="background-color:rgb(255, 255, 255)"><font face="Lato, sans-serif"><font style="font-size:15px"><font color="blue">Centos系统请使用以下命令:</font></font></font></font></font><blockquote><ol><li>yum install wget -y &amp;&amp; wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh &amp;&amp; bash auto_disk.sh</ol><br /></blockquote><font style="color:rgb(85, 85, 85)"><font style="background-color:rgb(255, 255, 255)"><font face="Lato, sans-serif"><font style="font-size:15px">Ubuntu系统请使用以下命令:</font></font></font></font><font style="color:rgb(85, 85, 85)"><font style="background-color:rgb(255, 255, 255)"><font face="Lato, sans-serif"><font style="font-size:15px"><ol><li>wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh &amp;&amp; sudo bash auto_disk.sh</ol><br />Debian系统请使用以下命令:<ol><li>wget -O disk.sh http://download.bt.cn/tools/disk.sh &amp;&amp; bash disk.sh</ol><br /><br /></font></font></font></font>    <h3>版权声明</h3>            <p>1、本站所有资源来源于网络搜集和会员分享</p><p>2、本站所有程序仅供大家学习和参考,不得进行商业用途</p><p>3、如果觉得程序还可以、请购买官方正版</p><p>4、对不遵守本声明或其他违法、恶意使用本网站内容者,本网站保留追究其法律责任的权利。</p>      <p>唯一网址: <a target="_blank" href='https://bbs.zonghengtx.cn/thread-1716-1-1.html' title='宝塔linux如何挂载数据盘教程'>https://bbs.zonghengtx.cn/thread-1716-1-1.html</a></p>

huaidan 发表于 2025-3-28 17:57:13

<link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css">谢谢楼主,共同发展
页: [1]
查看完整版本: 建站教程宝塔linux如何挂载数据盘教程菜鸟教程宝塔,linux,如何,挂载,数据 - Powered by Discuz!