Download apache-tomcat-7
- Unzip.
- Move it to your home folder. Y muévelo a la carpeta que más te guste.
Fix the Unix file permissions. Cambia los permisos de los archivos.
- Download the freeware BatChmod, a GUI wrapper around the Unix "chmod" command. Baja este programa. Es importante por que sino no podrás hacer correr el Tomcat.
- Drag and drop the entire Tomcat folder onto the BatChmod icon. Arrastra los archivos encima del icono.
- Check *all* the checkboxes. Selecciona todos los checkboxes, y dale también para subcarpetas.
- Click "Apply" and give your Administrator password. Apply y coloca tu password de administrador.
Start Tomcat / Inicia Tomcat
- Launch /Applications/Utilities/Terminal. Abre el terminal y llega hasta tu carpeta.
- Run the startup script / ejecuta este código para inicializar con el archivo startup.sh.
./bin/startup.sh
- You should see something like this /deberías ver algo como esto:
Using CATALINA_BASE: /Users/basilbourque/apache-tomcat-5.5.16
Using CATALINA_HOME: /Users/basilbourque/apache-tomcat-5.5.16
Using CATALINA_TMPDIR: /Users/basilbourque/apache-tomcat-5.5.16/temp
Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
Test Tomcat
- Launch a web browser such as Safari. / Prueba tu Tomcat.
- Goto http://127.0.0.1:8080/
- You should see the cute Tomcat logo on the welcome page. / Deberías ver la página de inicio.
Enable Port-Forwarding / Habilitar el puerto de entrada.
- Add a rule to do port-forwarding from port 80 to Tomcat's default port 8080. Type this in the Terminal:
sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in
También puedes configurarlo manualmente en el archivo conf/server.xml port="8080". Además coloca estas propiedades unpackWARs="true" autoDeploy="true" para que se actualicen las classes sin tener que reiniciar el tomcat.
Fuente y GRACIAS!! Muchas Gracias Basil!! http://wiki.apache.org/tomcat/TomcatOnMacOS
Configuración de Servlets para la compilación de Javac en el terminal/consola
Sólo tienes que abrir la consola y pegar:
export CLASSPATH=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes/classes.jar:/Tomcat/apache-tomcat-7.0.11/lib/servlet-api.jar
Quiero decir:
export CLASSPATH=Ruta de classes.jar:a ruta de servlet de tomcat.
Para la instalación el post anterior
totalmente chino avanzado...
ResponderEliminar