0
点赞
收藏
分享

微信扫一扫

centos6 安装nginx

waaagh 2022-01-23 阅读 107

疫情闲着在家就按照网上操作配置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的博客-CSDN博客

举报

相关推荐

0 条评论