mac 配置tomcat(译)
来源:互联网 发布:妈妈比女儿漂亮 知乎 编辑:程序博客网 时间:2024/06/05 19:45
mac 配置tomcat(译)
(2012-12-19 12:35:47)tomcat
mac
myeclipse
分类: HTML5手贱翻译了一下
I’ve made the switch over to Apple on my development machines and as I’m starting my new company soon I’ve got myself a new MacBook Pro machine of which I will be transporting to and from the office so I’ve been installing my entire development on it and thought I’d blog about how to set-up Tomcat 7 on MacOSX to use as a development
Tomcat 7 is the first release of Tomcat to support the Servlet 3.0, EL 2.2 and JSP 2.2 specifications.
Tomcat 7 requires Java 1.6 to be installed on your Apple Mac based computer, if your running Leopard (10.5) or Snow Leopard (10.6) you are good to go already as these versions of OSX comes pre-installed with Java, however users of OSX Lion (10.7) and more than likely Mountain Lion (10.8) will need to enable Java of which I’ll now explain how to do so, if your not using Lion or Mountain Lion you can skips to the main install notes now!
因为我要进入一家新公司,所以我已经把开发机器转为了苹果设备。我买了一个新的苹果pro本,并把他带到了办公地点,所以我一直在它上面安装我的整个开发环境,觉得我应该把如何在mac下安装tocmat写入博客。我认为这是最直接的方式来帮助其他人。
tomcat7 是第一支持Servlet 3.0, EL 2.2 and JSP 2.2以及一些新特性的发布版。
tomcat7需要你的mac安装java1.6,如果系统是10.5的豹子或10.6的雪豹,恭喜,mac已经进行了预安装,不过在狮子或山狮下你需要启用java,当然我会告诉你如何去做。如果你正在使用狮子或山狮系统,你现在可以跳过主要安装细节。
Enabling Java on OSX Lion and OSX Mountain Lion
You can enable and install Java on Lion and Mountain Lion using the following guide:
你可以通过一下帮助启用并安装java在狮子或山狮系统
You can also check (to be on the safe side) your version of Java that you have installed on your machine by running the following command from the terminal:-
你可以通过在中断程序中输入一下命令来检查安装在当前机器的java版本,
java -version
Installing Tomcat 7 on your Mac
1) First step is to download Tomcat from the Apache Tomcat website or which can be found here:
首先去以下网址去下载tomcat,滑动到底端的“Binary distrubutions”部分,并下在以“.tar.gz”的文件,在些本片文章是tomcat版本为7.0.29
2) Opening or un-archiving the download will now create a new folder – more than likely this will be in your downloads folder unless you choose a different folder to download the file to.
打开或解压下载的文件会创建一个文件夹,这个文件最可能在你的下载文件夹,除非你选择其他文件夹作为下载路径
3) Our next step is to ‘move’ the extracted folder to a system location of which we will run Tomcat from, we do this like so (obviously
下一步,我们会把运行tomcat的的文件夹移动到系统位置,我们这样来做(更改版本号/在下载目录以满足你的要求)
sudo mkdir /usr/local sudo mv ~/Downloads/apache-tomcat-7.0.29/usr/local
To make it easy to switch and upgrade Tomcat versions in future we’ll use a symbolic link to alias the tomcat folder, we do this like so:-
为了在将来切换以及更新tomcat版本简单,我们将用一个标示符别名来连接tomcat文件夹,我们这样来做
sudo ln -s /usr/local/apache-tomcat-7.0.29/Library/Tomcat
We now need to change the ownership of the /Library/Tomcat folder:-
我们来修改一下这个文件夹的权限
sudo chown -R
We now need to set all the scripts under ‘/Library/Tomcat/bin’ to executable, we do this like so:-
我们来是使这个目录下‘/Library/Tomcat/bin’ to executable的所有脚本有执行权限,我们这样来做
sudo chmod +x /Library/Tomcat/apache-tomcat-7.0.29/bin/*.sh
You’ve done
完成后,妮可以这样来手动运行tomcat
/Library/Tomcat/bin/startup.sh
You can stop it by running:-
通过运行一下脚本来停止tomcat
/Library/Tomcat/bin/shutdown.sh
Tomcat is now installed and working, you should be able to access it on your machine using this URL: http://localhost:8080/
在浏览器输入以下地址来测试是否安装成功。
A handy little GUI tool to start and stop Tomcat
In a development
It provides a nice interface as shown below:-
You will however need to open up the ‘Preferences’ and change the Tomcat location to match your new
- mac 配置tomcat(译)
- mac 配置tomcat(译)
- 【Tomcat】mac下配置tomcat
- Mac 配置 Tomcat
- mac 配置 tomcat
- mac 下配置 tomcat
- mac 配置 tomcat & jboss
- Mac下面配置Tomcat
- Mac Tomcat 配置
- Mac下配置tomcat
- mac 配置 tomcat
- mac 下配置tomcat
- Mac上面配置tomcat
- mac 配置Tomcat
- mac Tomcat配置
- mac 配置 Apache Tomcat
- Mac下配置tomcat
- Mac tomcat 配置
- java学习笔记_单例模型
- java 控制执行流程
- 解决Win7 安装oracle 11g, plsql 连接出现 ora-12154
- 测试眼里的Hadoop系列 之Terasort
- 算法基础_递归的例子
- mac 配置tomcat(译)
- Hibernate出现Unsupported major.minor version 51.0错误
- linux内核文件翻译-Mount options for ADFS
- Mac OS X Lion下配置Tomcat7
- CODE 105: Remove Element
- UVa 10718 Bit Mask (贪心&位运算)
- linux shell I/O 重定向
- USACO--starry--模拟
- 算法入门数学题hdoj 1004