下载离线包
centos6.5gcc-Linux文档类资源-CSDN文库: https://download.csdn.net/download/github_39333092/33250971
解压下面的文件
然后执行
rpm -Uvh *.rpm --nodeps --force
安装gcc-c++
下载离线包gcc-c+±4.4.7-4.el6.x86_64.rpm
rpm -ivh gcc-c++-4.4.7-4.el6.x86_64.rpm --nodeps --force
安装nginx
不得不说离线安装nginx太累了
centos 6.5 离线安装nginx_qq_28831817的博客-CSDN博客: https://blog.csdn.net/qq_28831817/article/details/104033450
按照上面文章,我是都放到opt下,所以在cd到nginx里的配置如下
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/opt/gcc/pcre/pcre-8.35 --with-zlib=/opt/gcc/zlib/zlib-1.2.11 --with-openssl=/opt/gcc/openssl/openssl-1.0.2h
完美收工