feisky

云计算、虚拟化与Linux技术笔记
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年4月10日

摘要: python epoll用法import socket, selectEOL1 = b'\n\n'EOL2 = b'\n\r\n'response = b'HTTP/1.0 200 OK\r\nDate: Mon, 1 Jan 1996 01:01:01 GMT\r\n'response += b'Content-Type: text/plain\r\nContent-Length: 13\r\n\r\n'response += b'Hello, world!'serversocket = socket.socke 阅读全文

posted @ 2012-04-10 21:28 feisky 阅读(1169) 评论(0) 推荐(0)

摘要: xen-4.1.2+Linux-3.1.2源码编译安装以下所有命令均在CentOS6.2系统上操作。下载xen源码wget http://bits.xensource.com/oss-xen/release/4.1.2/xen-4.1.2.tar.gz安装必备软件包yum groupinstall "Development Libraries"yum groupinstall "Development Tools"yum install transfig wget texi2html libaio-devel dev86 glibc-devel e2fs 阅读全文

posted @ 2012-04-10 21:10 feisky 阅读(3081) 评论(0) 推荐(0)

摘要: 在xen4.1之前,通过设置/etc/xen/xend-config.sxp中的(network-script network-bridge)可以让xend来自动设置网桥。但是xen4.1之后不建议这么做:When using thexltoolstack the host networking configuration is not configured by the toolstack but rather administrators are required to setup an appropriate network configuration using the tools p 阅读全文

posted @ 2012-04-10 21:01 feisky 阅读(1253) 评论(1) 推荐(0)

摘要: You should always dedicate fixed amount of RAM for Xen dom0.This can be done by specifying "dom0_mem=512M" option for Xen hypervisor (usually xen.gz) in grub.conf/menu.lst. This makes sure the initial size of memory allocated for dom0 is 512 MB (replace with the amount of memory you want), 阅读全文

posted @ 2012-04-10 21:00 feisky 阅读(605) 评论(0) 推荐(0)

摘要: 如何从centos6.0升级到centos6.2首先替换默认源为163源:mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backupwget http://mirrors.163.com/.help/CentOS6-Base-163.repomv CentOS6-Base-163.repo /etc/yum.repos.d/升级系统:yum makecacheyum update升级过程中报了一个key相关的错误,具体记不清了,重新执行yum update确定导入key即可。重启,确认更新成功:[r 阅读全文

posted @ 2012-04-10 20:59 feisky 阅读(442) 评论(0) 推荐(0)

无觅相关文章插件,快速提升流量