亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? was.in

?? linux集群服務器軟件代碼包
?? IN
字號:
#!/bin/sh## $Id: WAS.in,v 1.1 2004/08/27 09:34:14 lars Exp $# # WAS## Description:	Manages a Websphere Application Server as an HA resource### Author:	Alan Robertson# Support:	linux-ha-dev@lists.tummy.com# License:	GNU Lesser General Public License (LGPL)# Copyright:	(C) 2002 International Business Machines, Inc.### An example usage in /etc/ha.d/haresources: #       node1  10.0.0.170 WAS::/opt/WebSphere/ApplicationServer/config/server-cfg.xml## See usage() function below for more details...#prefix=@prefix@exec_prefix=@exec_prefix@#. @sysconfdir@/ha.d/shellfuncs. /etc/ha.d/shellfuncs#WASDIR=/opt/WebSphere/AppServerif  [ ! -d $WASDIR ]then  WASDIR=/usr/WebSphere/AppServerfiSTARTTIME=300	#	5 minutesWGET=/usr/bin/wgetDEFAULT_WASPORTS="9080"##WASBIN=$WASDIR/binDEFAULT=$WASDIR/config/server-cfg.xmlunset LC_ALL; export LC_ALLunset LANGUAGE; export LANGUAGE##	Print usage message#usage() {  methods=`WAS_methods | grep -v methods`  methods=`echo $methods | tr ' ' '|'`  cat <<-! >&1	For the single server edition of WAS:	usage: $0 <WAS-configuration file> ($methods)	usage: $0 methods	For the advanced edition of WAS:	usage: $0 <WAS-(snoop)-port-number> ($methods)	usage: $0 methods	$0 manages a Websphere Application Server (WAS) as an HA resource	The 'start' operation starts WAS.	The 'stop' operation stops WAS.	The 'status' operation reports whether WAS is running	The 'monitor' operation reports whether the WAS seems to be working		(httpd also needs to be working for this case)	The 'methods' operation reports on the methods $0 supports	This is known to work with the Single Server edition of Websphere,	and is believed to work with the Advanced edition too.	Since the Advanced Edition has no configuration file (it's in a the	database) you need to give a port number instead of a	configuration file for this config parameter.	The default configuration file for the single server edition is:	$DEFAULT	The default snoop-port for the advanced edition is: $DEFAULT_WASPORTS	The start and stop operations must be run as root.	The status operation will report a pid of "-" for the	WAS root process using unless it is run as root.	If you don't have xmllint on your system, parsing of WAS	configuration files is very primitive.	In this case, the port specification we need from the XML	config file has to be on the same line as the	first part of the <transports/> tag.	We run servlet/snoop on the first transport port listed in	the config file for the "monitor" operation.	$Id: WAS.in,v 1.1 2004/08/27 09:34:14 lars Exp $	!  exit 1}##	Run:  Run a script, and log its output.#run() {  output=`"$@" 2>&1`  rc=$?  output=`echo $output`  if    [ $rc -eq 0 ]  then     if      [ ! -z "$output" ]    then      ha_log "info: $output"    fi    return 0  else    if      [ ! -z "$output" ]    then      ha_log "ERROR: $output"    else      ha_log "ERROR: command failed: $*"    fi    return $rc  fi}##	Reformat the XML document in a sort of canonical form#	if we can.  If we don't have xmllint, we just cat it out#	and hope for the best ;-)#xmlcat() {  if    [ "X$XMLcat" == X ]  then    XMLcat=`which xmllint 2>/dev/null`    if      [ "X${XMLcat}" == X  -o ! -x "${XMLcat}" ]    then      XMLcat=cat    else      XMLcat="$XMLcat --recover --format"    fi  fi  for j in "$@"  do    ${XMLcat} "$j"  done}##This is a bit skanky, but it works anyway...##<transports xmi:type="applicationserver:HTTPTransport" xmi:id="HttpTransport_1" hostname="*" port="9080"/>#<transports xmi:type="applicationserver:HTTPTransport" xmi:id="HttpTransport_2" hostname="*" port="9443" sslEnabled="true"/>#<transports xmi:type="applicationserver:HTTPTransport" xmi:id="HttpTransport_3" hostname="*" port="9090" external="false"/>## It's not really skanky if we can find xmllint on the system, because it# reformats tags so they are all on one line, which is all we we need...### Get the numbers of the ports WAS should be listening on...## If we don't have xmllint around, then the applicationserver and the# port= specification have to be on the same line in the XML config file.#GetWASPorts() {  case $1 in    [0-9]*)	echo "$1" | tr ',' '\012';;    *)		xmlcat $1 | grep -i 'transports.*applicationserver:HTTPTransport' |	grep port= 				|	sed -e 's%.*port= *"* *%%'		\		-e 's%[^0-9][^0-9]*.*$%%'	# Delete up to port=, throw away optional quote and optional	#	white space.	# Throw away everything after the first non-digit.	# This should leave us the port number all by itself...  esac}##	We assume that the first port listed in the <transports/>#	is the one we should run servlet/snoop on.#GetWASSnoopPort() {	GetWASPorts "$@" | head -n1}##	Return information on the processname/id for the WAS ports##	pid/java	is the expected output.  Several lines, one per port...##WASPortInfo() {  pat=""  once=yes  PortCount=0  for j in $*  do    case $pat in      "")	pat="$j";;      *)	pat="$pat|$j";;    esac    PortCount=`expr $PortCount + 1`  done  netstat -ltnp  2>/dev/null| egrep -i "($pat) .*LISTEN" | sed 's%.*LISTEN *%%'}##	Return the number of WAS ports which are open#CheckWASPortsInUse() {  count=`WASPortInfo "$@" | wc -l`  echo $count}##	Return the pid(s) of the processes that have WAS ports open#WASPIDs() {  WASPortInfo "$@" | sort -u | cut -f1 -d/}##	The version of ps that returns all processes and their (long) args#	It's only used by WAS_procs, which isn't used for anything ;-)#ps_long() {  ps axww}##	The total set of WAS processes (single server only)#WAS_procs() {  ps_long | grep -i "config=$1"  | grep -i java | cut -d' ' -f1}## methods: What methods/operations do we support?#WAS_methods() {  cat <<-!	start	stop	status	methods	!  if    [ -f $WGET -a -x $WGET ]  then    echo monitor  fi}##	Return WAS status (silently)#WAS_status() {  WASPorts=`GetWASPorts $1`  PortsInUse=`CheckWASPortsInUse $WASPorts`  case $PortsInUse in    0)	false;;    *)	true;;  esac}##	Report on WAS status to stdout...#WAS_report_status() {  WASPorts=`GetWASPorts $1`  PortCount=`echo $WASPorts | wc -w`  PortCount=`echo $PortCount`  PortsInUse=`CheckWASPortsInUse $WASPorts`  case $PortsInUse in    0)	echo "WAS: server $1 is stopped."; false;;    *)	pids=`WASPIDs $WASPorts`	if	  [ $PortsInUse -ge $PortCount ]	then    	  echo "WAS: server $1 is running (pid" $pids "et al)."	else    	  echo "WAS: server $1 is running (pid $pids et al) but not listening on all ports."        fi	true;;  esac}##	Monitor WAS - does it really seem to be working?##	For this we invoke the snoop applet via wget.##	This is actually faster than WAS_status above...#WAS_monitor() {  tmpfile=/tmp/$$.was-mon  SnoopPort=`GetWASSnoopPort $1`  output=`$WGET -nv -O$tmpfile  http://localhost:$SnoopPort/servlet/snoop 2>&1`  rc=$?  if    [ $rc -eq 0 ]  then    if      grep -i 'user-agent.*Wget' $tmpfile >/dev/null    then      : OK    else      ha_log "ERROR: WAS: $1: no user-agent from snoop application"      rc=1    fi  else    ha_log "ERROR: WAS: $1: wget failure: $output"    rc=1  fi  rm -fr $tmpfile  return $rc}##	Start WAS instance#WAS_start() {# Launch Arguments:##      -configFile      <configFile>#      -nodeName        <nodeName>#      -serverName      <serverName>#      -oltEnabled#      -oltHost         <hostname>#      -oltPort         <port>#      -debugEnabled#      -jdwpPort        <port>#      -debugSource     <sourcePath>#      -serverTrace     <traceString>#      -serverTraceFile <traceFile>#      -script          [<scriptFile>]#      -platform        <platformName>#      -noExecute#      -help  if    [ -x $WASBIN/startServer.sh ]  then    cmd="$WASBIN/startServer.sh -configFile $1"  else    cmd="$WASBIN/startupServer.sh"  fi      if    run $cmd  then    if      WAS_wait_4_start $STARTTIME "$@"    then      true    else      ha_log "ERROR: WAS server $1 did not start correctly"    fi  else    false  fi}##	Wait for WAS to actually start up.##	It seems to take between 30 and 60 seconds for it to#	start up on a trivial WAS instance.#WAS_wait_4_start() {  max=$1  retries=0  shift  while    [ $retries -lt $max ]  do    if      WAS_status "$@"    then      return 0    else      sleep 1    fi    retries=`expr $retries + 1`  done  WAS_status "$@"}  ##	Shut down WAS#WAS_stop() {  # They don't return good return codes...  # And, they seem to allow anyone to stop WAS (!)  if    [ -x $WASBIN/stopServer.sh ]  then    run $WASBIN/stopServer.sh -configFile $1  else    WASPorts=`GetWASPorts $1`    kill `WASPIDs $WASPorts`  fi  if    WAS_status $1  then    ha_log "ERROR: WAS: $1 did not stop correctly"    false  else    true  fi}##	'main' starts here...#if  [ $# -eq 1 -a "methods" = "$1" ]then  WAS_methods  exit $?fi##	Supply default configuration parameter(s)#if  [ $# -eq 1 ]then  if    [ -f $DEFAULT ]  then    set -- "$DEFAULT" "$@"  else    set -- "$DEFAULT_WASPORTS" "$@"  fifiif  [ ! -f $1 ]then  case $1 in    [0-9]*)	;;	# ignore port numbers...    *)		ha_log "ERROR: WAS configuration file $1 does not exist!"  		usage  		exit 1;;  esacfi  # What kind of method was invoked?case "$2" in  start)	WAS_start $1		exit $?;;  stop)		WAS_stop $1		exit $?;;  status)	WAS_report_status $1		exit $?;;  monitor)	WAS_monitor $1		exit $?;;  methods)	WAS_methods		exit $?;;esacusage

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
51精品秘密在线观看| 国产在线乱码一区二区三区| 欧美性受xxxx| 成人性生交大片免费看在线播放| 日韩黄色小视频| 亚洲成a人片在线不卡一二三区| 一区二区三区在线播| 日韩一区中文字幕| 亚洲蜜臀av乱码久久精品| 亚洲图片激情小说| 亚洲国产成人va在线观看天堂| 亚洲综合免费观看高清完整版 | 日韩欧美激情四射| 日韩一区二区三区电影在线观看 | 视频在线观看一区| 不卡大黄网站免费看| 99久久精品99国产精品| 欧美在线色视频| 日韩一级片在线观看| 尤物av一区二区| 免费欧美高清视频| 国产另类ts人妖一区二区| 福利电影一区二区三区| 欧美无砖砖区免费| 一区二区三区在线视频播放| 国产精品一区二区果冻传媒| 制服丝袜亚洲色图| 日本少妇一区二区| 国产成人欧美日韩在线电影 | 午夜精品福利一区二区三区av | 国产精品一二三四| 久久精品综合网| 中文字幕一区二区三| 大胆亚洲人体视频| 国产精品视频第一区| 亚洲色图制服丝袜| 色婷婷精品大在线视频| 91精品国产91热久久久做人人| 久久精品免视看| 国产成人综合自拍| 中文字幕欧美国产| 天天综合色天天综合| 91精品国产综合久久小美女| 日韩综合小视频| 日韩精品一区二区三区中文不卡| 久久99精品视频| 欧美影院一区二区| 日本va欧美va精品发布| 精品少妇一区二区三区视频免付费| 中文字幕一区二区三区不卡 | 久久66热re国产| 国产人成亚洲第一网站在线播放| 午夜精品久久久久久| 国产三级精品三级| 丁香婷婷综合网| 一区二区三区四区精品在线视频| 欧美三区在线观看| 中文字幕在线不卡视频| 91黄色免费网站| 国产精品久久久久久久久晋中 | 制服.丝袜.亚洲.另类.中文| 青青草国产成人av片免费| 久久亚洲免费视频| 免费看黄色91| 国产精品蜜臀在线观看| 在线看国产一区二区| 日本欧美在线观看| 国产精品不卡在线| 欧美一区二区三区免费视频| 成人久久18免费网站麻豆| 天使萌一区二区三区免费观看| 精品欧美一区二区久久| 色一区在线观看| 国产精品影音先锋| 偷拍日韩校园综合在线| 国产精品黄色在线观看| 7777精品伊人久久久大香线蕉超级流畅| 国产乱码一区二区三区| 亚洲第一会所有码转帖| 国产精品天干天干在观线| 91精品在线观看入口| aaa欧美色吧激情视频| 亚洲欧美日韩久久| 精品国产一二三| 国产91精品一区二区麻豆亚洲| 国内欧美视频一区二区| 亚洲色欲色欲www| 久久久久久97三级| 国产成人免费9x9x人网站视频| 午夜精品一区二区三区电影天堂| 国产欧美日韩麻豆91| 欧美一区二区成人| 欧美无人高清视频在线观看| 不卡av免费在线观看| 国产在线一区二区综合免费视频| 无码av免费一区二区三区试看| 中文字幕一区二区视频| 久久综合九色综合欧美就去吻| 这里是久久伊人| 在线观看91av| 国产suv精品一区二区6| 九九在线精品视频| 免费在线观看一区| 视频一区中文字幕| 无吗不卡中文字幕| 亚洲风情在线资源站| 亚洲在线视频免费观看| 亚洲三级小视频| 中文字幕一区在线观看| 国产女同互慰高潮91漫画| 久久久国产午夜精品| 日韩色在线观看| 欧美成人综合网站| 欧美成人高清电影在线| 26uuu精品一区二区三区四区在线| 欧美一区二区三区的| 欧美一级夜夜爽| 欧美一区二区三区视频在线 | voyeur盗摄精品| 成人动漫一区二区在线| 91在线视频播放地址| 91麻豆精品视频| 精品亚洲成a人在线观看| 蜜桃av一区二区| 亚洲午夜激情网页| 亚洲福利一二三区| 日韩中文欧美在线| 另类欧美日韩国产在线| 午夜久久久影院| 免费成人结看片| 日本精品一区二区三区高清 | 国产精品的网站| 一区二区在线免费观看| 亚洲成a人在线观看| 激情综合亚洲精品| 不卡一卡二卡三乱码免费网站| 91片黄在线观看| 91精品国模一区二区三区| 精品理论电影在线观看| 国产精品久久久一本精品| 亚洲一区视频在线观看视频| 日韩精品一二三四| 国产凹凸在线观看一区二区| 91黄视频在线观看| 日韩欧美国产wwwww| 国产精品久久久久久久久果冻传媒| 一区二区三区美女| 免费xxxx性欧美18vr| 成人精品视频网站| 欧美日韩另类国产亚洲欧美一级| 99久久精品费精品国产一区二区| 欧美三级乱人伦电影| 久久九九久精品国产免费直播| 亚洲精品一二三| 国产一区二区三区美女| 国模娜娜一区二区三区| 91色porny在线视频| 欧美一级xxx| 日韩理论电影院| 国产一区二三区好的| 欧美三级韩国三级日本一级| 日本一区二区三区久久久久久久久不 | 精品久久久久久最新网址| 亚洲免费观看高清完整版在线| 捆绑紧缚一区二区三区视频| 色综合天天性综合| 东方aⅴ免费观看久久av| 欧美日本在线播放| 国产精品另类一区| 老司机免费视频一区二区| 色综合色狠狠综合色| www日韩大片| 日本麻豆一区二区三区视频| 色综合久久久久久久久| 久久久另类综合| 日产国产欧美视频一区精品| 91视频com| 国产精品白丝在线| 国产九色sp调教91| 日韩免费性生活视频播放| 一区二区三区中文字幕电影 | 国产欧美一区二区精品性色超碰| 日韩成人精品在线| 欧美日韩一区在线| 亚洲精品视频一区二区| 成人精品在线视频观看| 久久久精品国产免大香伊| 蜜臀av亚洲一区中文字幕| 欧美精品视频www在线观看| 一区二区三区视频在线看| 99久久综合色| 国产精品不卡视频| 91在线精品秘密一区二区| 国产精品美女一区二区三区| 国产91清纯白嫩初高中在线观看| 欧美xingq一区二区| 久久69国产一区二区蜜臀| 精品国产青草久久久久福利| 精品一区二区免费视频| 亚洲精品一区二区三区精华液|