摘要: parted /dev/sdb //partedsdb磁盘mklabel gpt //设置该磁盘分区为gptmkpart primary 0% 100% //划分分区大小,这里将整个磁盘分为一个区mkfs.ext4 -T largefile /dev/sdb1//格式化为ext4,一定要用-Tlargefile,否则很慢 阅读全文
posted @ 2014-03-22 12:24 Verruckt 阅读(226) 评论(0) 推荐(0) 编辑
摘要: du -h --max-depth=1 work/testing 阅读全文
posted @ 2014-03-22 12:24 Verruckt 阅读(99) 评论(0) 推荐(0) 编辑
摘要: mount -t cifs -o useaname=***,password=***//172.16.82.32/test/mntusername,password分别为windows那边允许共享的账户密码开机自动挂载vi /etc/fstab添加//192.168.1.1/tools /tools cifs defaults,auto,username=administrator,password=123 0 0 阅读全文
posted @ 2014-03-22 12:23 Verruckt 阅读(137) 评论(0) 推荐(0) 编辑
摘要: snmp安装:yum install net-snmp*配置/etc/snmp/snmpd.conf:com2sec notConfigUser 192.168.79.129 publicaccess notConfigGroup "" any noauth exact all none noneview all include .1 80 去掉#号启动snmp服务:service snmpd start设置开机自启动:chkconfig snmpd on关闭防火墙snmp.conf#### # First, map the community name "pub 阅读全文
posted @ 2014-03-22 12:22 Verruckt 阅读(318) 评论(0) 推荐(0) 编辑
摘要: suse刚装完,开始用ssh的时候,总会遇到这样的问题:输入了用户名以后,等半天才出输入密码的框,很是急人。这是dns反查造成的。解决方法:编辑 /etc/ssh/sshd_conf , 将 #UseDNS yes 取消注释,设为no ,重启sshd( /etc/rc.d/sshd restart)UseDNS no //这儿不能写为:No,大写,会出错的然后:/etc/rc.d/sshd restar 阅读全文
posted @ 2014-03-22 12:16 Verruckt 阅读(150) 评论(0) 推荐(0) 编辑
摘要: yum install glibc.i686 glibc-devel.i686yum install libstdc++.i686yum install libstdc++-devel.i686yum install compat-libstdc++-296.i686yum install compat-libstdc++-33.i686 阅读全文
posted @ 2014-03-22 12:06 Verruckt 阅读(831) 评论(0) 推荐(0) 编辑
摘要: 先装suse11系统,再装redhat6后出现引导中suse系统无法启动解决方法:在redhat中将suse所在分区挂载出来,找其boot/grub/menu.lst下的启动项,将该启动项复制到redhat的引导文件中即可 阅读全文
posted @ 2014-03-22 12:04 Verruckt 阅读(173) 评论(0) 推荐(0) 编辑
摘要: /etc/ssh/sshd_config#PasswordAuthentication no改成yessuse默认为密钥认证 阅读全文
posted @ 2014-03-22 11:55 Verruckt 阅读(210) 评论(2) 推荐(0) 编辑
摘要: yy复制p粘贴 阅读全文
posted @ 2014-03-22 11:54 Verruckt 阅读(147) 评论(0) 推荐(0) 编辑
摘要: :set nu 带行号查看,并不改变文件内容:set nonu 取消带行号查看在每个用户的主目录下,都有一个 vi 的配置文件".vimrc"或".exrc"用户可以编辑它,使这些设置在每次启动 vi 时,都有效.例如,加入如下设置行:set nu 显示行号set nonu 不显示行号 /取消行号set ic 查找时不考虑大小写set noic 查找时考虑大小写在VI的命令模式下输入“:set nu” 或者修改vi配置文件“vi ~/.vimrc”,在其中添加“set nu” 在VI的命令模式下输入“:set nu”,就有行号了。 但是想将这个设置写进V 阅读全文
posted @ 2014-03-22 11:53 Verruckt 阅读(4479) 评论(0) 推荐(0) 编辑
摘要: :n,$s/value1/value2/g从第n行到最后一行,将value1替换成value2 阅读全文
posted @ 2014-03-22 11:52 Verruckt 阅读(114) 评论(0) 推荐(0) 编辑
摘要: sudo passwd root 阅读全文
posted @ 2014-03-22 11:50 Verruckt 阅读(182) 评论(0) 推荐(0) 编辑
摘要: ubuntu12.04的vi1. 安装vim full版本由于Ubuntu预安装的是tiny版本,就会导致我们在使用上的产生不便。所以我们要安装vim的full版本。首先,先卸掉旧版的vi,输入以下命令: sudo apt-get remove vim-common然后安装full版的vim,输入命令:sudo apt-get install vim这样安装好了之后的VI就没有那么难用了。2. 编辑/etc/vim/vimrc.tiny由于/etc/vim/vimrc.tiny的拥有者是root用户,所以要在root的权限下对这个文件进行修改。很简单,这个文件里面的倒数第二句话是“set co 阅读全文
posted @ 2014-03-22 11:49 Verruckt 阅读(226) 评论(0) 推荐(0) 编辑