随笔分类 -  Linux

摘要:使用的命令是lrz和lsz lrzsz的下载地址在这:http://www.ohse.de/uwe/software/lrzsz.html 阅读全文
posted @ 2009-06-16 11:24 new 维生素C.net() 阅读(477) 评论(0) 推荐(0) 编辑
摘要:http://github.com/fauna/peep/tree/master 阅读全文
posted @ 2009-04-21 12:20 new 维生素C.net() 阅读(347) 评论(0) 推荐(0) 编辑
摘要:需要注意到是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... 阅读全文
posted @ 2009-04-12 20:22 new 维生素C.net() 阅读(921) 评论(0) 推荐(0) 编辑
摘要:看了好几个页面内容都有错,下面是正确方法: #/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... 阅读全文
posted @ 2008-10-15 15:20 new 维生素C.net() 阅读(1207) 评论(0) 推荐(0) 编辑
摘要:yum clean all后用该命令看useage还有多少 df -h /var/cache/yum/updates/packages 阅读全文
posted @ 2008-10-14 01:37 new 维生素C.net() 阅读(2400) 评论(0) 推荐(0) 编辑
摘要:dd if=/dev/zero of=/empty_file; rm /empty_file 出现提示输入y,回车 如果不清理的话,用df -h看,如果/被占满了,安装其他东西的时候就会报告no space left on device了 阅读全文
posted @ 2008-07-22 01:30 new 维生素C.net() 阅读(472) 评论(0) 推荐(1) 编辑
摘要:rmmod pcspkr 搞定它 set bell-style none (/etc/inputrc) 在/etc/modprobe.d/blacklist里增加blacklist pcspkr似乎没用... 阅读全文
posted @ 2008-07-13 16:32 new 维生素C.net() 阅读(261) 评论(0) 推荐(0) 编辑
摘要:这里所说的web,特指large scale web,大规模,高负载,高并发是它最显著的特点.技术应该是没有界线的,就像微软也从不排斥其他技术一样.写这篇blog希望更多的可以让园友们看到基于.net的web开发上的一些死角和一些固定思路... 阅读全文
posted @ 2008-06-23 00:51 new 维生素C.net() 阅读(7232) 评论(44) 推荐(0) 编辑
摘要:在ubuntu下使用 python dev_appserver.py 站点名称 启动站点调试,有时可以看到两个错误,一个错误是说找不到与datastore相关的warning,这个是由于第一次启动该站点的缘故其次便是这个错误: "Could not initialize images API" you are likely missing the Python "PIL" module. Impo... 阅读全文
posted @ 2008-06-21 02:28 new 维生素C.net() 阅读(608) 评论(0) 推荐(0) 编辑
摘要:Google出来的文章全都一个样,最后在一个老外的blog上找到了可以work的配置:(/etc/X11/xorg.conf) Section "InputDevice" Identifier "Configured Mouse" Driver "vmmouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Prot... 阅读全文
posted @ 2008-06-20 20:03 new 维生素C.net() 阅读(305) 评论(0) 推荐(0) 编辑
摘要:% 搜索相对应的括号,或转到第一个括号 ^ 到行首第一个非空格字符 u和c-r 是undo和redo,U是对一行整体的undo a 在行末开始添加 n$ 可以转到下n行的行尾 0 移动到行首 nG 移动到第n行,``可以返回 gg 转到第1行,G 最后一行 H,M,L 该显示页的头、中和尾 zz 将该行置于屏幕中间 ... 阅读全文
posted @ 2008-06-09 15:58 new 维生素C.net() 阅读(219) 评论(0) 推荐(0) 编辑
摘要:先看截图: 我使用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.... 阅读全文
posted @ 2008-06-09 00:34 new 维生素C.net() 阅读(1420) 评论(1) 推荐(0) 编辑
摘要: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 ... 阅读全文
posted @ 2008-06-08 23:52 new 维生素C.net() 阅读(341) 评论(0) 推荐(0) 编辑
摘要:连接:http://webpy.org/cookbook/fastcgi-lighttpd 在ubuntu server下最好在/etc/lighttpd/lighttpd.conf中的error.log的位置单独拿出来,然后chmod给这个log文件设置好权限,方便调试。如果要调试程序最方便的还是python YOUR_CODE_NAME来启动自带的web服务器的方式运行。 阅读全文
posted @ 2008-06-08 23:44 new 维生素C.net() 阅读(454) 评论(0) 推荐(0) 编辑
摘要:在清除ubuntu的log后,lighttpd无法启动,启动后就报no configuration availble的错误,使用/etc/init.d/lighttpd -f /etc/lighttpd/lighttpd.conf来制定配置文件启动会报找不到log的错误。 这时候有两种处理方式: 1.创建.log文件,并赋予相应的权限2.删除lighttpd,再reinstall,这也是本文使用的... 阅读全文
posted @ 2008-06-07 09:43 new 维生素C.net() 阅读(474) 评论(0) 推荐(0) 编辑
摘要:http://www.nokarma.de/2007/1/22/ubuntu-lighttpd-and-php5-cgi 阅读全文
posted @ 2008-05-29 00:26 new 维生素C.net() 阅读(258) 评论(0) 推荐(0) 编辑
摘要:sudo apt-get install build-essential sudo apt-get install linux-headers-`uname -r` 阅读全文
posted @ 2008-05-28 04:02 new 维生素C.net() 阅读(234) 评论(0) 推荐(0) 编辑
摘要:在装fluxbuntu的时候经常会由于网络的问题导致安装停留在某一个阶段不能继续,在失败了几次后断开了网络安装.但是安装完成后不能连接到网络. 解决方法: sudo vim /etc/network/interfaces /*vim操作帮助*/ 1.用h,j,k,l四个键控制方向控制光标移动到文本的最后端,然后按下a,此时开始编辑 2.按enter建创建新行 3.输入: auto eth0... 阅读全文
posted @ 2008-03-23 21:00 new 维生素C.net() 阅读(317) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示