}
«网站首页

feisky

关注此人
把feisky加为好友
附言:



最新动态
  • 前不久因项目需要写了开机启动其他程序的shell脚本,因工作忙,调试完给了技术支持人员,也没去注意过。到后来,有几台服务器突然被重启了,这时候领导问,怎么开机启动的脚本没起作用,还被批了一顿,哎,做事...
  • 先以time为例:解决time命令输出信息的重定向问题time命令的输出信息是打印在标准错误输出上的,我们通过一个简单的尝试来验证一下。[root@web186 root]#time find . -...
  • feisky 发表博客:一个诡异的bash问题 2012-04-24 14:43
    一个诡异的bash问题今天写的一个bash脚本运行发现:test.sh: 1: #!/bin/bash: not found本以为是由于在windows下编辑导致的问题,执行dos2unix之后问题依...
  • feisky 发表博客:用 grep 恢复误删的文本文件 2012-04-16 10:53
    作为长期的电脑使用者,肯定会有误删文件的经历,在 Mac OS X 和 Windows 上删除的文件都会默认进 “回收站”。在 Linux 上如果事先没有用别名(alias)修改默认的 rm 功能,r...
  • feisky 发表博客:转一篇Linux可用内存的统计方法 2012-04-14 20:10
    背景由于Linux缓存机制的设计,系统对缓存的使用是非常狠的,所以经常会看到某些环境内存只剩几十兆了,而应用只用了不到一半。所以在计算可用内存的时候,一定要算上缓存的部分。通常方法,就是通过free命...
  • feisky 发表博客:转一篇Instagram的架构分享 2012-04-14 19:45
    One of the questions we always get asked at meet-ups and conversations with other engineers is, “wha...
  • xm list和xl list显示内存不一致的问题 在xen4.1.2上一台windows虚机碰到这个问题: # xm list test6 Name ID Mem VCPUs State Time(...
  • feisky 发表博客:Xen4.2增加新的CPU调度参数 2012-04-11 13:00
    Xen 4.2 will contain two new scheduling parameters for the credit1 scheduler which significantly inc...
  • 下载所需要的安装文件:wget http://www.oberhumer.com/opensource/lzo/download/lzo-2.02.tar.gzwget http://swupdate...
  • feisky 发表博客:python epoll 2012-04-10 21:26
    python epoll用法import socket, selectEOL1 = b'\n\n'EOL2 = b'\n\r\n'response = b'HTTP/1.0 200 OK\r\nDa...
  • feisky 发表博客:xen-4.1.2+Linux-3.1.2源码编译安装 2012-04-10 21:09
    xen-4.1.2+Linux-3.1.2源码编译安装以下所有命令均在CentOS6.2系统上操作。下载xen源码wget http://bits.xensource.com/oss-xen/rele...
  • feisky 发表博客:xen4.1.2网桥配置 2012-04-10 21:00
    在xen4.1之前,通过设置/etc/xen/xend-config.sxp中的(network-script network-bridge)可以让xend来自动设置网桥。但是xen4.1之后不建议这...
  • You should always dedicate fixed amount of RAM for Xen dom0.This can be done by specifying "dom0_mem...
  • feisky 发表博客:如何从centos6.0升级到centos6.2 2012-04-10 20:58
    如何从centos6.0升级到centos6.2首先替换默认源为163源:mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Ba...
  • What is the difference between urllib and urllib2 modules of Python?You might be intrigued by the ex...
  • feisky 发表博客:python urllib 2012-04-09 18:18
    urllib.urlopen(url[, data[, proxies]]) : 创建一个表示远程url的类文件对象,然后像本地文件一样操作这个类文件对象来获取远程数据。参数url表示远程数据的路径,...
  • feisky 发表博客:python urllib 2012-04-09 18:17
    urllib.urlopen(url[, data[, proxies]]) : 创建一个表示远程url的类文件对象,然后像本地文件一样操作这个类文件对象来获取远程数据。参数url表示远程数据的路径,...
  • feisky 发表博客:Xen Memory Management 2012-04-09 15:55
    All low-level memory operations go through Xen.Guest OSes are responsible for allocating and initial...
  • feisky 发表博客:Xen Memory Management 2012-04-09 15:50
    All low-level memory operations go through Xen.Guest OSes are responsible for allocating and initial...
  • 查看进程14755(httpd)打开了哪些文件:localhost:~# lsof -p 14755COMMAND PID USER FD TYPE DEVICE SIZE NODE NAMEhttp...
  • feisky 发表博客:realloc理解 2012-04-05 21:36
    realloc 用过很多次了。无非就是将已经存在的一块内存扩大。 char* p = malloc(1024); char* q = realloc(p,2048); 现在的问题是我们应该...
  • feisky 发表博客:realloc理解 2012-04-05 21:35
    realloc 用过很多次了。无非就是将已经存在的一块内存扩大。 char* p = malloc(1024); char* q = realloc(p,2048); 现在的问题是我们应该如何...
  • feisky 发表博客:xm migrate源码分析 2012-04-05 15:35
    xm migrate源码分析xen动态迁移虚机的命令为:xm migrate --live <domain id> <destination machine>迁移的原理Xen live migrati...
  • feisky 发表博客:xm migrate源码分析 2012-04-05 15:33
    xm migrate源码分析xen动态迁移虚机的命令为:xm migrate --live <domain id> <destination machine>迁移的原理Xen live migrati...
  • This article is written to address sometimes incorrect usage of the “dd” program to measure disk wri...
  • feisky 发表博客:一个诡异的时间问题追查[转] 2012-03-30 21:26
    问题引入:问题是我们重装了一台电脑之后,发现apache的日志里突然增加了很多服务时间超长的请求,如下面两条:** - - 4913229 11227 [29/Mar/2012:09:59:58 +0...
  • feisky 发表博客:Web自动化测试工具——Selenium IDE 2012-03-29 16:40
    同事推荐的一个Web自动化测试工具:Selenium IDE需要Firefox/Firebug,并安装Selenium IDE 插件下载地址:http://seleniumhq.org/downloa...
  • feisky 发表博客:Amazon EBS 特性、故障和设计 2012-03-29 10:29
    Amazon EBS全称是Elastice Block Store, 功能是为EC2提供可靠的块设备存储, 对于用户来说EBS就是一个磁盘, 磁盘上面可以安装数据库、文件系统等各种应用,EBS主要用在...
  • feisky 发表博客:On Amazon EC2's Underlying Architecture 2012-03-29 10:08
    aws架构的总结http://openfoo.org/blog/amazon_ec2_underlying_architecture.htmlMany people know that Amazon ...
  • feisky 发表博客:Brief Summary of IaaS, PaaS, SaaS 2012-03-27 13:17
    In this posting, I summarize my prior three posts on the three cloud computing offerings: Infrastruc...
Top