Linux——CentOS7安装gcc编译器详解 查看内核版本

时间:2022-12-27 15:19:58
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# uname -r
3.10.0-957.el7.x86_64
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
yum -y install gcc gcc-c++ kernel-devel //安装gcc、c++编译器以及内核文件