环境:RHEL6.4 + Oracle 11.2.0.3问题:需求是文件系统迁移到ASM,在安装GI后,运行roothas.pl脚本报错1.运行root.sh后,按提示运行roothas.pl报错:[root@JY-DB mnt]# /u01/app/11.2.0/grid/crs/install/...
分类:
数据库 时间:
2014-07-22 22:50:57
阅读次数:
380
[root@opennebula opennebula-4.6.0]# ./install.sh -u oneadmin -g oneadmin -k -d /home/oneadmin/-u 指定用户-g 指定组-k 保存配置文件-d 指定安装目录
分类:
其他好文 时间:
2014-07-19 22:35:05
阅读次数:
200
cat > WHAT_EVER_YOU_WANT.sh#!/usr/bin/ksh#memory calculatorum=`svmon -G | head -2|tail -1| awk {'print $3'}`um=`expr $um / 256`tm=`lsattr -El sys0 -a ...
分类:
其他好文 时间:
2014-07-19 18:14:29
阅读次数:
294
当我们给予shell脚本执行的权限后,就可以测试程序了,假设shell脚本文件为hello.sh放在/root目录下。下面介绍几种在终端执行shell脚本的方法:1.切换到shell脚本所在的目录,执行:[root@localhost home]# cd /root/[root@localhost ...
分类:
其他好文 时间:
2014-07-18 13:39:57
阅读次数:
235
Shell脚本是我们运维人员管理的最基础知识,下面就是我在学习过程中的一些小例子(比起大牛来说)。写这篇博客的目的,是为了记录自己学习脚本的历程,也是为了能和读者一起探讨学习。#Example1:自动创建脚本的模板脚本名:creat_scripts.sh
#功能描述:creat_scripts.shSCRIPT..
分类:
系统相关 时间:
2014-07-18 13:25:33
阅读次数:
311
until循环语法格式:untilCONDITION
do
statement
done
说明:
until进入循环的条件是:condition不成立时,就执行循环。
until进入循环的条件正好和while相反,while进入循环的条件是:condition成立时,就进入循环。示例1:while循环[root@Server3Learn]#catwhile.sh
#!/bin/b..
分类:
其他好文 时间:
2014-07-18 13:12:34
阅读次数:
196
#!/bin/sh#autherRuM#date20140716cc(){[-fignore.ip.list]||echo"127.0.0.1">ignore.ip.listnetstat-ntu|awk‘{print$5}‘|cut-d:-f4|sort|uniq-c|sort-nr>BAD_IP_LISTwhilereadline;doCURR_LINE_CONN=$(echo$line|cut-d""-f1)CURR_LINE_IP=$(echo$line|cut-d""-f2)iptabl..
分类:
其他好文 时间:
2014-07-18 13:12:19
阅读次数:
239
nginx网站服务的安装与配置1.编写脚本,以安装nginx编写脚本前须知nginx的安装环境此案例提供两个版本的nginx(nginx-0.8.55.tar.gznginx-1.0.5.tar.gz)其为源码包,需要gcc环境(gccgcc-c++make)以及pcrepcre-develsslopenssl在root家目录下新建脚本文件install.sh[root@loc..
分类:
Web程序 时间:
2014-07-18 13:06:17
阅读次数:
368
#!/bin/sh
#
# iptables Start iptables firewall
#
# chkconfig: 2345 08 92
# description: Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# co...
分类:
其他好文 时间:
2014-07-18 12:23:55
阅读次数:
354
今天执行脚本的时候遇到错误,如下图:root@ApFree:/usr/sbin# ./conntrack_num_graph.sh ./conntrack_num_graph.sh: line 9: syntax error: unexpected "then" (expecting "}")roo...
分类:
其他好文 时间:
2014-07-18 12:04:31
阅读次数:
554