Chinaunix首页 | 论坛 | 博客
  • 博客访问: 805347
  • 博文数量: 94
  • 博客积分: 1767
  • 博客等级: 上尉
  • 技术积分: 1168
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-13 23:16
个人简介

ha

文章分类

全部博文(94)

文章存档

2014年(2)

2013年(17)

2012年(6)

2011年(15)

2010年(23)

2009年(23)

2008年(8)

我的朋友

发布时间:2013-11-14 14:00:05

ubuntu快速配置网卡bondingCreate time:08/26/2013 09:01   degree:42   comments:0转载自:http://itxx.sinaapp.com/blog/content/144网卡bonding可以带来网络处理能力的提升,网络接口的冗余等.前提条件:至少两块可用的网卡,下面以简洁的步骤描述如何快速配置bonding:.........【阅读全文】

阅读(3157) | 评论(0) | 转发(0)

发布时间:2013-10-29 13:04:48

转载自:http://learningloong.blog.163.com/blog/static/16230812420127453937376/shell脚本有时候需要保存密码,比如登陆ftp脚本。有时候又需要是可执行文件的格式,比如在windows下的gvim中是无法直接调用shell脚本的,这就可以通过编译成可执行文件来调用。shc(下载地址:http://www.datsi.fi.upm.es/~frosal/)是.........【阅读全文】

阅读(4220) | 评论(0) | 转发(0)

发布时间:2013-08-21 15:53:42

运行 echo "- - -" > /sys/class/scsi_host/host0/scan ......【阅读全文】

阅读(2945) | 评论(1) | 转发(0)

发布时间:2013-04-19 13:15:04

#!/bin/bash# Author : Brian S. Menges# Revision : 10# Date : 2011-06-03 14:36 PDT## This script is provided as-is, and therefore has no warranty. Use at your own risk## Acknowledgments:# Richard Marshall - Continously helping review my code, and provide more one-liner# .........【阅读全文】

阅读(1054) | 评论(0) | 转发(0)

发布时间:2013-04-19 12:04:48

设定为Server+IP地址的最后一段Ubuntu:#!/bin/bashADDR=`ifconfig eth0|grep -i "inet\>"|awk '{print $2}'`NUM=${ADDR##*.}hostname Server$NUMecho "Server$NUM" > /etc/hostnameecho "127.0.0.1 Server$NUM" >> /etc/hostsCentOS:#!/bin/bashADDR=`ifconfig eth0|grep -i "inet\>"|awk '{print $2}'`NUM=.........【阅读全文】

阅读(1008) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册