yum报错[Errno 14] PYCURL ERROR 22(更换yum源)
摘要:Yum报错[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"解决办法:1、下载CentOS6-Base-163.repohttp://mirrors.163.com/.help/centos.html2、替换/etc/yum.repos.d下的CentOS-Base.repo文件mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backupmv CentOS6-Base-163.repo /etc/
阅读全文
posted @
2014-01-22 14:13
jingyunyb
阅读(4349)
推荐(0)
samba安装及应用实例
摘要:Samba服务器:windows与linux文件共享SMB(Server Message Block)协议是一种客户端服务器协议,位于应用层,是windows共享文件和打印服务的标准化协议。安装Samba服务1、在可以联网的机器上使用yum工具安装,如果未联网,则挂载系统光盘进行安装。# yum install samba samba-client samba-swat有依赖关系的包samba-common、samba-winbind-clients、libsmbclient将自动安装上去。2、查看安装状况3、安装包说明samba-common-3.5.10-125.el6.x86_64 //
阅读全文
posted @
2014-01-06 13:01
jingyunyb
阅读(511)
推荐(0)
centos静态ip设置
摘要:1、修改网卡配置编辑:vi /etc/sysconfig/network-scripts/ifcfg-eth0或/etc/sysconfig/network-scripts/ifcfg-Auto-eth0DEVICE=eth0 #描述网卡对应的设备别名,例如ifcfg-eth0的文件中它为eth0BOOTPROTO=static #设置网卡获得ip地址的方式,可能的选项为static,dhcp或bootp,分别对应静态指定的ip地址,通过dhcp协议获得的ip地址,通过bootp协议获得的ip地址BROADCAST=192.168.0.255 #对应的子网广播地址HWADDR=00:07...
阅读全文
posted @
2014-01-03 13:58
jingyunyb
阅读(172)
推荐(0)
Linux-top命令解释
摘要:SUMMARY Area FieldsThe summary area fields describing CPU statistics are abbreviated.They provide information about times spent in:us = user modesy = system modeni = low priority user mode (nice)id = idle taskwa = I/O waitinghi = servicing IRQssi = servicing soft IRQsst = steal (time given to other
阅读全文
posted @
2014-01-02 12:57
jingyunyb
阅读(246)
推荐(0)
负载均衡
摘要:Lvs dr模式Virtual Server via Direct Routing(VS/DR)VS/DR通过改写请求报文的MAC地址,将请求发送到真实服务器,而真实服务器将响应直接返回给客户。同VS/TUN技术一样,VS/DR技术可极大的提高集群系统的伸缩性。这种方法没有IP隧道的开销,对集群中的真实服务器也没有必须支持IP隧道协议的要求,但是要求调度器与真实服务器都有一块网卡连在同一物理段上。lvs-server# ifconfig tunl0 down#echo 1 >/proc/sys/net/ipv4/ip_forward# ifconfig eth0:0 192.168.1.
阅读全文
posted @
2013-12-23 09:45
jingyunyb
阅读(355)
推荐(0)
Linux防火墙设置
摘要:一、查看防火墙状态# service iptables status# /etc/init.d/iptables status二、永久开启和永久关闭chkconfig iptables onchkconfig iptables off三、暂时开启和暂时关闭service iptables startservice iptables stop四、系统启动时不同级别下启动情况chkconfig --list | grep iptables五、selinux的开关# vi /etc/selinux/config查看selinux的当前状态getenforce设置selinux的当前工作模式seten
阅读全文
posted @
2013-11-08 13:57
jingyunyb
阅读(222)
推荐(0)
linux设置环境变量
摘要:一、/etc/profile或者~/.bashrcexport JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jreexport HADOOP_HOME=/home/hadoop/hadoop-1.0.0export HIVE_HOME=/home/hadoop/hive-0.8.1export HADOOP_CONF_DIR=$HOME/confexport HIVE_CONF_DIR=$HOME/hive-confexport CLASSPATH=$HIVE_HOME/lib:$JAVA_HOME/lib:$JAVA_HO
阅读全文
posted @
2013-10-31 10:07
jingyunyb
阅读(476)
推荐(0)
VMware克隆CentOS 6.4后 重新设置eth0
摘要:问题:用VMware克隆CentOS6.4后,发现系统内只有eth1,而且/etc/sysconfig/network-scripts/下只有,ifcfg-eth0文件,虽然可以上网,但无法设置静态IP。ifconfig eth0eth1: error fetching interface information: Device not found解决:vi /etc/udev/rules.d/70-persistent-net.rules# PCI device 0x1022:0x2000 (pcnet32)SUBSYSTEM=="net", ACTION=="
阅读全文
posted @
2013-10-03 10:06
jingyunyb
阅读(355)
推荐(0)