brew install tomcat
来源:互联网 发布:net域名需要备案吗 编辑:程序博客网 时间:2024/06/02 07:09
I recently installed Tomcat 7 and got it working with Eclipse Helios on Mac OSX Lion.
Install Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
Install Tomcat:
sudo brew install tomcat
Test the Tomcat install by starting the server:
sudo catalina start
Set it so that you can start it without using sudo:
sudo chgrp -R your_user_name
sudo chmod -R g+rw /usr/local/Cellar/tomcat/
Stop the Tomcat server (if you have not already):
sudo catalina stop
Test the change to the file permissions for Tomcat by starting the server as yourself without sudo:
catalina startca
Stop the Tomcat server (we want Eclipse to do the starting and stopping):
catalina stop
In Eclipse, open the 'Servers' view and add a new Tomcat server. Key point is to make sure to change the name of the server so that it does not contain any spaces! If you don't have a 'Servers' view, you need to go download 'Eclipse IDE for Java EE Developers'.
All done! You should now be able to start and stop Tomcat from Eclipse. :)
首先保证brew命令能够正常使用;
1. 搜索tomcat是否存在:
brew install tomcat
3. 检查是否安装成功:
catalina -h
4. 运行tomcat:
catalina run
Tomcat的默认端口是8080,如果运行成功可通过http://localhost:8080访问
Install Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
Install Tomcat:
sudo brew install tomcat
Test the Tomcat install by starting the server:
sudo catalina start
Set it so that you can start it without using sudo:
sudo chgrp -R your_user_name
sudo chmod -R g+rw /usr/local/Cellar/tomcat/
Stop the Tomcat server (if you have not already):
sudo catalina stop
Test the change to the file permissions for Tomcat by starting the server as yourself without sudo:
catalina startca
Stop the Tomcat server (we want Eclipse to do the starting and stopping):
catalina stop
In Eclipse, open the 'Servers' view and add a new Tomcat server. Key point is to make sure to change the name of the server so that it does not contain any spaces! If you don't have a 'Servers' view, you need to go download 'Eclipse IDE for Java EE Developers'.
All done! You should now be able to start and stop Tomcat from Eclipse. :)
首先保证brew命令能够正常使用;
1. 搜索tomcat是否存在:
brew search tomcat
2. 安装tomcat:brew install tomcat
3. 检查是否安装成功:
catalina -h
4. 运行tomcat:
catalina run
Tomcat的默认端口是8080,如果运行成功可通过http://localhost:8080访问
webapp的根目录(CATALINA_HOME)为:/usr/local/Cellar/tomcat/7.0.33/libexec/webapps/ROOT/
附:
0 0
- brew install tomcat
- Brew install for mac
- mac brew install
- mac install brew
- brew install mysql
- brew install/uninstall postgres
- brew install tmux
- brew install mongo
- brew install glfw3
- Mac brew install mysql
- brew install rabbitmq
- brew install 报错Cowardly refusing to `sudo brew install
- brew install mysql遇到错误
- mac install mysql by brew
- Mac Brew Install 版本问题
- install the brew in mac
- mac home brew install go
- brew install curl- (4) 错误
- java 泛型
- css常见问题汇总(不定期更新)
- LintCode 179-更新二进制位
- [代码笔记] python 之 xml解析_sax:基于事件驱动的解析方式
- 五、决策树--统计学习方法总结
- brew install tomcat
- Objective-c语言 - 类和对象
- Xcode真机测试有关证书方面经常报的那些错
- 理解 OpenStack 高可用(HA):Neutron 分布式虚拟路由(二)
- Android截屏事件监听
- 自定义bufferedreader
- NodeJS入门之Hello world
- 使用fscanf获取固定格式内容
- 源码分析-LinkedBlockingQueue