MacPortsでTomcat6をインストール

とりあえずサンプルファイルをデフォルトに起動するようにする。
必要に応じて各設定ファイルを書き換える。

% sudo port install tomcat6
% sudo cp /opt/local/share/java/tomcat6/conf/catalina.policy.sample /opt/local/share/java/tomcat6/conf/catalina.policy
% sudo cp /opt/local/share/java/tomcat6/conf/tomcat-users.xml.sample /opt/local/share/java/tomcat6/conf/tomcat-users.xml
% sudo cp/opt/local/share/java/tomcat6/conf/catalina.properties.sample /opt/local/share/java/tomcat6/conf/catalina.properties
% sudo cp /opt/local/share/java/tomcat6/conf/server.xml.sample /opt/local/share/java/tomcat6/conf/server.xml
% sudo cp /opt/local/share/java/tomcat6/conf/web.xml.sample /opt/local/share/java/tomcat6/conf/web.xml
% sudo cp /opt/local/share/java/tomcat6/conf/setenv.local.sample /opt/local/share/java/tomcat6/conf/setenv.local

起動停止方法

% /opt/local/share/java/tomcat6/bin/tomcatctl stop
% /opt/local/share/java/tomcat6/bin/tomcatctl start

自動起動させたい時は下記を実行

% sudo launchctl load -w /Library/LaunchDaemons/org.macports.tomcat6.plist