企业网站优化方案范本收费网站必须备案吗
news/
2025/10/2 18:16:29/
文章来源:
企业网站优化方案范本,收费网站必须备案吗,如何分析网站竞争对手,网站后台基本功能RHEL6的网络管理与RHEL5的有比较大的改变。虽然在RHEL5、6中均安装有NetworkManager#xff0c;在RHEL5中2、3、4、5级别中默认是不启用的。但在RHEL6中#xff0c;默认是启用的#xff0c;NetworkManager会一直监控网卡状态#xff0c;修改网卡参数立即生效不用重启服务。… RHEL6的网络管理与RHEL5的有比较大的改变。 虽然在RHEL5、6中均安装有NetworkManager在RHEL5中2、3、4、5级别中默认是不启用的。 但在RHEL6中默认是启用的NetworkManager会一直监控网卡状态修改网卡参数立即生效不用重启服务。 [rootrhel5 ~]# chkconfig --list NetworkManager #默认开机不自动启动NetworkManager服务NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off [rootrhel6 ~]# chkconfig --list NetworkManager #默认开机自动启动NetworkManager服务 NetworkManager 0:off 1:off 2:on 3:on 4:on 5:on 6:off · IP别名 RHEL5 [rootrhel5 ~]# /etc/init.d/NetworkManager status NetworkManager 已停 [rootrhel5 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 # Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) DEVICEeth0 ONBOOTyes TYPEEthernet BOOTPROTOnone IPADDR192.168.1.90 NETWORK255.255.255.0 GATEWAY192.168.1.1 DNS18.8.8.8 DNS28.8.4.4 [rootrhel5 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0:1 #配置IP别名需要添加虚拟网卡eht0:1 # Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) DEVICEeth0:1 ONBOOTyes TYPEEthernet BOOTPROTOnone IPADDR192.168.2.90 NETWORK255.255.255.0 DNS18.8.8.8 DNS28.8.4.4 [rootrhel5 ~]# ip add show eth0 7: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc noqueue link/ether 00:0c:29:db:14:10 brd ff:ff:ff:ff:ff:ff inet 192.168.1.90/24 brd 192.168.1.255 scope global eth0 inet 192.168.2.90/24 brd 192.168.2.255 scope global eth0:1 RHEL6 [rootrhel6 ~]# /etc/init.d/NetworkManager status NetworkManager (pid 2808) is running... [rootrhel6 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICEeth0 ONBOOTyes NM_CONTROLLEDyes TYPEEthernet BOOTPROTOnone HWADDR00:0C:29:BF:45:80 IPADDR192.168.1.119 NETWORK255.255.255.0 GATEWAY192.168.1.1 IPADDR2192.168.2.119 #配置IP别名可直接在eth0中添加IP地址NETWORK255.255.255.0 DNS18.8.8.8 #可直接在/etc/resolv.conf中写入nameserver 8.8.8.8 DNS28.8.4.4 [rootrhel6 ~]# ip add show eth0 2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0c:29:bf:45:80 brd ff:ff:ff:ff:ff:ff inet 192.168.1.119/24 brd 192.168.1.255 scope global eth0 inet 192.168.2.119/24 brd 192.168.2.255 scope global eth0 · 多网卡绑定 bonding RHEL5 [rootrhel5 ~]# cat /etc/modprobe.conf alias bond0 bonding options bonding miimon100 mode1 #每隔100ms监测一次链路状态,HA模式 [rootrhel5 ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICEbond0 ONBOOTyes TYPEEthernet BOOTPROTOnone IPADDR192.168.1.90 NETMASK255.255.255.0 [rootrhel5 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICEeth0 ONBOOTyes TYPEEthernet BOOTPROTOnone MASTERbond0 SLAVEyes [rootrhel5 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICEeth1 ONBOOTyes TYPEEthernet BOOTPROTOnone MASTERbond0 SLAVEyes [rootrhel5 ~]# ifconfig bond0 Link encap:Ethernet HWaddr 00:0C:29:DB:14:10 inet addr:192.168.1.90 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fedb:1410/64 Scope:Link UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:1229 errors:0 dropped:0 overruns:0 frame:0 TX packets:589 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:92885 (90.7 KiB) TX bytes:78052 (76.2 KiB) eth0 Link encap:Ethernet HWaddr 00:0C:29:DB:14:10 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:530 errors:0 dropped:0 overruns:0 frame:0 TX packets:291 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:40654 (39.7 KiB) TX bytes:40137 (39.1 KiB) eth1 Link encap:Ethernet HWaddr 00:0C:29:DB:14:10 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:714 errors:0 dropped:0 overruns:0 frame:0 TX packets:310 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:53177 (51.9 KiB) TX bytes:39827 (38.8 KiB) [rootrhel5 ~]# cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.4.0 (October 7, 2008) Bonding Mode: fault-tolerance (active-backup) #HA模式 Primary Slave: None Currently Active Slave: eth0 #主网卡eth0 MII Status: up MII Polling Interval (ms): 100 #检测时间100ms Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eth0 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:0c:29:db:14:10 Slave Interface: eth1 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:0c:29:db:14:1aRHEL6 [rootrhel6 ~]# cat /etc/modprobe.d/bonding.conf #区别于RHEL5的/etc/modprobe.confalias bond0 bonding [rootrhel6 ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICEbond0 ONBOOTyes BOOTPROTOnone NM_CONTROLLEDno IPADDR192.168.1.119 NETMASK255.255.255.0 BONDING_OPTSMODE0 MIIMON1000 #1000ms监测一次链路状态,LB模式[rootrhel6 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICEeth0 ONBOOTyes NM_CONTROLLEDno TYPEEthernet BOOTPROTOnone MASTERbond0 SLAVEyes [rootrhel6 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICEeth1 ONBOOTyes NM_CONTROLLEDno TYPEEthernet BOOTPROTOnone MASTERbond0 SLAVEyes [rootrhel6 ~]# ifconfig bond0 Link encap:Ethernet HWaddr 00:0C:29:BF:45:80 inet addr:192.168.1.119 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:febf:4580/64 Scope:Link UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:3133 errors:0 dropped:0 overruns:0 frame:0 TX packets:619 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:275036 (268.5 KiB) TX bytes:86282 (84.2 KiB) eth0 Link encap:Ethernet HWaddr 00:0C:29:BF:45:80 inet addr:192.168.1.119 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:2317 errors:0 dropped:0 overruns:0 frame:0 TX packets:309 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:207976 (203.1 KiB) TX bytes:48317 (47.1 KiB) eth1 Link encap:Ethernet HWaddr 00:0C:29:BF:45:8A inet addr:192.168.1.119 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:816 errors:0 dropped:0 overruns:0 frame:0 TX packets:312 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:67060 (65.4 KiB) TX bytes:38801 (37.8 KiB)[rootrhel6 ~]# cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009) Bonding Mode: load balancing (round-robin) #LB模式 MII Status: up MII Polling Interval (ms): 1000 #监测时间1000ms Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eth0 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: 00:0c:29:bf:45:80 Slave queue ID: 0 Slave Interface: eth1 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: 00:0c:29:bf:45:8a Slave queue ID: 0 以下是摘自Red Hat Enterprise Linux 6 Essentials eBook 1.For example, if two Ethernet interfaces are being channel bonded, both eth0 and eth1 may look like the following example: DEVICEethN BOOTPROTOnone ONBOOTyes MASTERbond0 SLAVEyes USERCTLno 2.cp /etc/sysconfig/network-script/ifcfg-eth0 /etc/sysconfig/network-script/ifcfg-bond0 DEVICEbond0 IPADDR192.168.1.1 NETMASK255.255.255.0 ONBOOTyes BOOTPROTOnone USERCTLno BONDING_OPTSbonding parameters separated by spaces 3.As root, create a new file named bonding.conf in the /etc/modprobe.d/ directory. Note that you can name this file anything you like as long as it ends with a .conf extension. Insert the following line in this new file: alias bondN bonding 4.You can configure each bond individually by manipulating the files located in the /sys/class/net/bondN/bonding/ directory. First, the bond you are configuring must be taken down: # ifconfig bond0 down As an example, to enable MII monitoring on bond0 with a 1 second interval, you could run (as root): # echo 1000 /sys/class/net/bond0/bonding/miimon To configure bond0 for balance-alb mode, you could run either: # echo 6 /sys/class/net/bond0/bonding/mode ...or, using the name of the mode: # echo balance-alb /sys/class/net/bond0/bonding/mode Mode of operation : 0 for balance-rr, 1 for active-backup, 2 for balance-xor, 3 for broadcast, 4 for 802.3ad, 5 for balance-tlb, 6 for balance-alb (charp) 切换测试 1). 切断eth0的连接前,eth1处于Slave状态,通过以下命令可监测链路统计信息,发现eth1无数据的收发(只接收来自eth0的监测报文) [rootrhel6 ~]# watch ip -s link show eth1 #默认每隔2s运行一次ip -s link show eth1 Every 2.0s: ip -s link show eth1 Wed Nov 21 02:13:48 2012 3: eth1: BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP mtu 1500 qdisc pfifo_fast master bond0 qlen 1000 link/ether 00:0c:29:db:14:10 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 137357 1916 0 0 0 0 TX: bytes packets errors dropped carrier collsns 41562 441 0 0 0 0 2). 切断eth0的连接后,eth1立即自动切换为Active状态(通过客户端ping -t 192.168.1.90 未出现丢包现象),可发现eth1出现了数据的收发 [rootrhel5 ~]# ifdown eth0 [rootrhel5 ~]# ifconfig bond0 Link encap:Ethernet HWaddr 00:0C:29:DB:14:10 inet addr:192.168.1.90 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fedb:1410/64 Scope:Link UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:13276 errors:0 dropped:0 overruns:0 frame:0 TX packets:890 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:874191 (853.7 KiB) TX bytes:96900 (94.6 KiB) eth1 Link encap:Ethernet HWaddr 00:0C:29:DB:14:10 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:13276 errors:0 dropped:0 overruns:0 frame:0 TX packets:890 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:874191 (853.7 KiB) TX bytes:96900 (94.6 KiB) [rootrhel5 ~]# cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.4.0 (October 7, 2008) Bonding Mode: fault-tolerance (active-backup) Primary Slave: None Currently Active Slave: eth1 MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eth1 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:0c:29:db:14:1a 3). 重新连接上eth0后,eth0不会自动切换到Active状态,且不会有数据的收发 [rootrhel5 ~]# ifup eth0 [rootrhel5 ~]# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:0C:29:DB:14:10 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:120 (120.0 b) TX bytes:0 (0.0 b) [rootrhel5 ~]# cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.4.0 (October 7, 2008) Bonding Mode: fault-tolerance (active-backup) Primary Slave: None Currently Active Slave: eth1 MII Status: up MII Polling Interval (ms): 1000 Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eth1 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:0c:29:db:14:1a Slave Interface: eth0 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:0c:29:db:14:10 本文转自Vnimos51CTO博客原文链接http://blog.51cto.com/vnimos/1065384如需转载请自行联系原作者
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/925175.shtml
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!