フォトアルバム

2009年7月

      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

なかのひと

アンケート

  • Do you Like?
    アンケート
    どのColdfusion用フレームワークが好き?
    ModelGlue:Unity
    ModelGLue
    Mach-II
    FuseBox
    LiteWire
    OnTap
    ColdBox
    OnAir
    cfWheels
    CFRails

    [PR]アンログ.jp 自動車保険

373news.com

想ひ出

  • Dvc00050
    携帯で撮った写真をアルバムにしています。

サムネイル

  • CF-OOP









  • ganymean.org









  • シナプス

Google Analytics

« Railoインストール手順 for CentOS5 VPS(その2) | メイン | Railoインストール手順 for CentOS5 VPS(その4) »

Railoインストール手順 for CentOS5 VPS(その3)

前回の設定で、pleskのColdfusion用テストスクリプトが起動できたなら、serviceコマンドで自動起動できるように設定します。

1.テストスクリプトの起動

http://sample.domain/test/coldfusion/test.html

うまくrailoの起動結果が表示されたら、ドメイン別のrailo起動も正常です。

2.railoの自動起動設定
/opt/soft/railo/contrib/init.resinを/etc/init.d/resinとしてコピーします。
そして、以下のように修正しました(root起動前提)。
パーミッションの設定を、755に変更することもお忘れなく!

#!/bin/sh
#
# Linux startup script for Resin
#
# chkconfig: 345 85 15
# description: Resin is a Java Web server.
# processname: wrapper.pl
#
# To install, configure this file as needed and copy init.resin
# to /etc/rc.d/init.d as resin.  Then use "# /sbin/chkconfig resin reset"
#
JAVA_HOME=/opt/soft/java
RESIN_HOME=/opt/soft/railo
PID=$RESIN_HOME/resin.pid

export JAVA_HOME RESIN_HOME
#
# If you want to start the entire Resin process as a different user,
# set this to the user name.  If you need to bind to a protected port,
# e.g. port 80, you can't use USER, but will need to use bin/resin.
#
USER=
#
# You can change this to $RESIN_HOME/bin/resin if you need Resin to
# bind to port 80, but run as a different user.
#
EXE=$RESIN_HOME/bin/httpd.sh
#
# Sets the commandline arguments.
#
#ARGS="-java-home $JAVA_HOME -resin-home $RESIN_HOME"
ARGS="-resin-home $RESIN_HOME"

case "$1" in
  start)
    echo -n "Starting resin: "
    if test -n "$USER"; then
#        su $USER -c "$EXE -pid $PID start $ARGS"
        $EXE start $ARGS
    else
#        $EXE -pid $PID start $ARGS
        $EXE start $ARGS
        fi
    echo
    ;;
  stop)
    echo -n "Shutting down resin: "
#    $EXE -pid $PID stop   
    $EXE stop   

3.自動起動設定

chkconfig --add resin
chkconfig resin on
service resin restart

トラックバック

このページのトラックバックURL:
http://app.synapse-blog.jp/t/trackback/190195/19477059

このページへのトラックバック一覧 Railoインストール手順 for CentOS5 VPS(その3):

コメント

コメントを投稿

コメントは記事の投稿者が承認するまで表示されません。

ログイン

  • コントロールパネルへのログイン
    アカウント:

    パスワード:

PR情報

  • [[PR]]
  • おすすめバナー

更新ブログ

google Search

  • Google
    blog.ganymean.org
    WWW

最近のトラックバック

Google

SHINOBI

Blog powered by TypePad
Member since 04/2005