![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
SaraWon
这个作者很懒,什么都没留下…
展开
-
过滤掉grep本身进程
使用ps -ef|grep test列出包含test关键字的进程时,会包含grep test本身。可以利用-v操作过滤,即:[code="script"]ps -ef|grep test|grep -v grep[/code]原创 2013-07-05 15:15:07 · 447 阅读 · 0 评论 -
vim实用快捷键
[size=x-small]^ 跳到每行的第一个字符0 跳到行首$ 跳到行末r 光标指向的字符位置,按下r,就可以进行替换:sp another_file 同时编辑两个文件,ctrl+w两个文件之间切换:set paste 实现完整格式粘贴Shift + Enter 选中文本之后,快速复制粘贴[/size]...原创 2014-05-13 18:50:06 · 128 阅读 · 0 评论 -
Radhat下vim 颜色设置
[b][size=x-small]vim /root/.vimrc[/size][/b][code="Shell"]"Get out of VI's compatible mode..set nocompatible"Sets how many lines of history VIM has to rememberset history=500"Enable fi...原创 2014-05-13 18:56:32 · 185 阅读 · 0 评论 -
Chef encountered an error attempting to create the client
[size=small]用chef bootstrap新的client的时候遇到下面的问题:# knife bootstrap 192.168.253.129 -x root -P 123456 --sudo -VV-VV会打印出DEBUG LOG......DEBUG: read 116 bytesDEBUG: received packet nr 11 type...原创 2014-05-27 11:09:43 · 369 阅读 · 0 评论 -
Keepalived日志配置
[size=small]在Redhat系统下,可以使用下面的方法将keepalived的日志输出到/var/log/下的某个文件里:1.将keepalived日志输出到local0:vim /etc/sysconfig/keepalivedKEEPALIVED_OPTIONS="-D -d -S 0"2.在/etc/rsyslog.conf里添加:local0.* ...原创 2014-08-29 10:41:00 · 567 阅读 · 1 评论 -
Win7安装Redhat虚拟机-yum源设置
1.安装VMware Player2.准备ISO镜像文件3.从ISO文件启动虚拟机4.配置YUM源:(Debian的话,不要配置apt源,这里我用的是redhat,所以要配置yum源)cd /etc/yum.repos.dvim rhel-source.repo[code=""][base]name=CentOS-$releasever - Baseba...原创 2014-04-10 13:38:05 · 161 阅读 · 0 评论 -
Redhat 6.3 NFS的安装配置、启动及mount挂载方法
一、环境介绍: 服务器:redhat虚拟机 192.168.253.128 客户端:redhat虚拟机 192.168.253.129二、安装: redhat 6(在redhat 6.3当中,portmap服务由rpcbind负责) :[code="shell"]yum -y install nfs-utils rpcbind[/code]...原创 2014-04-17 17:02:36 · 849 阅读 · 0 评论 -
不能在镜像的挂载点里面写文件
不能在镜像的挂载点(/mnt)里面写文件,写的文件在虚拟机启动之后就会没有了。原创 2014-10-21 17:14:19 · 232 阅读 · 0 评论