我观察到没有在 OS X 上安装 tomcat 的完整指南,其中包括将其设置为在启动时启动。
这是快速指南:
suport port upgrade
sudo port upgrade outdated
.sudo port install tomcat6
,或者如果你想要其他版本检查 port list|grep tomcat
/opt/local/share/java/tomcat6/conf
启动脚本: /opt/local/share/java/tomcat6/bin/tomcatctl
cp /opt/local/share/java/tomcat6/conf/tomcat-users.xml.sample /opt/local/share/java/tomcat6/conf/tomcat-users.xml nano /opt/local/share/java/tomcat6 /conf/tomcat-users.xml
...检查文章
但我错过了如何让它作为真正的服务/守护进程运行的部分:在系统启动时,如果它崩溃,可以选择让它重新启动。