最新公告

×
<body style="font-family: Arial, sans-serif; line-height: 1.6; padding: 20px; max-width: 800px; margin: 0 auto;"> <h2 style="color: #ff0000; font-weight: bold; font-size: 24px;">最新通知</h2> <h2 style="color: #333; padding-bottom: 8px; margin-top: 30px; font-size: 22px;">双十二活动</h2> <ul style="list-style-type: disc; margin-left: 20px; padding-left: 10px;"> <li style="margin-bottom: 10px; color: #e63946; font-weight: bold; font-size: 18px;"> 性价比服务器(续费同价,数量有限,先抢先得): </li> <li style="margin-bottom: 10px;">美国2H2G 特价 月付仅9.9元</li> <li style="margin-bottom: 10px;">深圳4H4G电信线路特价 月付仅19元</li> <li style="margin-bottom: 10px;">香港2H2G CTG线路特价 月付仅15元</li> <li style="margin-bottom: 10px;"> 活动地址:<a href="http://cs.tydidc.cn/actcloud.html" target="_blank" style="color: #0066cc; text-decoration: none;"> 点击跳转到活动页面 </a> </li> </ul> </body>
文档首页> 教程> Linux服务器一键挂载数据盘教程

Linux服务器一键挂载数据盘教程

发布时间:2025-05-12 19:16       

Linux服务器一键挂载数据盘操作教程建议在购买服务器后,第一时间挂载数据盘,以免后面挂载导致系统故障

如果你的服务器已经有数据了,请务必备份数据后再挂载数据盘,避免操作失误导致系统故障,数据丢失。

一:SSH连接服务器

二:输入宝塔一键挂载命令

根据您服务器安装的操作系统,选择执行以下数据盘挂载命令

centos系统:

yum install wget -y && 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

debian系统:

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

执行命令后,会出现一个挂载的提示,这里输入y,然后回车

挂载完成

挂载完成后,必须重启一次服务器,重启后服务器能正常打开,说明挂载没有问题