在安装nginx中执行./configure报错:[error]configure: error: You need a C++ compiler for C++ support. 报错原因是因为我们没有装c++编译器,接下来我们装上 使用yum安装 yum -y install gcc-c++ 在执行一遍 ./configure 这样就安装成功了!!!