本文将介绍Tomcat报错:ERROR:transporterror202:gethostbyname:unknownhost的详细情况,特别是关于tomcat报错maven怎样修改文件名称的相关信息
本文将介绍Tomcat 报错:ERROR:transport error 202: gethostbyname: unknown host的详细情况,特别是关于tomcat 报错 maven 怎样 修改 文件名称的相关信息。我们将通过案例分析、数据研究等多种方式,帮助您更全面地了解这个主题,同时也将涉及一些关于2003 - Can''t connect to MySQL server on ''localhost'' (10061 "Unknown error")...、CentOS 6.8 安装RabbitMQ提示ERROR: epmd error for host "77": badarg (unknown POSIX error)、CentOS系统yum源使用报错:Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge.、Could not resolve host: mirrorlist.centos.org Centos 7 Unkown error的知识。
本文目录一览:- Tomcat 报错:ERROR:transport error 202: gethostbyname: unknown host(tomcat 报错 maven 怎样 修改 文件名称)
- 2003 - Can''t connect to MySQL server on ''localhost'' (10061 "Unknown error")...
- CentOS 6.8 安装RabbitMQ提示ERROR: epmd error for host "77": badarg (unknown POSIX error)
- CentOS系统yum源使用报错:Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge.
- Could not resolve host: mirrorlist.centos.org Centos 7 Unkown error
Tomcat 报错:ERROR:transport error 202: gethostbyname: unknown host(tomcat 报错 maven 怎样 修改 文件名称)
错误信息大概这种感觉
ERROR:transport error 202: gethostbyname: unknown host
A configuration error occurred during startup. Please verify the preference field with the prompt: ERROR: transport error 202: gethostbyname: unknown host
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
找到 “系统盘:\Windows\System32\drivers\etc” 下面的 host 或者 hosts(Linux)文件,加一句
127.0.0.1 localhost
或者
127.0.0.1 localhost.localdomain localhost (Linux)
改了以后的确好了,但之后我无聊又给改回去了,仍然没有问题……
不过如果出现过这个问题建议就不要改回来了…… 你改一次它记住了,但过段时间就又忘了的…… 然后还得再来一次……
2003 - Can''t connect to MySQL server on ''localhost'' (10061 "Unknown error")...
MySQL 有一段时间没有打开过了,今天刚想打开学习一下,却发现打开失败,出现了以下错误信息:
然后赶紧打开 我的电脑>计算机管理>服务和应用程序>服务 中查看MySQL服务状态,发现
MySQL 服务已被禁用或关闭,此时,只需要把 MySQL 服务启动即可。
如果在服务中查找不到 MySQL 服务,可采用下面的方法解决:
1、找到系统中的命令提示符(cmd.exe)
2、右键,选择以管理员身份运行打开该程序
3、切换到你的 mysql 的安装目录下的 bin 目录,执行 mysqld.exe --install 命令,看到 service successfully installed 表示安装服务成功。
4、重新进到 Windows 的服务列表,发现 MySQL 服务出现了,然后点击启动 MySQL 服务即可。
5、问题解决,MySQL 数据库成功打开。
CentOS 6.8 安装RabbitMQ提示ERROR: epmd error for host "77": badarg (unknown POSIX error)
今天在linux 服务器(系统版本:CentOS 6.8) 安装 RabbitMQ过程中,遇到一些问题,解决方案记录下来供大家参考:
先说说安装过程:
第一步:安装erlang以root身份执行下面命令: yum install erlang
第二步:wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.0/rabbitmq-server-3.5.0-1.noarch.rpm
第三步:rpm -ivhrabbitmq-server-3.5.0-1.noarch.rpm
第四步:rabbitmq-server --detached&ps aux |grep rabbitmq
如果显示以下信息:
说明安装成功
如果报以下错误:
ERROR: epmd error for host "77":badarg (unkNown POSIX error)
解决办法:
# vi/etc/rabbitmq/rabbitmq-env.conf
在文件里面添加这一行:NODENAME=rabbit@localhost,保存
(注意:rabbitmq-env.conf这个文件没有,打开之后自动创建)
# service rabbitmq-server start
Rabbitmq server 成功启动!
CentOS系统yum源使用报错:Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge.
http://www.cnblogs.com/kevingrace/p/6252659.html
服务器上的yum突然不好使用,使用yum的时候报错如下:
[root@bastion-IDC src]# yum list
......
Could not retrieve mirrorlist http://mirrorlist.repoforge.org/el6/mirrors-rpmforge error was
14: PYCURL ERROR 7 - "Couldn't connect to host"
http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/repodata/repomd.xml: [Errno 14]
PYCURL ERROR 7 - "Couldn't connect to host"
Trying other mirror.
Error: Cannot retrieve repository Metadata (repomd.xml) for repository: rpmforge.
Please verify its path and try again
解决办法:(或者把/etc/yum.repos.d下的文件全部删除,然后将能正常使用yum的同类服务器的这个目录下的文件全部拷贝过来,然后yum clean all 和yum makecache 即可)
下载新的CentOS-Base.repo 到/etc/yum.repos.d/
[root@bastion-IDC src]# cd /etc/yum.repos.d/
其实就是将yum源更改为阿里云的yum源,操作如下:
1)centos5.*的下载连接:
[root@bastion-IDC yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repohttp://mirrors.aliyun.com/repo/Centos-5.repo
2)centos6.*的下载连接:
[root@bastion-IDC yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repohttp://mirrors.aliyun.com/repo/Centos-6.repo
3)centos7.*的下载连接:
[root@bastion-IDC yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repohttp://mirrors.aliyun.com/repo/Centos-7.repo
然后执行以下命令:
[root@bastion-IDC yum.repos.d]# rpm -e rpmforge-release --nodeps
-------------------------------------------------------------------------------------------------------------
如果报错:
error: package rpmforge-release is not installed
解决办法:安装这个源
下载地址:https://pan.baidu.com/s/1pKBtm11
提取密码:erte
[root@bastion-IDC yum.repos.d]# rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
-------------------------------------------------------------------------------------------------------------
[root@bastion-IDC yum.repos.d]# yum clean all
[root@bastion-IDC yum.repos.d]# yum makecache //将服务器上的软件包信息缓存到本地,以提高搜索安装软件的速度
[root@bastion-IDC yum.repos.d]# yum update
最后再次使用yum就ok了 [root@bastion-IDC yum.repos.d]# yum list
Could not resolve host: mirrorlist.centos.org Centos 7 Unkown error
问题
安装Centos7(core)以后,网卡默认不会启用。这是一个大坑,直接报错,这是一个过度优化,有几个开发人员/运维人员安装centos7(core)不用ssh去连接服务器的。
报错如下:
Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
http://mirror.centos.org/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirror.centos.org; Unknown error"
Trying other mirror.
One of the configured repositories failed (CentOS-7 - Base),
and yum doesn''t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=base ...
4. Disable the repository permanently, so yum won''t use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable base
or
subscription-manager repos --disable=base
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=base.skip_if_unavailable=true
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
http://mirror.centos.org/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirror.centos.org; Unknown error"
[root@localhost ~]#
解决办法
1、故障发生以后,第一看看网络是否通畅
ping www.baidu.com
#google dns
ping 8.8.8.8
以上均无反应,于是想起来前一段时间设置过一次centos网卡,让他开机自动启动。命令如下
vi /etc/sysconfig/network-scripts/ifcfg-ens33
修改里面的Boot=yes
Boot=no (开机引导的时候不启动网卡)
#改成yes
启动网卡
ifup ens33
查看ip地址
ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:63:c2:ca brd ff:ff:ff:ff:ff:ff
inet 192.168.152.141/24 brd 192.168.152.255 scope global noprefixroute dynamic ens33
valid_lft 1319sec preferred_lft 1319sec
inet6 fe80::fdb9:c978:ff44:dbc5/64 scope link noprefixroute
valid_lft forever preferred_lft forever
虚拟机ip地址是 192.168.152.141
2、更新本地缓存:
yum makecache
[root@promote ~]# yum makecache
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* extras: mirrors.njupt.edu.cn
* updates: mirrors.cn99.com
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/8): extras/7/x86_64/other_db | 127 kB 00:00:00
(2/8): extras/7/x86_64/filelists_db | 246 kB 00:00:00
(3/8): updates/7/x86_64/prestodelta | 797 kB 00:00:00
(4/8): updates/7/x86_64/other_db | 641 kB 00:00:00
(5/8): base/7/x86_64/other_db | 2.6 MB 00:00:01
(6/8): base/7/x86_64/filelists_db | 7.1 MB 00:00:02
(7/8): updates/7/x86_64/filelists_db | 4.4 MB 00:00:03
extras/7/x86_64/prestodelta FAILED
http://mirrors.njupt.edu.cn/centos/7.6.1810/extras/x86_64/repodata/5bfd3d5f07606011226e556e87d978ca1dfe51a63e18d793182900d5bbc702b5-prestodelta.xml.gz: [Errno 14] HTTP Error 302 - Found
Trying other mirror.
(8/8): extras/7/x86_64/prestodelta | 65 kB 00:00:00
Metadata Cache Created
关于Tomcat 报错:ERROR:transport error 202: gethostbyname: unknown host和tomcat 报错 maven 怎样 修改 文件名称的介绍现已完结,谢谢您的耐心阅读,如果想了解更多关于2003 - Can''t connect to MySQL server on ''localhost'' (10061 "Unknown error")...、CentOS 6.8 安装RabbitMQ提示ERROR: epmd error for host "77": badarg (unknown POSIX error)、CentOS系统yum源使用报错:Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge.、Could not resolve host: mirrorlist.centos.org Centos 7 Unkown error的相关知识,请在本站寻找。
本文标签: