2014年1月10日
摘要: 由于习惯使用五笔,需要在CentOS5 下安装中文五笔输入法。刚装好的 CentOS 5默认是没有中文输入 法的。只能显示英文,有中文字符的文件名呈现乱码。首先挂载CentOS的系统安装盘,在安装盘下会找到fonts-chinese-3.02-12.el5.noarch.rpm,一 安装字体包1安装该rpm包# rpm -ivh fonts-chinese-3.02-12.el5.noarch.rpm2.修改/etc/sysconfig/i18n 文件把里面的LANG="en_US.uft8"改成LANG="zh_CN.UTF-8"然后保存。如果此时重启 阅读全文
posted @ 2014-01-10 21:22 davidkam 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 目录(?)[+]一般2.6.10以上内核版本都已经自带了ipvsadm,故不需要安装。Ipvs 1.25编译ipvsadm-1.25编译不过去掉netlink库的依赖:去掉libipvs/Makefile的CFLAGS += -DLIBIPVS_USE_NL,去掉Makefile的LIBS += -lnl。需要popt库解析命令行,在这里下载并安装http://freshmeat.net/projects/popt/.。DR方式的LB配置LVS主节点1.修改proc参数#vi /etc/sysctl.confnet.ipv4.ip_forward = 1net.ipv4.conf.all.se 阅读全文
posted @ 2014-01-10 17:12 davidkam 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 环境描述:本文在配置LVS时使用三台linux,一台做Directorserver (192.168.0.25) ,两台做realserver(192.168.0.127 192.168.0.12,在配置lvs+heartbeat时又添加了一台(192.168.0.126)做为备份主节点,虚拟VIP: 192.168.0.100软件列表:ipvsadm-1.24.tar.gzlibnet.tar 下载地址:http://www.packetfactory.net/libnet/ 稳定版本是:1.1.2.1e2fsprogs 可以用rpm 安装光盘heartbeat-2.0.2.tar.gz2. 阅读全文
posted @ 2014-01-10 17:10 davidkam 阅读(304) 评论(0) 推荐(0) 编辑
摘要: ipsvadm 配置一:安装配置 LVS+DR+Keepalivedclient 访问的地址 VIP 192.168.133.100 负载服务器master真实IP 192.168.133.128 负载服务器backup真实IP 192.168.133.150 负载服务器虚拟IP 192.168.133.100 后端WEB服务器IP 192.168.133.128 后端WEB服务器IP 192.168.133.150系统:Redhat 5.4 x86 内核:2.6.18-164.el51.下载所需要的软件:ipvsadm keepalivedwgethttp://www.linuxvirtua 阅读全文
posted @ 2014-01-10 17:09 davidkam 阅读(598) 评论(0) 推荐(0) 编辑
摘要: 假设你的apahce安装目录为/usr/local/apache2,这些方法适合任何情况apahce启动命令:推荐/usr/local/apache2/bin/apachectl start apaceh启动apache停止命令/usr/local/apache2/bin/apachectl stop 停止apache重新启动命令:/usr/local/apache2/bin/apachectl restart 重启要在重启 Apache 服务器时不中断当前的连接,则应运行:/usr/local/sbin/apachectl graceful如果apache安装成为linux的服务的话,可以用 阅读全文
posted @ 2014-01-10 16:18 davidkam 阅读(255) 评论(0) 推荐(0) 编辑
摘要: ftp服务器在网上较为常见,Linux ftp命令的功能是用命令的方式来控制在本地机和远程机之间传送文件,这里详细介绍Linux ftp命令的一些经常使用的命令,相信掌握了这些使用Linux 进行ftp操作将会非常容易。Linux ftp命令的一般格式如下:$ ftp 主机名/IP其中“主机名/IP”是所要连接的远程机的主机名或IP地址。在命令行中,主机名属于选项,如果指定主机名,ftp将试图与远程机的ftp服务程序进行连接;如果没有指定主机名,ftp将给出提示符,等待用户输入命令:$ ftpftp >此时在ftp>提示符后面输入open命令加主机名或IP地址,将试图连接指定的主机 阅读全文
posted @ 2014-01-10 14:37 davidkam 阅读(4474) 评论(0) 推荐(0) 编辑
摘要: 防火墙的基本操作命令:查询防火墙状态:service iptables status停止防火墙:service iptables stop启动防火墙:service iptables start重启防火墙:service iptables restart永久关闭防火墙:chkconfig iptab... 阅读全文
posted @ 2014-01-10 14:35 davidkam 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 1.CentOS修改IP地址:# ifconfig eth0 192.168.1.80这样就把IP地址修改为192.168.1.80(如果发现上不了网了,那么你可能需要把网关和DNS也改一下,后面会提到),但是当你重新启动系统或网卡之后,还是会变回原来的地址,这种修改方式只适用于需要临时做IP修改。要想永久性修改,就要修改/etc/sysconfig/network-scripts/ifcfg-eth0这个文件,这个文件的主要内容如下(你的文件中没有的项,你可以手动添加):# vi /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0 #描述 阅读全文
posted @ 2014-01-10 14:34 davidkam 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 1 更新源[root@server ~]#rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm2 查看yum的nginx信息[root@server ~]# yum info nginxLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile* addons: mirror.yongbok.net* base: mirror.yongbok.net* contrib: mirror.yong 阅读全文
posted @ 2014-01-10 13:00 davidkam 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 一、更改yum源为网易的源加快速度vi /etc/yum.repos.d/CentOS-Base.repo更改内容如下# CentOS-Base.repo## This file uses a new mirrorlist system developed by Lance Davis for CentOS.# The mirror system uses the connecting IP address of the client and the# update status of each mirror to pick mirrors that are updated to and# g 阅读全文
posted @ 2014-01-10 12:59 davidkam 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 新建一个nginx的源,/etc/yum.repos.d/nginx.repo编辑此文件内容如下:[nginx]name=nginx repobaseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/gpgcheck=0enabled=1将OS替换为rhel或centos(根据系统发行版本), 将OSRELEASE替换为5或6(根据系统版本号),并保存。然后可以直接在命令行下yum install nginx完成安装。网页路径在/usr/share/nginx/html里。 阅读全文
posted @ 2014-01-10 12:58 davidkam 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Linux网络配置一:什么是网络接口卡以及如何查看网络接口的网络信息:在Linux系统中,主机的网络接口卡通常称为“网络接口”,我们可以使用ifconfig命令来查看网络接口的信息(普通用户使用/sbin/ifconfig):[root@lht ~]# ifconfigeth0 Link encap:Ethernet HWaddr 00:0C:29:D1:42:3F inet addr:192.168.5.247 Bcast:192.168.5.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fed1:423f/64 Scope:Link U 阅读全文
posted @ 2014-01-10 12:56 davidkam 阅读(619) 评论(0) 推荐(0) 编辑
摘要: @echo off echo 正在清除系统垃圾文件,请稍等...... del /f /s /q %systemdrive%\*.tmp del /f /s /q %systemdrive%\*._mp del /f /s /q %systemdrive%\*.log del /f /s /q %systemdrive%\*.gid del /f /s /q %systemdrive%\*.chk del /f /s /q %systemdrive%\*.old del /f /s /q %systemdrive%\recycled\*.* del /f /s /q %windir%\*.ba 阅读全文
posted @ 2014-01-10 12:46 davidkam 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 在虚拟机上更新yum,总是告诉我找不懂镜像服务器地址,配置失败,连#yum install yum它自己都无法更新。于是决定先配置一下yum的更新源。首先找到yum的主要配置文件,一般在/etc/yum.repos.d/CentOS-Base.repo;网上说自己配置,但自己配置总是丢三落四的,于是干脆直接拽一个下来,先把原来的备份或删除,由于是虚拟机,所以我直接干掉了。# rm CentOS-Base.repo推荐以下地址(任选其一):中科大的yum源:# wget http://centos.ustc.edu.cn/CentOS-Base.repo163的yum源:# wget http: 阅读全文
posted @ 2014-01-10 11:58 davidkam 阅读(566) 评论(0) 推荐(0) 编辑
摘要: 工作原理此处不作讲解,自己去官方网站学习(http://www.linuxvirtualserver.org),这里重点讲如何配置!注:最好从官方网站对其进行了解,不至于会对某些问题产生误解,尽管是英文的!环境:192.168.1.1 GateWay192.168.1.10 LVS_VIP(VIP:Virtual IP)192.168.1.14 LVS_Master 192.168.1.15 LVS_Backup192.168.1.16 WEB1_RealServer192.168.1.17 WEB2_RealServerLINUX(CentOS 5.6)配置1. 安装Ce... 阅读全文
posted @ 2014-01-10 09:10 davidkam 阅读(742) 评论(0) 推荐(0) 编辑
摘要: 有3篇文档详细介绍http://kb.linuxvirtualserver.org/wiki/Windows_Servers_in_LVS/DR_and_LVS/TUN_Clustershttp://blog.loadbalancer.org/direct-server-return-on-windows-2008-using-loopback-adpter/LVS + KEEPALIVED + WINDOWS SERVER 2008 R2 ------高可用负载均衡在Windows Server上需要做下面的配置:1、安装microsoft loopback adapter。2、配置micr 阅读全文
posted @ 2014-01-10 01:56 davidkam 阅读(596) 评论(0) 推荐(0) 编辑
摘要: LVS-DR,real-server为windows 2008的配置 部署邮件系统负载均衡,采用LVS-DR模式,调度器是一台centos 5.8,real-server是两台windows2008,DR的配置网上很多,就不贴出来了,主要是real-server的配置,因为是windows 2008,多了些步骤具体做法如下:1.关掉系统自带防火墙功能2.新增环回网卡3.配置环回ip为vip的ip,掩码255.255.255.2554.修改网卡信息在命令行下修改,开始--运行--cmdnetsh interface ipv4 set interface "实节点网卡名字" w 阅读全文
posted @ 2014-01-10 01:53 davidkam 阅读(586) 评论(0) 推荐(0) 编辑
摘要: centos-64整合nginx和tomcat 分类: Linux 2013-04-25 10:41 128人阅读 评论(0) 收藏 举报1、安装wget和依赖包yum install wgetyum install make gcc gcc-c++ autoconf automakeyum install zlib zlib-devel openssl openssl-devel pcre pcre-devel2、创建nginx目录并下载nginx最新稳定版本mkdir /home/nginx/wget nginx.org/download/nginx-1.2.8.tar.gz3、解压... 阅读全文
posted @ 2014-01-10 00:10 davidkam 阅读(278) 评论(0) 推荐(0) 编辑
摘要: Centos下其大概意思是fastestmirror不能使用,fastestmirror是yum的一个加速插件,具体我也没有仔细了解过,可能是系统不支持或者缺少组建导致的。处理办法就是禁用这个插件,方法如下:root@huoduan.com]#vi/etc/yum/pluginconf.d/fastestmirror.conf[main]enabled=0//把1改为0verbose=0socket_timeout=3hostfilepath=/var/cache/yum/timedhosts.txtmaxhostfileage=10maxthreads=15#exclude=.gov,fac 阅读全文
posted @ 2014-01-10 00:09 davidkam 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 今晚在centos下安装nginx,记录下步骤备忘:1 在nginx官方网站下载一个rpm包,下载地址是:http://nginx.org/en/download.htmlwget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm2 安装这个rpm包rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm 安装过程中会出现错误提示:warning: nginx-release-centos-6-0.el6.ngx.n 阅读全文
posted @ 2014-01-10 00:08 davidkam 阅读(232) 评论(0) 推荐(0) 编辑