Centos 7 安装nvidia显卡驱动

----系统版本:CentOS Linux release 7.7.1908 

----显卡:P1000

1、添加ELRepo源

$ rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

$rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-4.el7.elrepo.noarch.rpm

不同操作系统添加源请看此处

 

2、安装显卡检测程序

$ yum install nvidia-detect

3、检测显卡

$ nvidia-detect -v

Probing for supported NVIDIA devices...
[10de:1cb1] NVIDIA Corporation GP107GL [Quadro P1000]
This device requires the current 430.40  NVIDIA driver kmod-nvidia
WARNING: Xorg log file /var/log/Xorg.0.log does not exist
WARNING: Unable to determine Xorg ABI compatibility
WARNING: The driver for this device does not support the current Xorg version

4、根据检测的版本安装显卡驱动程序

$ yum install nvidia-x11-drv-430.40

版本号要一致

6、重启,运行命令,查看状态

$ nvidia-smi

posted @ 2019-11-13 16:12  河在谈  阅读(2228)  评论(0编辑  收藏  举报