centos 常见错误

文章讲述了在CentOS系统中遇到的几个常见网络问题及解决方案,包括SSH连接被拒绝、设备eth0未找到以及ifconfig命令缺失的情况。解决方法涉及安装sshd服务、重启网络服务、删除udev规则文件以及安装net-tools工具包。
摘要由CSDN通过智能技术生成

Network error: Connection refused

首先检查SSHD服务是否启用		
进入Centos终端输入 #ssh localhost		
如果提示:ssh: connect to host localhost port 22: Connection refused 错误		
不用管它,没有启动sshd服务的缘故		
安装sshd命令: #yum install openssh-server		
安装好后开启: #/etc/init.d/sshd start		
万一此时还是连接不上去,关闭防火墙或者开放22端口即可		
关闭防火墙命令:# /etc/init.d/iptables stop		

Device does not seem to be present

一.故障现象:		
[root@c1node01 ~]# service network restart		
Shutting down loopback insterface:                                                       [   OK  ]		
Bringing up loopback insterface:                                                            [   OK  ]		
Bringing up interface eth0:  Device eth0 does not seem to be present,delaying initialization.                    [FAILED]		
解决办法:		
[root@c1node01 ~]# rm -rf /etc/udev/rules.d/70-persistent-net.rules		
[root@c1node01 ~]# reboot ………………		
[root@c1node01 ~]# service network restart		
Shutting down loopback insterface:                                                         [   OK   ]		
Bringing up loopback insterface:                                                              [   OK   ]		
Bringing up interface eth0:                                                                     [   OK   ]		
[root@c1node01 ~]#		

starting dracut initqueue hook 一直停止 超时

				Centos 7

Install Cent0S 7
Test this media & install CentOS 7

Troubleshooting
Press Tab for full conf iguration options on menu items

按e 有的时候需要按tab		
然后 修改参数里面的hd后面 stage2=hd:/dev/sdb4 nomodeset quiet 类似这样 然后enter 或者ctrl+x 执行就好		

ifconfig command not found

虚拟机下安装完centos mini版之后发现 ifconfig command not found		
可以通过 ip addr 来查看		

也可以直接安装 net-tools		
#sudo yum install net-tools -y		
#ifconfig		
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值