./configure: error: C compiler cc is not found

没有安装gcc

在安装nginx之前先安装依赖软件

yum install -y gcc gcc-c++ autoconf pcre pcre-devel make automake wget httpd-tools vim tree

原文地址:https://www.cnblogs.com/lvhanzhi/p/10268848.html