Chinaunix首页 | 论坛 | 博客
  • 博客访问: 116591
  • 博文数量: 84
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 0
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-17 12:39
个人简介

大连Linux/Unix高端就业、认证培训的领导者。

文章分类

全部博文(84)

文章存档

2013年(25)

2012年(1)

2010年(4)

2009年(9)

2008年(14)

2007年(4)

2006年(27)

分类: LINUX

2008-05-16 18:11:04

要求实名
阅读(2034) | 评论(13) | 转发(0) |
给主人留下些什么吧!~~

magicspring2008-05-20 11:12:36

孙跃厉害呀~

chinaunix网友2008-05-17 18:04:25

ERRFILE=httpd-2.2.3-6.315 if [ -e $ERRFILE ] then rpm -e httpd-2.2.3-6.e15 else bao=/root/home/shell/httpd-2.2.3-6.e15.i386.rpm if [ -r $bao ] then rpm -ivh /root/home/shell/httpd-2.2.3-6.e15.i386.rpm fi fi

chinaunix网友2008-05-16 18:17:12

#!/bin/bash if [ "$#" -lt 1 -o "$#" -gt 3 ] then echo "Usage: ./install_apache_script.sh [source_dir] [dest_dir] for install" echo "Usage: ./install_apache_script.sh [_clean] for delete" exit fi if [ -d "$2" ] && [ -d "$1" ] then opt=_install elif [ $# -eq 1 ] && [ "$1" = "_clean" ] then opt=_clean fi case $opt in _install) if [ -e "$2/apache" ] then cp -r "$2/apache" "$2/apache$$.bak" rm -rf "$2/apache" else