在服务器执行的语句
yum install cvs sysstat lrzsz gcc gcc-c++ ncurses-devel libxml2-devel libjpeg-devel libpng-devel openssl openssl-devel ntp make
报错内容如下:
Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
解决办法
1,执行
echo "nameserver 8.8.8.8" > /etc/resolv.conf
设置dns服务器
即可
找到问题的原因,是由于服务器没设置dns服务器地址导致的上述错误
apache安装启动
1,执行
yum clean all
应该执行这两步即可。(第二步要不要执行有待验证)
2,执行
yum -y install httpd (appche服务器程序)
3,执行
/etc/init.d/httpd start (启动apache)
分享到:
相关推荐
离线安装包,亲测可用
官方的pycurl早已停止更新 pycurl-ssl-7.19.0.win32-py2.7.exe
pycurl-7.43.0-cp27-none-win_amd64
pycurl-ssl-7.16.4.win32-py2.5.exe............
安装pyspider之前需要安装lxml 和 pycurl ,但是在安装pycurl的过程中遇到了同样的错误 解决方案是安装wheel 和到 http://www.lfd.uci.edu/~gohlke/pythonlibs/#pycurl 这个网址下载相应版本的pycurl ,如果是64...
python库,解压后可用。 资源全名:types_pycurl-0.1.0-py2.py3-none-any.whl
资源来自pypi官网。 资源全名:types_pycurl-0.1.0-py2.py3-none-any.whl
pycurl-7.43.0.2 Windows64位安装包,Windows安装pycurl,支持python版本3.6
pyspider依赖库,需要手动安装,上传此版本时最高支持python36,python37会有运行异常,因为关键字的问题
pycurl_7.43.0-1ubuntu1.debian.tar.xz
pycurl_7.43.0-1ubuntu1.debian.tar.zip
pycurl-7.43.1-cp37-cp37m-win_amd64 PycURL。 PycURL is a Python interface to libcurl. PycURL can be used to fetch objects identified by a URL from a Python program, similar to the urllib Python module....
pycurl-7.43.0.3-cp38-cp38m-win_amd64.whl ,pyCurl,适用于Windows,64 位, python 3.8
python pycurl win32 python2.6 msi
官方离线安装包,亲测可用。使用rpm -ivh [rpm完整包名] 进行安装
pycurl-7.43.0.3-cp37-cp37m-win32.whl, pyCurl 适用于windows平台,32位的python 3.7
python常用pycurl-7.43.0.1.便于下载。
资源来自pypi官网。 资源全名:pycurl-7.43.0.5-cp35-cp35m-win_amd64.whl
pycurl 基于curl 官方只出版了32位版本 在http://www.lfd.uci.edu/~gohlke/pythonlibs/#pycurl中有非官方的64位版本