[root@lure nginx-1.12.1]# ./configure --prefix=/usr/local/nginx
checking for OS
+ Linux 3.10.0-514.16.1.el7.x86_64 x86_64
checking for C compiler ... not found
./configure: error: C compiler cc is not found
checking for OS
+ Linux 3.10.0-514.16.1.el7.x86_64 x86_64
checking for C compiler ... not found
./configure: error: C compiler cc is not found
初始化nginx的时候报错。原因是因为缺少了 gcc等包
直接yun安装
[root@lolinux ~]# yum -y install gcc-c++