当前位置:首页 » 币种行情 » interfaceeth0doesnotexist

interfaceeth0doesnotexist

发布时间: 2023-01-03 17:24:48

⑴ ubuntu启动网卡输入sudo ifup eth0提示unknown interface eth0怎么回事 老哥帮帮忙

在终端键入了$vi /etc/network/interface,查看配置,然后修改下配置,如果不行,就用rm -f /etc/udev/rules.d/70-persistent-net.rules,
(删除etc/udev/rules.d/70-persistent-net.rules 文件,之后重启让系统重新生成eth0配置文件)
这个命令删除,然后REBOOT重启。


$ifconfig 看有没有eth0信息
$sudo ifup eth0 启动网卡
$ifconfig -a eth0 显示IP
大概流程这样子

⑵ 启动CentOS 6.2时 总是卡在以下画面不动了 等了5分钟 都没反应 Bringing up interface eth0

先把网卡禁用,就可以进了。

⑶ ubantu的mysql5.6.31支持集群吗

MMM高可用方案简介
MMM(Master-Master Replication Manager for MySQL)主主复制管理器,是一套提供了MySQL主主复制配置的监控、故障迁移和管理的可伸缩的脚本程序。在MMM高可用解决方案中,可以配置双主多从架构,通过MySQL Replication技术可以实现两台MySQL服务器互为主从,并且在任何时候只有一个节点可以写入,避免多节点写入的数据冲突,同时,当可写节点故障时,MMM套件可以立即监控到,然后将服务自动切换到另一个主节点继续提供服务,从而实现MySQL的高可用。
简而言之,通过MMM可以实现监控和管理MySQL主主复制和服务状态,同时也可以监控多个Slave节点的复制和运行状态,并且可以做到任意节点发生故障时实现自动切换的功能。MMM也为MySQL提供了读、写分离架构的良好平台。
MMM套件的优缺点
MMM集群套件具有良好的稳定性、高可用性和可扩展性。当活动的Master节点出现故障时,备用Master节点可以立即接管,而其他的Slave节点也能自动切换到备用Master节点继续进行同步复制,而无需人为干涉;MMM架构需要多个节点、多个IP,对服务器数量有要求,在读写非常繁忙的业务系统下表现不是很稳定,可能会出现复制延时、切换失效等问题。MMM方案并不太适应于对数据安全性要求很高,并且读、写繁忙的环境中。
MMM高可用套件工作原理
MMM套件主要的功能是通过以下三个脚本实现的:
1、mmm_mond:监控进程,运行在管理节点上,主要复制对所有数据库的监控工作,同时决定和处理所有节点的角色切换。
2、mmm_agentd:代理进程,运行在每一台MySQL服务器上,主要完成监控的测试工作和执行简单的远端服务设置。
3、mmm_control:一个简单的管理脚本,用来查看和管理集群运行状态,同时管理mmm_mond进程。
MMM高可用MySQL配置方案
在通过MMM套件实现的双Master架构中,需要5个IP地址,两个Master节点各有一个固定的物理IP,另外两个只读IP(reader IP)和一个可以IP(writer IP),这三个虚拟IP不会固定在任何一个节点上,相反,它会在两个Master节点之间来回切换(如何切换取决于节点的高可用)。在正常情况下Master1有两个虚拟IP(reader IP和writer IP),Master2有一个虚拟IP(reader IP),如果Master1故障,那么所有的reader和writer虚拟IP都会分配到Master上。
环境说明:
主机名 IP地址 集群角色 MySQL版本 系统版本
Master1 192.168.1.210 主Master可读、写 mysql-5.6.28 CentOS6.7
Master2 192.168.1.211 备Master可读、写 mysql-5.6.28 CentOS6.7
Slave1 192.168.1.250 Slave节点只读 mysql-5.6.28 CentOS6.7
Slave2 192.168.1.209 Slave节点只读 mysql-5.6.28 CentOS6.7
Monitor 192.168.1.21 MMM服务管理端 mysql-5.6.28 CentOS6.7
虚拟IP地址:
writer IP 192.168.1.230 写入VIP,仅支持单节点写入
reader IP 192.168.1.231 只读VIP,每个数据库节点一个读VIP,可以通过LVS、HAproxy等负载均衡软件对读VIP做负载均衡
reader IP 192.168.1.232
reader IP 192.168.1.233
reader IP 192.168.1.234
MMM的安装和配置
Step1:MMM套件的安装
1、在MMM管理端monitor安装MMM所有套件
[root@monitor~]#rpm-ivhepel-release-6-8.noarch.rpm
[root@monitor~]#yuminstallmysql-mmmmysql-mmm-agentmysql-mmm-toolsmysql-mmm-monitor

2、在各个MySQL节点上安装mysql-mmm-agent服务
[root@master1~]#yuminstallmysql-mmm-agent
[root@master2~]#yuminstallmysql-mmm-agent
[root@slave1~]#yuminstallmysql-mmm-agent
[root@slave2~]#yuminstallmysql-mmm-agent

Step2:Master1和两个Slave上配置主从(这里需要提前做好配置,Master1和Master2主主配置也一样)
1、Master1上授权slave1、2的复制用户
[root@master1~]#mysql-uroot-ppasswd
mysql>grantreplicationslaveon*.*to'repl'@'192.168.1.250'identifiedby'replpasswd';
mysql>grantreplicationslaveon*.*to'repl'@'192.168.1.209'identifiedby'replpasswd';
mysql>flushprivileges;

2、Slave1、2上设置指定Master1同步复制
[root@slave1~]#mysql-uroot-ppasswd
mysql>changemasterto
->master_host='192.168.1.210',
->master_user='repl',
->master_password='replpasswd',
->master_port=3306,
->master_log_file='mysql-bin.000034',
->master_log_pos=120;
QueryOK,0rowsaffected,2warnings(0.06sec)
[root@slave2~]#mysql-uroot-ppasswd
mysql>changemasterto
->master_host='192.168.1.210',
->master_user='repl',
->master_password='replpasswd',
->master_port=3306,
->master_log_file='mysql-bin.000034',
->master_log_pos=120;
QueryOK,0rowsaffected,2warnings(0.02sec)

Step3:在所有的MySQL节点的/etc/my.cnf中增加参数
read_only=1
Step4:在所有的MySQL节点添加以下两个用户
mysql> grant replication client on *.* to 'mmm_monitor'@'192.168.1.%' identified by 'monitorpasswd';mysql> grant super, replication client, process on *.* to 'mmm_agent'@'192.168.1.%' identified by 'agentpasswd';Step5:在MMM管理端monitor上配置mmm_common.conf
[root@monitor~]#ls/etc/mysql-mmm/mmm_agent.conf
mmm_common.conf#在所有的节点配置,配置相同
mmm_mon.conf#仅在MMM管理端配置
mmm_mon_log.conf
mmm_tools.conf

vim /etc/mysql-mmm/mmm_common.conf 所有的MMM节点配置相同
active_master_rolewriter

cluster_interfaceeth0
pid_path/var/run/mysql-mmm/mmm_agentd.pid
bin_path/usr/libexec/mysql-mmm/
replication_userreplication
replication_passwordreplication
agent_usermmm_agent
agent_passwordagentpasswd

ip192.168.1.210
modemaster
peerdb2

ip192.168.1.211
modemaster
peerdb1

ip192.168.1.209
modeslave

ip192.168.1.250
modeslave

hostsdb1,db2
ips192.168.1.230
modeexclusive

hostsdb1,db2,db3,db4
ips192.168.1.231,192.168.1.232,192.168.1.233,192.168.1.234
modebalanced

Step6:在MMM管理节点上配置mmm_mon.conf
[root@monitor ~]# vim /etc/mysql-mmm/mmm_mon.conf
includemmm_common.conf

ip127.0.0.1
pid_path/var/run/mysql-mmm/mmm_mond.pid
bin_path/usr/libexec/mysql-mmm
status_path/var/lib/mysql-mmm/mmm_mond.status
ping_ips192.168.1.1,192.168.1.2,192.168.1.210,192.168.1.211,192.168.1.209,192.168.1.
250
flap_ration3600
flap_count3
auto_set_online8

#Thekill_host_bindoesnotexistbydefault,thoughthemonitorwill
#throwawarningaboutitmissing.Seethesection5.10"KillHost
#Functionality"inthePDFdocumentation.
#
#kill_host_bin/usr/libexec/mysql-mmm/monitor/kill_host
#

monitor_usermmm_monitor
monitor_passwordmonitorpasswd

debug0

Step7:在所有的MySQL节点配置mmm_agent.conf
[root@master1mysql]#vim/etc/mysql-mmm/mmm_agent.conf
includemmm_common.conf
thisdb1#在四台mysql节点上设置对应的db,分别为db1、db2、db3、db4

Step8:所有节点设置ENABLED=1
cat/etc/default/mysql-mmm-agent
#mysql-mmm-agentdefaults
ENABLED=1

Step9:启动MMM服务
在MMM管理端启动服务
[root@monitor ~]# /etc/init.d/mysql-mmm-monitor startStarting MMM Monitor Daemon: [ OK ]

在每个mysql节点启动服务
[root@master1 ~]# /etc/init.d/mysql-mmm-agent startStarting MMM Agent Daemon: [ OK ]

查看集群运行状态
[root@monitormysql-mmm]#mmm_controlshow
db1(192.168.1.210)master/AWAITING_RECOVERY.Roles:
db2(192.168.1.211)master/AWAITING_RECOVERY.Roles:
db3(192.168.1.209)slave/AWAITING_RECOVERY.Roles:
db4(192.168.1.250)slave/AWAITING_RECOVERY.Roles:

若一直出现上面AWAITING_RECOVERY的状态,可以手动设置各个MySQL节点为online状态
[root@monitor~]#mmm_controlset_onlinedb1
OK:Stateof'db1'changedtoONLINE.!
[root@monitor~]#mmm_controlset_onlinedb2
OK:Stateof'db2'changedtoONLINE.!
[root@monitor~]#mmm_controlset_onlinedb3
OK:Stateof'db3'changedtoONLINE.!
[root@monitor~]#mmm_controlset_onlinedb4
OK:Stateof'db4'changedtoONLINE.!
[root@monitor~]#mmm_controlshow
db1(192.168.1.210)master/ONLINE.Roles:reader(192.168.1.234),writer(192.168.1.230)
db2(192.168.1.211)master/ONLINE.Roles:reader(192.168.1.231)
db3(192.168.1.209)slave/ONLINE.Roles:reader(192.168.1.232)
db4(192.168.1.250)slave/ONLINE.Roles:reader(192.168.1.233)

检测各个节点的运行状态
[root@monitor~]#mmm_controlchecksall
db4ping[lastchange:2016/02/2705:13:57]OK
db4mysql[lastchange:2016/02/2705:13:57]OK
db4rep_threads[lastchange:2016/02/2705:13:57]OK
db4rep_backlog[lastchange:2016/02/2705:13:57]OK:Backlogisnull
db2ping[lastchange:2016/02/2705:13:57]OK
db2mysql[lastchange:2016/02/2705:13:57]OK
db2rep_threads[lastchange:2016/02/2705:13:57]OK
db2rep_backlog[lastchange:2016/02/2705:13:57]OK:Backlogisnull
db3ping[lastchange:2016/02/2705:13:57]OK
db3mysql[lastchange:2016/02/2705:13:57]OK
db3rep_threads[lastchange:2016/02/2705:13:57]OK
db3rep_backlog[lastchange:2016/02/2705:13:57]OK:Backlogisnull
db1ping[lastchange:2016/02/2705:13:57]OK
db1mysql[lastchange:2016/02/2705:13:57]OK
db1rep_threads[lastchange:2016/02/2705:13:57]OK
db1rep_backlog[lastchange:2016/02/2705:13:57]OK:Backlogisnull

Step10:查看各节点虚拟IP分配情况
Master1
[root@master1~]#ipa|grepeth0
2:eth0:mtu1500qdiscpfifo_faststateUPqlen1000
inet192.168.1.210/24brd192.168.1.255scopeglobaleth0
inet192.168.1.234/32scopeglobaleth0
inet192.168.1.230/32scopeglobaleth0

Mster2
[root@master2~]#ipa|grepeth0
2:eth0:mtu1500qdiscpfifo_faststateUPqlen1000
inet192.168.1.211/24brd192.168.1.255scopeglobaleth0
inet192.168.1.231/32scopeglobaleth0

Slave1
[root@slave1~]#ipa|grepeth0
2:eth0:mtu1500qdiscpfifo_faststateUPqlen1000
inet192.168.1.250/24brd192.168.1.255scopeglobaleth0
inet192.168.1.213/32scopeglobaleth0
inet192.168.1.233/32scopeglobaleth0

Slave2
[root@slave2~]#ipa|grepeth0
2:eth0:mtu1500qdiscpfifo_faststateUPqlen1000
inet192.168.1.209/24brd192.168.1.255scopeglobaleth0
inet192.168.1.232/32scopeglobaleth0

Step11:测试MMM实现MySQL高可用
1、授权一个可以通过远程使用VIP登陆集群的用户
mysql> grant all on *.* to 'hm'@'192.168.1.%' identified by '741616710';2、使用VIP192.168.1.230登陆,并做相关测试,在各个节点查看是否同步数据库
[root@monitor ~]# mysql -uhm -p741616710 -h192.168.1.230
mysql>showvariableslike'hostname%';
+---------------+---------+
|Variable_name|Value|
+---------------+---------+
|hostname|master1|
+---------------+---------+
1rowinset(0.01sec)

mysql>createdatabasetest1;
QueryOK,1rowaffected(0.00sec)

mysql>usetest1
Databasechanged
mysql>createtablett1(idint,namevarchar(20));
QueryOK,0rowsaffected(0.13sec)

⑷ linux无盘出现renamed network interface eth0 to eth2什么意思

提示你改网卡的名字。估计是你两个网卡。要启用一个

⑸ Linux服务器自动重启,求助!

如果是真实机器非虚拟机的 最好看下是否是内存坏了一条或者风扇坏了几个

内存坏了 就试试插拔及排除法把坏的换了即可

风扇坏了就换个好的 但是一定要看下主板的电容会不会因为风扇坏了导致很热烧坏几个
请采纳。

⑹ 如何解决启动网卡失败:Bringing up interface eth0:Device eth0

用户因先插上卡然后再装上驱动,拨号提示连接失败,安装顺序不对,先把卡取下卸载硬件驱动,右击我的电脑选择管理设备管理器,把相应调制解调器(Modem)和COM端口,如果有的话卸载掉,重新安装驱动,再插上卡运行程序就可以上网了。

⑺ 启动Linux时在bring up interface eth0一行停了很长时间,然后显示failed,到最后出现一个凌乱的画面,...

1、运行setup,选择Network Configuration,正确配置网卡
2、确认网线是通的

⑻ 弹出界面 eth0: 错误:激活连接失败:Device not managed by NetworkManager or una

Bringing up interface eth0: Error:Connection activation failed:Device not managed by NetworkManager

解决方法:

1、Remove Network Manager from startup Services.

[root@localhost ~]# chkconfig NetworkManager off

2、Add Default Net Manager

[root@localhost ~]# chkconfig network on

3、Stop NetworkManager first

[root@localhost ~]# service NetworkManager stop

4、and then start Default Manager

[root@localhost ~]# service network start

5、然后重新启动网络,可能还会出现以下信息,可以不用管,也可以重启一下电脑主机,我是重启了下机器

RTNETLINK answers: File exists

RTNETLINK answers: File exists

RTNETLINK answers: File exists

6. 重启机器后

service network restart

如果出现

正在决定 eth0 的 IP 信息...失败;无链接。检查电缆吗?   【失败】

则检查自己的windows服务项

开启其中的VMware NAT Service和VMnetDHCP服务即可。

⑼ Linux 的centos版本 没有eth0文件,找不到网卡,连不上网,怎么解决呢

ifconfig -a看不到说明没有识别到网卡
lspci看看有没有网卡设备

需要下载安装网卡驱动,只是增加ifcfg-eth0没用的

⑽ linux eth0网络问题

1、vi /etc/sysconfig/network-scripts/ifcfg-eth0
ifcfg-eth0的配置文件里保存了以前的MAC地址,

2、把ifcfg-eth0的NETMASK=192.168.116.0GATEWAY=192.168.116.2子网掩码是255.255.255.0删除
3、把/etc/udev/rules.d/70-persistent-net.rules 删除后重启机器就可以了重启

热点内容
币圈每个人都赚钱吗 发布:2025-07-28 06:51:37 浏览:351
陀螺多多可以用算力买东西吗 发布:2025-07-28 06:50:09 浏览:917
熊猫矿机b3多少钱 发布:2025-07-28 06:44:55 浏览:403
缅甸比特币诈骗公司 发布:2025-07-28 06:44:45 浏览:655
比特币2017年最高价格多少钱 发布:2025-07-28 06:42:05 浏览:410
48亿区块链新闻网 发布:2025-07-28 06:32:42 浏览:265
比特币微盘平台出租 发布:2025-07-28 05:52:40 浏览:714
卖USDT被骗可以报警吗 发布:2025-07-28 05:43:59 浏览:900
云钱包里的金股是数字货币吗 发布:2025-07-28 05:43:16 浏览:472
13usdt 发布:2025-07-28 05:43:16 浏览:105