Steps of Installing Apache on MacOSX
来源:互联网 发布:excel 数据对比找不同 编辑:程序博客网 时间:2024/05/17 02:14
http://wolfpaulus.com/journal/mac/tomcat7
Tomcat 7 is the first Apache Tomcat release to support the Servlet 3.0, JSP 2.2, and EL 2.2 specifications. Please note that Tomcat 7 requires Java 1.6 or better, but that shouldn’t be a problem, if you are running OS X 10.5 or 10.6.
On OS X 10.7 (Lion) however, Java is initially not installed anymore. You can find the installer on Apple’s support sidehere or follow this installation guide, provided by Adobe. Whatever you do, when opening Terminal and running java -version, you should see something like this.
java version "1.6.0_26"Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)
Here are the easy to follow steps to get it up and running on your Mac
- Download a binary distribution of the core module: apache-tomcat-7.0.20.tar.gz from here. I picked the tar.gz in Binary Distributions / Core section.
- Opening/unarchiving the archive will create a folder structure something like this in you Downloads folder: (btw, this Unarchiver app is perfect for all kinds of compressed files and superior to the built-in Archive Utility.app)
~/Downloads/apache-tomcat-7.0.20 - Move the unarchived distribution to /usr/local
sudo mkdir /usr/localsudo mv ~/Downloads/apache-tomcat-7.0.20 /usr/local
- To make it easy to replace this release with future releases, we are going to create a symbolic link that we are going to use when referring to Tomcat:
sudo ln -s /usr/local/apache-tomcat-7.0.20 /Library/Tomcat
- Change ownership of the /Libaray/Tomcat folder hierarchy:
sudo chown -R <your_username> /Library/Tomcat
- Make all scripts executable:
sudo chmod +x /Library/Tomcat/bin/*.sh
Instead of using the start and stop scripts, like so:
Last login: Sun Aug 14 15:20:38 on ttys000wpbookpro:~ wolf$ /Library/Tomcat/bin/startup.shUsing CATALINA_BASE: /Library/TomcatUsing CATALINA_HOME: /Library/TomcatUsing CATALINA_TMPDIR: /Library/Tomcat/tempUsing JRE_HOME: /Library/Java/HomeUsing CLASSPATH: /Library/Tomcat/bin/bootstrap.jar:/Library/Tomcat/bin/tomcat-juli.jarwpbookpro:~ wolf$ /Library/Tomcat/bin/shutdown.shUsing CATALINA_BASE: /Library/TomcatUsing CATALINA_HOME: /Library/TomcatUsing CATALINA_TMPDIR: /Library/Tomcat/tempUsing JRE_HOME: /Library/Java/HomeUsing CLASSPATH: /Library/Tomcat/bin/bootstrap.jar:/Library/Tomcat/bin/tomcat-juli.jarwpbookpro:~ wolf$
you may also want to check out Activata’s Tomcat Controller a tiny freeware app, providing a UI to quickly start/stop Tomcat.
for more information: http://developer.apple.com/internet/java/tomcat1.html
btw:
I don't think the Tomcat controller is useful. Console is much better.
- Steps of Installing Apache on MacOSX
- Breif steps of installing Weblogic on Linux
- Installing apache on RHEL
- Ubuntu/Vistadual-boot(reference the the steps of installing Windows Vista on a computer which already have an Ubuntu installatio
- Installing PHP 5 on IIS in 5 simple steps
- Installing Apache Nutch on Centos 6
- First steps of using googleVis on shiny
- Firebird Database On MacOSX
- DEBUG SYMBOLS ON MACOSX
- MacOSX apache 无法访问服务器
- Installing Apache, PHP, and MySQL on Fedora Core
- Installing LAMP (Linux, Apache, MySQL and PHP) On Linux
- runInstall of oracle11g on redhat 6.4 ,all steps
- Solving the issue of installing mongodb on win8
- Guide of Installing CUDA-7.5 on Ubuntu 14.04
- Installing MDX on ubuntu for viewing results of roi_pac
- The steps installing gcc in fedora8
- Installing MySQL on Solaris
- 银行家算法的C实现
- Android 网络应用重点———使用HttpURLConnection 上传文件
- 泛型HibernateDAO的实现
- 转:text box 阻止文本框回车键动作
- 提交表单不刷新页面
- Steps of Installing Apache on MacOSX
- jstl 语法
- jquery 插件
- iphone被抢和乔布斯辞职的消息在竟在同一天同一刻发生
- android布局属性
- linq实例 - Group的使用(三)
- "A duplicate insert block exists for class......"的解决办法
- DJNZ指令:DJNZ R6,D2 ;
- 如何取得职业的进步? & 我们mark来mark去究竟m到了什么?