1、本文的架构图:阐述各服务器用途:1、haproxy在本构架中实现的是:负载均衡2、keepalived实现对haproxy的高可用3、apachestatic实现静态页面的访问4、aoachedynamic实现动态页面的访问,图中有两个是实现负载均衡的配置各功能模块:一、配置haproxy和keepalived验证:1、当..
分类:
Web程序 时间:
2014-05-05 12:34:36
阅读次数:
668
Linux网络服务之DNS(3)实验要求:实验一实现分离解析:主机192.168.10.20解析www.zhy.com结果为192.168.1.100主机192.168.10.21解析www.zhy.com结果为192.168.1.101其他主机解析www.zhy.com结果为192.168.1.102实验步骤:1、安装软件包略……2、修改配置文件[root@localhoste..
分类:
系统相关 时间:
2014-05-05 12:33:13
阅读次数:
439
实验目标:1、haproxy统计页面的输出机制;2、haproxy动静分离机制;3、基于keepalived的高可用实现;环境:vm8虚拟机操作系统:centos6.4内核版本:2.6.32-358.el6.x86_64注:(1)每个haproxy各有两块网卡,外网网卡选择Bridge,内网网卡选择Vmnet2;(2)内部两台web服务器的网卡都是..
分类:
其他好文 时间:
2014-05-05 12:31:13
阅读次数:
529
二、配置haproxy实现网站的负载均衡:1、node1和node2都安装httpd,php,php-mysql:[root@node1~]#yum-yinstallhttpdphpphp-mysql[root@node2~]#yum-yinstallhttpdphpphp-mysql2、为node1和node2提供静态和动态网页:[root@node1~]#ls/var/www/html/
index.htmlindex.php
[roo..
分类:
其他好文 时间:
2014-05-05 12:30:42
阅读次数:
614
移植MT7601Uusb无线网卡(小度wifi,360随身WIFI 2代)到嵌入式板上...
分类:
系统相关 时间:
2014-05-04 18:50:16
阅读次数:
653
在memory.c里面有这么一段代码。为了其中的一句话,让我内牛满面啊!
dir = (unsigned long *) ((from>>20) & 0xffc)
int free_page_tables(unsigned long from,unsigned long size)
{
unsigned long *pg_table;
unsigned long...
分类:
系统相关 时间:
2014-05-04 18:22:41
阅读次数:
459
#define PAGE_SIZE 4096
/* these are not to be changed without changing head.s etc */
#define LOW_MEM 0x100000
extern unsigned long HIGH_MEMORY;
#define PAGING_MEMORY (15*1024*1024)
#define PAGING_PAG...
分类:
系统相关 时间:
2014-05-04 18:15:51
阅读次数:
441
12、命令行启动
由于我是用VM进行安装的,所以首先需要修改默认启动为命令行的方式。
使用root登录,编辑/etc/inittab文件,将d:5:initdefault:改为d:3:initdefault:
知识点6:Linux的运行级别
# 0 - 停机(千万不能把initdefault 设置为0)
# 1 - 单用户模式 # s init s = init 1
# 2 - 多...
分类:
数据库 时间:
2014-05-04 18:09:26
阅读次数:
407
中文版显示:Firefox 已经在运行,但是没有响应。如要打开新窗口,您必须先关闭该 Firefox 进程,或者重新启动您的系统。
英文版显示:Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or ...
分类:
系统相关 时间:
2014-05-04 17:44:21
阅读次数:
647