疫情闲着在家就按照网上操作配置nginx,结果各种报错,最终解决了,记录一下
[root@zrf nginx-1.11.6]# ./configure
checking for OS
+ Linux 2.6.32-642.el6.x86_64 x86_64
checking for C compiler ... not found
./configure: error: C compiler cc is not found
[root@zrf nginx-1.11.6]# yum -y install gcc gcc-c++ autoconf automake make
已加载插件:fastestmirror, refresh-packagekit, security
设置安装进程
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
错误:Cannot find a valid baseurl for repo: base
[root@zrf nginx-1.11.6]#
最终借助这篇文章解决了问题 centOS6无法安装yum -y install,出现错误:Cannot find a valid baseurl for repo:base解决方法_zapachep的博客-优快云博客
按照这篇文章步骤完成配置 Centos6 Nginx安装 - 曦茗 - 博客园
本文记录了在 CentOS 6 系统上安装 Nginx 时遇到的问题及解决过程。主要问题是配置时 C 编译器未找到,通过安装 gcc 和相关依赖解决。同时解决了 yum 无法安装的问题。
2360

被折叠的 条评论
为什么被折叠?



