Top

ドメイン名入門
入門ガイド
管理ガイド基礎
[Email]
[FTP]
[Web]
[Ports]
[Shell]
[User]
[iManager]
[CPX]
[Webmin]
管理上級編
  安全性を高める
  サービスの管理
  daily run output
  v2カスタマイズ
  カスタマイズと
  システムファイル
  Perl
    Perl5 Module
    Perl5
  Java



v3
Top
v3
Start
v3
Email
v3
Ftp
v3
Web
v3
Ports
v3
Shell
v3
User
v3
Perl
v3
Java
v3
System
v3
CPX


Tomcat

本ページは 2008-06-29 更新されました

Tomcat は Web サーバと連携して実行できる Java コードの環境を提供します。 Java Servlet と JavaServer Pages (JSP)の仕様を実装しています。Tomcat 単体でも Web サーバとしての機能も有しているが、v3 サーバーの vinstall によって Apache のモジュールとしてインストールできます。

v3 Pro、v3 H サーバーでは Java Development Kit (JDK) がインストールされている場合ご利用いただけます。

注意:Java は多くのメモリを要求するため、v3 Pro 以上のサーバーのみでご利用いただけます。


インストール

注意:FreeBSD と Linux では手順が異なりますのでご注意ください。


  • FreeBSD の場合

    SSH で Virtual サーバー v2 にアクセスし su で root になり、以下を実行します。

    # vinstall tomcat
    
    
    This starts the Tomcat engine. It knows how to parse JavaServer pages, Java Servlets,
    
     and other kinds of Java implementations. 
    
    Because the Apache mod_jk module is installed by the vinstall, 
    
    Tomcat runs on the regular server port and you can reference JSP URLs as you would other HTML pages.
    
    
    
    Configuration
    
    The Tomcat installation includes online admin pages that can be accessed at this URL:
    
    
    
    http://YOUR-DOMAIN.NAME/manager/html
    
    
    
    In order to set up a user name and password for these online admin pages, complete the following steps.
    
    
    
    Open the /usr/local/tomcat/conf/tomcat-users.xml file and add a user with roles set to admin. 
    
    An example would be as follows: 
    
    <user name="johnny"  password="cash" roles="admin,manager" />
    
    
    
    The name and password fields can be any value you choose 
    
    but the roles should include "admin" for access to the Tomcat Administration tool 
    
    and "manager" to allow access to the Tomcat Manager tool. 
    
    There can also be additional (comma separated) roles.
    
    
    
    Restart Tomcat. First stop Tomcat with this command: 
    
    % /usr/local/tomcat/bin/shutdown.sh
    
    
    
    Then restart Tomcat again with this command:
    
    
    
    % /usr/local/tomcat/bin/startup.sh
    
    
  • Linux の場合

    SSH で Virtual サーバー v2 にアクセスし su で root になり、以下を実行します。

    # vinstall tomcat
    Java home is set
    
    Enter the Java home (press 'q' to quit anytime) [/opt/IBMJava2-141]: 
    
    Attempting installation of Jakarta Tomcat 5.5.20 now...Please be patient.
    
    Java is version 1.4.  Installing compatibility package.
    
    Done extracting packages.
    
    Restarting apache.
    
    Jakarta Tomcat 5.5.20 installed successfully!
    
    You can access the Jakarta Tomcat 5.5.20 install by going the following URL:
    
    http://postgrestest.securesites.net/index.jsp
    
    
    
    
    
    
    
    vinstall done
    
    
    
    

    上記が表示されればインストール完了です。vinstall done が表示されれば途中の warning は無視してください。

詳細情報

Tomcat マニュアル

SPEEDEX サポートポリシー

Copyright @ Cyber Vision Hosting Co., Ltd. All rights reserved.


株式会社サイバービジョンホスティング提供サービス一覧
再販売用レンタルサーバーのSPEEDEX | VPS(仮想専用サーバー) | 共用サーバー | 独自ドメイン取得・運用 | SSLサーバー証明書 | ワイルドカードサーバー証明書 | SEO | Google Apps(TM) | クリエイティブワークの検索エンジン