会动的耳朵  

2013年7月25日

摘要: 1. 查看httpd 服务ps aux | grep httpd |wc -l2. 查看nginx 端口监听状态netstat -atlnp | grep "nginx"3.netstat -atlnp | grep "php-cgi" | grep "70M进程号或40M进程号"4. 查看内存使用... 阅读全文
posted @ 2013-07-25 16:00 会动的耳朵 阅读(181) 评论(0) 推荐(0) 编辑

2013年7月24日

摘要: [root@ccx64 mnt]# df -T Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/mapper/vg_ccx64-lv_root ext4 18102140 12534156 4648432 73% / tmpfs tmpfs 510008 0 510008 0% /dev/shm /dev/sda1 ext4 495844 55310 414934 ... 阅读全文
posted @ 2013-07-24 10:35 会动的耳朵 阅读(2160) 评论(0) 推荐(0) 编辑

2013年6月27日

摘要: 1 阅读全文
posted @ 2013-06-27 10:02 会动的耳朵 阅读(670) 评论(0) 推荐(0) 编辑

2013年6月19日

摘要: 参考: 1.http://www.cnblogs.com/geekma/archive/2013/02/22/2921952.html #2.6 : python ez_setup.py -U setuptools #3.2 ez_setup.py wget https://bitbucket.org/pypa/setuptools/raw/0.7.6/ez_setup.py -O - | python 地址:https://pypi.python.org/pypi/setuptools/0.7.6#installation-instructions/usr/... 阅读全文
posted @ 2013-06-19 17:04 会动的耳朵 阅读(239) 评论(0) 推荐(0) 编辑

2013年6月18日

摘要: 在用户自己的目录下有个.vimrc就是vim的配置文件,在这里可以随时添加扩展我一直使用的配置如下,在win下也可使用:set nobombset fileencodings=utf-8,gb2312,gbk,gb18030set termencoding=utf-8set encoding=utf-8set fileformats=unixset softtabstop=4set expandtabset shiftwidth=4set guifont=15set nocompatible " Use Vim defaults (much better!)set bs=inde.. 阅读全文
posted @ 2013-06-18 15:18 会动的耳朵 阅读(443) 评论(0) 推荐(0) 编辑
 
摘要: 参考:http://www.cnblogs.com/xiekeli/archive/2012/04/27/2474230.html资源网站:python.org/getit/版本:http://python.org/ftp/python/3.3.2/Python-3.3.2.tar.xz1 tar xvf python-3.3.2*3 cd python-3.3.25 ./configure7 make && make install直接命令行进入,输入python# pythonPython 2.6.6 (r266:84292, Jun 18 2012, 14:18:47)[ 阅读全文
posted @ 2013-06-18 15:08 会动的耳朵 阅读(224) 评论(0) 推荐(0) 编辑

2013年6月9日

摘要: 在文件中查找字符串:find /etc -name "passwd*" |xargs grep "sam"; 阅读全文
posted @ 2013-06-09 10:56 会动的耳朵 阅读(606) 评论(0) 推荐(0) 编辑

2013年5月30日

摘要: [root@ccx64 app]# dateFri May 31 01:24:50 CST 2013[root@ccx64 app]# date --set='2013-05-30 17:25:00'Thu May 30 17:25:00 CST 2013[root@ccx64 app]# clock -w[root@ccx64 app]# dateThu May 30 17:25:09 CST 2013 阅读全文
posted @ 2013-05-30 17:26 会动的耳朵 阅读(155) 评论(0) 推荐(0) 编辑

2013年5月20日

摘要: 推荐参考:http://www.ansen.org/centos-build-lnmp.html网络配置: 1>vim /et/sysconfig/network-scripts/ifcfg-eth0DEVICE="eth0"BOOTPROTO="static"HWADDR="00:0C:29:8D:63:CD"NM_CONTROLLED="yes"ONBOOT="yes"TYPE="Ethernet"UUID="1c3691e3-a043-43fc-a145 阅读全文
posted @ 2013-05-20 13:11 会动的耳朵 阅读(197) 评论(0) 推荐(0) 编辑

2013年4月11日

摘要: 最核心最全的记录还是coreseek中文官方的,www.coreseek.cn1. cs 的sphinx 关键点在于中文分词上何为中文分词?刚刚接触到sphinx的时候,一头雾水,不知从何下手,好在有官方文档。http://www.coreseek.cn/products-install/左侧有相关导航链接值得收藏 1.1 我们现在准备用同义词,因为一元分词对我们来说索引产生的数量级过大,一元分词就pass了 1.2 先看下“同义词/复合分词设置”:http://www.coreseek.cn/products-install/coreseek_mmseg_complex/ 核心在于... 阅读全文
posted @ 2013-04-11 11:07 会动的耳朵 阅读(151) 评论(0) 推荐(0) 编辑