给大家带来shell 编程条记完成多个使用步伐单文件运转
欢迎大家来到仓酷云论坛!open_file.sh:按次运转liferay,jira,confluence,bamboo,fisheye,可单个运转,可检测某个步伐是不是已运转
#!/bin/sh
#openfile:liferay,jira,confluence,bamboo,fisheye
#portrunning
port_l=`netstat-an|grepLISTEN|grep:8082`
port_j=`netstat-an|grepLISTEN|grep:8088`
port_c=`netstat-an|grepLISTEN|grep:8090`
port_b=`netstat-an|grepLISTEN|grep:8085`
port_f=`netstat-an|grepLISTEN|grep:8060`
#openliferay
cd/usr/local/atlassian/liferay/tomcat-7.0.27/bin
if["$port_l"!=""];then
echo"=================liferayisruning!================="
else
if[$(whoami)=="root"];then
shstartup.sh
else
echo"w4u.com.au"|sudoshstartup.sh
fi
wait
port_ll=`netstat-an|grepLISTEN|grep:8082`
if["$port_ll"==""];then
echo"=================liferayrunfailed!exitopenfile================="
echo"=================jira,confluence,bamboo,fisheyenostart!================="
exit
fi
fi
#openjira
cd/usr/local/atlassian/jira/bin
if["$port_j"!=""];then
echo"=================jiraisruning!================"
else
if[$(whoami)=="root"];then
rm-rf/var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache
echo"=================cleanjiracachecomplete!================"
rm/var/atlassian/application-data/jira/.jira-home.lock
shstart-jira.sh
else
echo"w4u.com.au"|sudoshstart-jira.sh
fi
wait
port_jj=`netstat-an|grepLISTEN|grep:8082`
if["$port_jj"==""];then
echo"=================jirarunfailed!exitopenfile================="
echo"=================confluence,bamboo,fisheyenostart!================="
exit
fi
fi
#openconfluence
cd/usr/local/atlassian/confluence/bin
if["$port_c"!=""];then
echo"=================confluenceisruning!================"
else
if[$(whoami)=="root"];then
shstartup.sh
else
echo"w4u.com.au"|sudoshstartup.sh
fi
wait
port_cc=`netstat-an|grepLISTEN|grep:8082`
if["$port_cc"==""];then
echo"=================confluencerunfailed!exitopenfile================="
echo"=================bamboo,fisheyenostart!================="
exit
fi
fi
#openbamboo
cd/usr/local/atlassian/bamboo
if["$port_b"!=""];then
echo"=================bambooisruning!================"
else
if[$(whoami)=="root"];then
shbamboo.shstart
else
echo"w4u.com.au"|sudoshbamboo.shstart
fi
wait
port_bb=`netstat-an|grepLISTEN|grep:8082`
if["$port_bb"==""];then
echo"=================bamboorunfailed!exitopenfile================="
echo"=================fisheyenostart!================="
exit
fi
fi
#openfisheye
cd/usr/local/atlassian/fecru/bin
if["$port_f"!=""];then
echo"=================fisheyeisruning!================"
else
if[$(whoami)=="root"];then
shstart.sh
else
echo"w4u.com.au"|sudoshstart.sh
fi
wait
port_ff=`netstat-an|grepLISTEN|grep:8082`
if["$port_ff"==""];then
echo"=================fisheyerunfailed!exitopenfile================="
exit
fi
fi
欢迎大家来到仓酷云论坛!
给大家带来shell 编程条记完成多个使用步伐单文件运转
OMG!介是啥东东!!! 眼看这个学期的Linux课程已经告一段落了,我觉得有必要写一遍心得体会来总结一下这学期对着门课程的学习。 通过一条缓慢的调制解调器线路,它也能操纵几千公里以外的远程系统。 目前全球有超过一百多个Linux发行版本,在国内也能找到十几个常见版本。如何选择请根据你的需求和能力,RedhatLinux和DebianLinux是网络管理员的理想选择。 掌握在Linux系统中安装软件,在安装Linux工具盘后大致日常所需的软件都会有,一般网络提供下载的软件都会有安装说明。 Linux操作系统这个名词记得在很早以前就听过,但当时并不知道具体是什么样的操作系统,只知道是一个与嵌入式密切相关的操作系统。 然我们对Linux的学习首先是通过对它的产生,发展,到今天仍然在不断完善开始的。 我感觉linux的学习,学习编程~!~!就去学习C语言编程!! 其实老师让写心得我也没怎么找资料应付,自己想到什么就写些什么,所以不免有些凌乱;很少提到编程,因为那些在实验报告里已经说了,这里再写就多余了。
页:
[1]