Info

1. Tomcatセットアップファイルをダウンロード
http://tomcat.apache.org/ こちらから Tomcat 6.x をクリックして、tar.gzファイルをダウンロード

2. インストール
インストールと言っても、単なる解凍、配置だけ
ターミナルを起動
$ sudo mv apache-tomcat-6.0.20.tar /usr/local/
$ cd /usr/local/
$ sudo tar xvf apache-tomcat-6.0.20.tar
$ sudo ln -s apache-tomcat-6.0.20 tomcat
$ sudo chown -R {username}:staff tomcat
$ sudo chown -R {username}:staff apache-tomcat-6.0.20

3. 起動
$ /usr/local/tomcat/bin/startup.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home

4. プラウザでアクセス
http://localhost:8080/

5. 管理者画面にアクセスする為に設定
$ vi /usr/local/tomcat/conf/tomcat-users.xml
<tomcat-users>
<!–
<role rolename=”tomcat”/>
<role rolename=”role1″/>
<user username=”tomcat” password=”tomcat” roles=”tomcat”/>
<user username=”both” password=”tomcat” roles=”tomcat,role1″/>
<user username=”role1″ password=”tomcat” roles=”role1″/>
–>
<user username=”admin” password=”admin” roles=”standard,manager,admin”/>
</tomcat-users>

Comments

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Basic HTML is allowed. Your email address will not be published.

Subscribe to this comment feed via RSS