シェルスクリプトでTomcat+Apache起動終了ぶくま


SAK Streets – PostgreSQL + Web 編3 – Apache、Tomcat 連携、mod_jk.dll、mod_jk.conf

http://homepage2.nifty.com/sak/w_sak3/doc/sysbrd/psql_web03.htm

を参考にすると、こんな感じかな。

起動

#!/bin/sh

postmaster -i &

cd (TOMCATフォルダ)/bin

./startup.sh

cd

apache -k start &

終了

#!/bin/sh

apache -k shutdown

cd (TOMCATフォルダ)/bin

./shutdown.sh

cd

pid=`ps | grep postgres’`

kill ${pid}

killでプロセス終了するのではなくて、pg_ctl -stop とかではあかんのかな?

まあ明日試してみよう。

ちょっとiBookで試してみた。…シェル楽しいかも(笑)

おまけ

MacOSXでTomcat(Apache連携とか)

http://homepage1.nifty.com/glass/tom_neko/web/web_tomcat.html

シェルスクリプト リファレンス& Tips

http://www.rhythm-cafe.com/kb/shell/


参考になるかもしれない商品


h1

Trackback URL

No comments yet to “シェルスクリプトでTomcat+Apache起動終了ぶくま”

Leave a Comment





popular entry


Categories


Archives

Search



あわせて読みたいブログパーツ フィードメーター - PINKMAC
  • SEO
  • loading
  • PINKMAC -Love Train + Photo + IT Tech