上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 52 下一页
  2014年1月10日
摘要: 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) 编辑
  2014年1月9日
摘要: 修改CentOS 6.4 root用户的系统默认语言设置最近用Virtual Box 虚拟了一个CentOS系统,版本6.4,安装时使用简体中文。发现用普通用户登录的时候 设置语言环境为English(United States),下次登录的时候系统会默认使用English环境。可是用root用户登录的时候不会记忆上次使用的语言环境而默认使用中文环境。由于中 文语言环境可能导致出现乱码的问题。因此使用English环境是首选。我们可以用下面的方法设置CentOS的默认语言环境:修改CentOS运行环境的默认语言环境变量值[hilon@localhost ~]# gedit /etc/profi 阅读全文
posted @ 2014-01-09 21:47 davidkam 阅读(407) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 52 下一页