在NVIDIA官网上下载对应的驱动
https://www.nvidia.com/download/driverResults.aspx/134859/en-us
cuda下载地址
centos7禁用默认的驱动nouveau
用了这两行命令
echo 'blacklist nouveau' >> /etc/modprobe.d/blacklist.conf dracut /boot/initramfs-$(uname -r).img $(uname -r) --force
这个方法还是谨慎操作!我不清楚为什么要搞这两步,每次搞完都无法登录系统,只能从rescue模式进去系统!
from https://linuxconfig.org/nvidia-geforce-driver-installation-on-centos-7-linux-64-bit
http://www.360doc.com/content/14/1217/20/5470123_433706386.shtml
按照教程操作是直接把yum不知道怎么删了
-bash: yum: command not found
安装yum
https://blog.csdn.net/qq_37460356/article/details/79568387
安装内核参考的这个–kernel-source-path’ command line option.
https://blog.csdn.net/xhz1234/article/details/9158531
这个教程安装NVIDIA显卡及禁用nouveau
https://www.dedoimedo.com/computers/centos-7-nvidia.html
https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-centos-7-linux
删除多余的内核
https://blog.csdn.net/chen798213337/article/details/60469472