服务器如果是debian系统,可以用以下方法查看硬盘的使用时间,从而来判断硬盘的寿命
安装smartmontoos
1
apt-get install smartmontools
然后运行
1
smartctl -A /dev/sda