查看JDK的安装路径 # java -version============================查看Linux系统版本信息# cat /etc/redhat-releaseCentOS release 6.9 (Final)[root@li409-225 ~]# cat /etc/issueCentOS release 6.9 (Final)Kernel \r on an \m============================centos6或centos7都可用的 yum安装j…
在虚拟机上安装的CentOS,估计是网络配置问题,导致yum update和yum install之类的功能的用不了.出现标题上面的错误. ifdown [network_adapter] ifup [network_adapter] yum update 尝试以上命令就可以解决了. reference:http://stackoverflow.com/questions/20816133/pycurl-error-6-couldnt-resolve-host-mirrorlist-centos…
我出现这种错误是因为网络链接问题,因为我设置虚拟机网络链接为VmNET8,设置了nat模式,使得我本地机可以访问虚拟机的linux服务器.但是打开虚拟机的浏览器却不能上网了.所以现在我用xshell装数据库出现了这个问题.然后将刚才的这个nat模式设置先移除后就能上网了.…
1.yum 安装出错 [root@iz25m0z7ik3z ~]#yum install mysql [root@iZ25m0z7ik3Z ~]#yum install mysql Loaded plugins: security http://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.c…
安装svn的时候,发现报错说一个地址无法訪问. # yum list | grep subversion http://opensource.wandisco.com/centos/7/svn-1.8/RPMS/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Couldn't resolve host 'opensource.wandisco.com'" 正在尝试其他镜像. One of the configured repositor…
yum install php-gd安装php gd库报错Error: php56w-common conflicts with php-common-5.3.3-48.el6_8.x86_64大概的意思是错误:php56w-common与php-common-5.3.3-48.el6_8.x86_64冲突yum install php56w-gd  安装,ok 问题解决…
问题描述:安装jdk1.8之后,输入java -version查看安装是否成功之后,报错:   报错如下: Error: dl failure on line 893 Error: failed /usr/java/jdk1.8.0_144/jre/lib/i386/client/libjvm.so, because /usr/java/jdk1.8.0_144/jre/lib/i386/client/libjvm.so: cannot restore segment prot after re…
1.yum无法安装工具    failure: repodata/repomd.xml from dag: [Errno 256] No more mirrors to try.http://apt.sw.be/redhat/el7/en/x86_64/dag/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: apt.sw.be; Unknown error"说明yum 源太老---解决办法:最好的办法,…
虚拟机中yum报错 [root@localhost ~]# yum -y install oracle-rdbms-server-11gR2-preinstall Loaded plugins: langpacks, ulninfo Resolving Dependencies --> Running transaction check ---> Package oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-6.el7 will be in…
错误: 解决方案: 在/etc/sysconfig/network-scripts/ifcfg-eth0文件中配置DNS信息: vim /etc/sysconfig/network-scripts/ifcfg-eth0 # 进入文件编辑 修改(新增DNS): DNS1=8.8.8.8 DNS2=8.8.4.4 保存并退出编辑模式 查看修改是否生效: cat /etc/sysconfig/network-scripts/ifcfg-eth0 重启网卡: service network restar…
因为服务器缺少php gd库,因为系统是centos,就是用yum去安装,一安装就报错如下: [root@iZ28sdxghs2Z ~]# yum install php-gd Loaded plugins: security Setting up Install Process Repository base is listed more than once in the configuration Repository updates is listed more than once in…
报错如下: 翻译过来就是 所以问题很简单: 第一种情况:本地DNS服务错误 第二种情况:远程主机挂了 第三种情况:远程主机地址配置错误 第一种解决方法:换DNS 首先验证一下是不是本地DNS错误 从上图测试结果可知,DNS是可以解析相关域名(baidu.com)的,但是还是不够全面,导致部分域名无法解析! 解决方法: 1:更换DNS服务器 2:添加DNS服务器 3:更换YUM源 1:更改DNS echo -e "# Generated by NetworkManager\nnameserver…
[情况] 在写Python代码的时候,需要用到psutil模块,需要安装. 但是在安装时,报错:error: command 'gcc' failed with exit status 1 [解决步骤] 按照经验,觉得应该是缺少了gcc模块, 所以操作 [ yum install -y gcc ] 安装完成后,再继续安装psutil还是报同样的错,发现报错不是  not found gcc,可能是某个功能模块缺失 发现需要安装多一些依赖的包:  [ yum install -y libffi-d…
http://segmentfault.com/q/1010000000094608 同样的问题,先在网上搜了下其他人解决这个问题的方法,是去修改mysql.cnf文件添加mysql.sock文件路径,再搜了一下我的mac没有mysql.cnf,也没有mysql.sock文件. 在查看mysql的安装说明ReadMe.txt中有个启动方法 If you have installed the Startup Item, use this command: shell> sudo /Library/…
:: mysqld_safe Starting mysqld daemon with databases from /data/mysqldata//data -- :: [Warning] The syntax '--language/-l' is deprecated and will be removed in a future release. Please use '--lc-messages-dir' instead. -- :: [Note] /app/mysql-/bin/mys…
修改网卡配置 [root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens32 BOOTPROTO="none"  需要设置为"static" 修改DNS配置 [root@localhost ~]# vim  /etc/resolv.conf 加入 nameserver 223.5.5.5 nameserver 223.6.6.6 [root@localhost ~]# cat /etc/resol…
error: Microsoft Visual C++ 14.0 is required. 问题:我在python安装Scrapy的时候发现报错,并安装不上. 解决思路:安装这个微软的库,但是这个库很大几个G,占用内存,找到另一种比较好用的解决方法! 下载whl文件的网址:https://www.lfd.uci.edu/~gohlke/pythonlibs 我的解决方法:先在https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted下载对应版本的网络引…
异常信息 [root@localhost ~]# yum -y update Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Update Process Loading mirror speeds from cached hostfile * base: centos.ustc.edu.cn * extras: ftp.sjtu.edu.cn * updates: centos.ustc.edu.cn…
在安装mlocate的时候发现一直报错,错误内容大致如下 Downloading Packages:http://mirrors.163.com/centos/6.5/os/i386/Packages/mlocate-0.22.2-4.el6.i686.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.163.com'"Trying other mirror.http://mirrors.aliyun.co…
执行yum install命令时提示PYCURL ERROR 6 - "Couldn't resolve host 错误,原来是dns设置出错,具体错误代码:  Loaded plugins: fastestmirror, refresh-packagekit, securityDetermining fastest mirrorshttp://mirrors.163.com/centos/6/os/i386/repodata/repomd.xml: [Errno 14] PYCURL ERRO…
转自:http://blog.51cto.com/oldcat1981/1719825     今天在linux环境通过yum安装软件报了以下错误: [root@multi-mysql yum.repos.d]# yum install ncurses devel -y Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile Could not retrieve mirrorlist h…
问题:[root@cddserver2 ~]# yum -y install gcc-*Loaded plugins: fastestmirror, prestoCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos…
 解决centos 6.3 yum安装软件时找不到镜像问题 [root@nagios-server ~]# yum update –y Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was 14: PY…
这个错误引起主要是因为环境读取不到yun引起的可以考虑/etc/sysconfig/network-scripts/ifcfg-eth0 配置出错导致网络不通.或者/etc/resolv.conf的DNS配置出错.或者可以考虑清楚yum缓存影响(yum clean all) vi /etc/resolv.conf nameserver 202.106.0.20(今天又出现此错误,这个nameserver加进去就好了.记得配置静态ip的话DNS也需要加入 然后update yum试试成功就OK了)…
在虚拟机上安装完CentOS6.5之后,首次使用时yum命令安装软件时,出现一堆的” Errno 14 Couldn't resolve host”这个问题. 上网上查了半天,很多都说在/etc/resolv.conf文件末尾添加 nameserver 8.8.8.8 可我试了根本就没有用!才发现网上99.9%的人都是人云亦云的抄来的,根本就没说到点子上.其实这个问题根本原因就是你的CentOS不能连接网络造成的. 你要问我为什么是“百度”?我只能回答:百度当然是用来测试网络通不通用的. 好吧言…
使用yum安装应用程序时候,报错:[Errno 14] PYCURL ERROR 7 - "Failed to connect to 2001:da8:8000:6023::230: 网络不可达" 1.系统环境 物理机:Windows 7(32位)旗舰版 虚拟机:CentOS 6.5 2.问题描述 从安装好系统之后,用yum源安装软件,一直可以用,今天突然就报了如下的错误,yum也无法使用了: Loaded plugins: fastestmirror Loading mirror s…
CentOS 6.2 二进制安装apache2.4.3出现configure: error: APR-util not found. Please read the documentation的解决方 一.准备环境 1.安装gcc [root@localhost /]# yum install gcc gcc-c++ 2.安装apr,apr-util 下载apr-1.4.6.tar.gz与apr-util-1.5.1.tar.gz,地址:http://apr.apache.org   ,上传至/…
通过本地yum源安装软件报错 http://192.168.3.85/centos/6/os/x86_64/Packages/php-pdo-5.3.3-47.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 56 - "Failure when receiving data from the peer" Trying other mirror. 发现是/etc/yum.conf的proxy打开了,关闭即可…
文章目录 1.在阿里云(Linux)Centos7上安装JDK1.8步骤过程 2.阿里云(Linux)centos7上安装Tomcat8.5步骤过程记录: 卸载JDK Centos7一般都会带有自己的openjdk,我们一般都回用oracle的jdk,所以要卸载 步骤一:查询系统是否以安装jdk rpm -qa|grep java 步骤二:卸载已安装的jdk #rpm -e --nodeps java-1.8.0-openjdk-1.8.0.131-11.b12.el7.x86_64 #rpm…
centos通过yum快速安装JDK1.8检索1.8的列表:yum list java-1.8*安装1.8.0的所有文件:yum install java-1.8.0-openjdk* -y 出现 Complete!表示安装完成使用命令检查是否安装成功:#java -version不需要对path进行手动设置,已自动设置好了yum install 了之后,java 是默认下载到 /usr/lib/jvm/ 这个目录下. # find / -name 'java'其中启动命令需要用到的两个是:/u…