随笔分类 - Linux
摘要:使用的命令是lrz和lsz lrzsz的下载地址在这:http://www.ohse.de/uwe/software/lrzsz.html
阅读全文
摘要:http://github.com/fauna/peep/tree/master
阅读全文
摘要:需要注意到是CentOS就自带了一个libevent,但是版本老,跟现在memcached不兼容了。装完后会提示这个错误:error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory所以在装之前,先yum remove libeve...
阅读全文
摘要:看了好几个页面内容都有错,下面是正确方法: #/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT #/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT 然后保存: #/etc/rc.d/init.d/iptables save 再查看是否已经有了: [root@vcentos ~]# /et...
阅读全文
摘要:yum clean all后用该命令看useage还有多少 df -h /var/cache/yum/updates/packages
阅读全文
摘要:dd if=/dev/zero of=/empty_file; rm /empty_file 出现提示输入y,回车 如果不清理的话,用df -h看,如果/被占满了,安装其他东西的时候就会报告no space left on device了
阅读全文
摘要:rmmod pcspkr 搞定它 set bell-style none (/etc/inputrc) 在/etc/modprobe.d/blacklist里增加blacklist pcspkr似乎没用...
阅读全文
摘要:这里所说的web,特指large scale web,大规模,高负载,高并发是它最显著的特点.技术应该是没有界线的,就像微软也从不排斥其他技术一样.写这篇blog希望更多的可以让园友们看到基于.net的web开发上的一些死角和一些固定思路...
阅读全文
摘要:在ubuntu下使用 python dev_appserver.py 站点名称 启动站点调试,有时可以看到两个错误,一个错误是说找不到与datastore相关的warning,这个是由于第一次启动该站点的缘故其次便是这个错误: "Could not initialize images API" you are likely missing the Python "PIL" module. Impo...
阅读全文
摘要:Google出来的文章全都一个样,最后在一个老外的blog上找到了可以work的配置:(/etc/X11/xorg.conf) Section "InputDevice" Identifier "Configured Mouse" Driver "vmmouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Prot...
阅读全文
摘要:% 搜索相对应的括号,或转到第一个括号 ^ 到行首第一个非空格字符 u和c-r 是undo和redo,U是对一行整体的undo a 在行末开始添加 n$ 可以转到下n行的行尾 0 移动到行首 nG 移动到第n行,``可以返回 gg 转到第1行,G 最后一行 H,M,L 该显示页的头、中和尾 zz 将该行置于屏幕中间 ...
阅读全文
摘要:先看截图: 我使用ubuntu server 8.04,siege和lighttpd都在这台机器上,也跑着x,并且是跑在vmware下。 longest transaction为2.85秒,看lighttpd的error log大概找了下原因: 2008-06-08 12:15:12: (mod_fastcgi.c.3524) all handlers for /code.py/code....
阅读全文
摘要:set nu colorscheme darkblue set nocompatible filetype plugin on filetype indent on set mouse=a set autoindent syntax enable set backspace=eol,start,indent set ignorecase set incsearch set magic ...
阅读全文
摘要:连接:http://webpy.org/cookbook/fastcgi-lighttpd 在ubuntu server下最好在/etc/lighttpd/lighttpd.conf中的error.log的位置单独拿出来,然后chmod给这个log文件设置好权限,方便调试。如果要调试程序最方便的还是python YOUR_CODE_NAME来启动自带的web服务器的方式运行。
阅读全文
摘要:在清除ubuntu的log后,lighttpd无法启动,启动后就报no configuration availble的错误,使用/etc/init.d/lighttpd -f /etc/lighttpd/lighttpd.conf来制定配置文件启动会报找不到log的错误。 这时候有两种处理方式: 1.创建.log文件,并赋予相应的权限2.删除lighttpd,再reinstall,这也是本文使用的...
阅读全文
摘要:http://www.nokarma.de/2007/1/22/ubuntu-lighttpd-and-php5-cgi
阅读全文
摘要:sudo apt-get install build-essential sudo apt-get install linux-headers-`uname -r`
阅读全文
摘要:在装fluxbuntu的时候经常会由于网络的问题导致安装停留在某一个阶段不能继续,在失败了几次后断开了网络安装.但是安装完成后不能连接到网络. 解决方法: sudo vim /etc/network/interfaces /*vim操作帮助*/ 1.用h,j,k,l四个键控制方向控制光标移动到文本的最后端,然后按下a,此时开始编辑 2.按enter建创建新行 3.输入: auto eth0...
阅读全文