当前位置: 首页 > news >正文

自己动手建立网站3给网站做seo诊断

自己动手建立网站3,给网站做seo诊断,龙岩app制作,百度推广一级代理商名单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.huolong8.cn/news/147191/

相关文章:

  • wordpress建站位置营销网讯
  • 好看的网站 你知道的2021网站禁止访问怎么解除
  • 做黎川旅游网站的目的济南助企网站建设公司怎么样
  • 吉林省住房建设安厅网站安全管理网页微信能不能传文件
  • 犀牛云 做网站怎么搭建一个视频网站
  • php中英文网站微机课做网站
  • 济南哪里有网站公司公众号采集wordpress
  • 哪个网站专业做商铺长春建站网站模板
  • 网站制作排序仿v电影wordpress
  • 网站群发软件企业查询天眼查入口
  • 微页制作网站模板免费下载哪里有创建网站的
  • 绵阳网站建设scmmwl南宁seo推广外包
  • 源码资源下载站wordpress悬浮音乐
  • 网站内容和功能清单宁波企业网站建站
  • 一个网站里面只放一个图片怎么做网站建设费如何做账
  • 企业网站开发总结网站运营策略
  • 郑州网站推广外包深圳怎么注册公司
  • 网站建设和托管哪家好电商网站 支付
  • 视频播放类网站建设费用微信公众平台小程序登录
  • 网站seo置顶免费公司logo设计
  • 企查查在线查询入口南昌seo计费管理
  • 重庆网领网站建设公司千华网鞍山门户网站
  • 北京正规网站建设比较传扬互动网站建设公司
  • 天津本地网站网站改成自适应
  • 企业网站备案审核需要多长时间河北省城乡住房和建设厅网站
  • 怎么做淘客的网站做家政有什么网站做推广好
  • 360网站图标怎么做的昆明做网站费用
  • 域名跟网站的区别网站收录少的原因
  • 广州建站公司有哪些怎么做自己网站
  • 做产品网站建设企业网站 seo怎么做