2010年11月10日

wget代理设置【备忘】

摘要: 新建或者编辑~/.wgetrc,内容如下http_proxy = http://proxy.server.com:8080/ftp_proxy = http://proxy.server.com:8080/--proxy-user=username--proxy-passwd=mypasswd 阅读全文

posted @ 2010-11-10 18:20 sulpha 阅读(134) 评论(0) 推荐(0) 编辑

用inittab实现进程异常退出则自动重启【转载】

摘要: 写了个脚本,需要跑一个服务器,但是这个业务比较关键,不能down掉。怎么办呢?写一个daemon监视pid是否存在不存在则exec?daemon本身挂掉了怎么办?双进程互相监视?无意中查到了一个Linux现有机制可以很好的完成这个问题;inittab使用很简单,编辑/etc/inittab文件在最后一行写自己的东西就行了。语法可以照抄,格式为:id:runlevels:action:进程名id是不... 阅读全文

posted @ 2010-11-10 18:18 sulpha 阅读(566) 评论(0) 推荐(0) 编辑

我的vim配置文件【原创】

摘要: "打开语法高亮syntax on"步进式搜索set incsearch"高亮搜索set hlsearch"自动缩进set autoindent"C缩进风格set cindent"设置tab跳格数为4set tabstop=4"shift width, Often this is used as '>>', which adds indent to the current line.se... 阅读全文

posted @ 2010-11-10 18:15 sulpha 阅读(143) 评论(0) 推荐(0) 编辑

导航