寻觅生命中的那一片浅草......

文章带标签 Linux

在CentOS5上扩容lv

参考文章:

Linux逻辑卷管理LVM2详解 http://hi.baidu.com/kissdev/blog/item/b275a14eedefd6cdd0c86a13.html
原有逻辑卷添加第二个硬盘 http://smailes.blog.51cto.com/28248/44175

阅读全文»

getcwd cannot access parent directories

[root@web-server php]# /etc/init.d/httpd restart

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

该错误表示 getcwd 命令无法定位到当前工作目录。一般来说是因为你 cd 到了某个目录之后 rm 了这个目录,这时去执行某些 service 脚本的时候就会报 getcwd 错误。只需要 cd 到任何一个实际存在的目录下在执行命令即可。

转载自:Made In Zeal 转载请保留原始链接:http://www.zeali.net/entry/583

RedHat/CentOS下的cherokee的启动脚本

转载的:

原文地址:http://ipbfans.org/2009/01/redhat-centos-cherokee-init-script

我根据自己的情况,做了简单修改,这个脚本适合用默认方式安装的情况

阅读全文»

F-Secure SSH Client用Key方式登录远程Linux

用的是F-Secure SSH Client 5.4 Build 56,一直用使用密码方式登录,今天尝试使用Public Key方式,费了一番周折才搞掂:

一、生成key,方法有2:
1、打开F-Secure SSH Client,Edit–>Settings–>Global settings–>User Keys–>Generate New Keypair,会弹出一个窗口,下一步,Key Type选择RSA,下一步,会有一个生成Key的过程,黑框里的内容不再变化时,点击下一步,如果想增加安全性,即在使用证书的情况下,还使用密码,则在Passphrase和Again里输入密码,本例选择留空,继续下一步,点击“是”,点击完成。点击“OK”。

阅读全文»

ping取延迟

ping -c 4 192.168.1.1 |awk -F ‘[= ]+’ ‘/^64/{print $((NF-1))}’ >txt.txt

2025年七月
« 5月    
 123456
78910111213
14151617181920
21222324252627
28293031