./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