同一台服务器上一个resin配置多个应用,启动独立

同一台服务器上一个resin配置多个应用,每个应用的启动独立。
[color=red]resin.conf[/color]

xmlns:resin="http://caucho.com/ns/resin/core">





















2s











.






format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
rollover-period="1D"/>








archive-format="stdout_app1.log.%Y-%m-%d.gz"
rollover-period="1D"/>

















.






format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
rollover-period="1D"/>








archive-format="stdout_app3.log.%Y-%m-%d.gz"
rollover-period="1D"/>
timestamp="[%H:%M:%S.%s] "/>
timestamp="[%H:%M:%S.%s] "/>








.






format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
rollover-period="1D"/>








archive-format="stdout_app4.log.%Y-%m-%d.gz"
rollover-period="1D"/>







.






format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
rollover-period="1D"/>








archive-format="stdout_app4.log.%Y-%m-%d.gz"
rollover-period="1D"/>







.






format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
rollover-period="1D"/>








archive-format="stdout_create.log.%Y-%m-%d.gz"
rollover-period="1D"/>







.






format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
rollover-period="1D"/>








archive-format="stdout_app2.log.%Y-%m-%d.gz"
rollover-period="1D"/>







[color=darkred]stapp2.sh[/color]
if (test "$1" = "start")
then
cd /usr/app5/app/resin-pro/
./bin/httpd.sh -server app2 start

elif(test "$1" = "stop")
then
cd /usr/app5/app/resin-pro/
./bin/httpd.sh -server app2 stop

elif(test "$1" = "log")
then
cd /usr/app5/app/resin-pro/
tail -f ./log/jvm-app2.log
elif(test "$1" = "std")
then
cd /usr/app5/app/resin-pro/
tail -f ./log/stdout_app2.log

elif(test "$1" = "up")
then
cd /usr/app5/app/weapps/app2
svn up
else
echo '------app Args--------'
echo 'start --start app'
echo 'stop --stop app'
echo 'log --view app log'
echo 'up --svn check up code'
fi

[color=red]stapp3.sh[/color]

if (test "$1" = "start")
then
cd /usr/app5/app/resin-pro/
./bin/httpd.sh -server app3 start

elif(test "$1" = "stop")
then
cd /usr/app5/app/resin-pro/
./bin/httpd.sh -server app3 stop

elif(test "$1" = "log")
then
cd /usr/app5/app/resin-pro/
tail -f ./log/jvm-app3.log
elif(test "$1" = "up")
then
cd /usr/app5/app/weapp/app1
svn up
else
echo '------app Args--------'
echo 'start --start app'
echo 'stop --stop app'
echo 'log --view app log'
echo 'up --svn check up code'
fi

你可能感兴趣的:(同一台服务器上一个resin配置多个应用,启动独立)