环境:ubuntu 16.04 server
服务器重新启动后,内核可能被自动更新,这就会造成开机后服务器有些服务无法正常使用。例如:
查看显卡状态:nvidia-smi 会有报错
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
造成报错原因:内核版本太高,与NVIDIA驱动不匹配。因为NVIDIA驱动是在内核版本低的时候安装的。
这时的解决方法就是切换回来低版本内核就行。
如何切换ubuntu的内核版本呢?介绍两种方法。
1. 如果服务器在身边,可以手动启动服务器的话就可以选择这种方法
开机进入
机进入grub引导界面,选择Advanced options for Ubuntu::
选择Advanced options for Ubuntu后,进入其子菜单,如下图所示:
上图来自:NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the lat_h