mac os 10.11.6 tomcat7 无法正常启动求助

2016-09-19 00:15:45 +08:00
 rongyiran
Using CATALINA_BASE: /Library/Tomcat
Using CATALINA_HOME: /Library/Tomcat
Using CATALINA_TMPDIR: /Library/Tomcat/temp
Using JRE_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home
Using CLASSPATH: /Library/Tomcat/bin/bootstrap.jar:/Library/Tomcat/bin/tomcat-juli.jar
touch: /Library/Tomcat/logs/catalina.out: No such file or directory
/Library/Tomcat/bin/catalina.sh: line 415: /Library/Tomcat/logs/catalina.out: No such file or directory

安装基本上没有问题 就是最后启动时 启动不成功 Google 上资源也不多
个人感觉问题可能是出在 jdk 上,因为大部分 jdk7 在网上的教程都是可以成功的,但是我现在也没有办法去测试,因为我还有别的一些环境需要 jdk8 ,而且我装的是 MyEclipse10 , tomcat8 我又怕不兼容。不知道有没有大牛给一些建议。
2475 次点击
所在节点    程序员
10 条回复
xuhaoyangx
2016-09-19 00:35:51 +08:00
日志不是已经给出了问题所在了么。
还有人用 myeclipse-。-,感觉好久没见过。
rongyiran
2016-09-19 00:39:09 +08:00
@xuhaoyangx 是的,的确没有这个文件。
嘻嘻,我想自己学学 Java Web 开发,现在主流用的都是 Idea 了,一些资料还是 MyEclipse
xuhaoyangx
2016-09-19 00:40:34 +08:00
@rongyiran 没必要, ide 只是个工具,我一样用着 idea 编辑的老项目。目测你还在看老的要死的 ssh-。-, springmvc mybatis 多好。
rongyiran
2016-09-19 00:43:47 +08:00
@xuhaoyangx 既然您这么建议,那我还是直接上 IDEA 吧。
SoloCompany
2016-09-19 02:45:01 +08:00
把 Tomcat 装到 /Library
并且 CATALINA_HOME 居然也指向 /Library
你到底是怎么做到的。。。
难不成你的 macOS 还能用 root 登录???黑人问号???
rongyiran
2016-09-19 06:52:18 +08:00
@SoloCompany 您的意思是怎么安装呢?
因为我看到绝大多数的教程都是装在 Library 文件夹下的。
参考也都是网上的资料。
rongyiran
2016-09-19 06:53:38 +08:00
@SoloCompany Installing Tomcat
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-8.5.3.tar.gz from here. I picked the tar.gz in Binary Distributions / Core section.
Opening/unarchiving the archive will create a folder structure in your Downloads folder: (btw, this free Unarchiver app is perfect for all kinds of compressed files and superior to the built-in Archive Utility.app)
~/Downloads/apache-tomcat-8.5.3
Open to Terminal app to move the unarchived distribution to /usr/local
sudo mkdir -p /usr/local
sudo mv ~/Downloads/apache-tomcat-8.5.3 /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 (after removing the old link, you might have from installing a previous version):
sudo rm -f /Library/Tomcat
sudo ln -s /usr/local/apache-tomcat-8.5.3 /Library/Tomcat
Change ownership of the /Library/Tomcat folder hierarchy:
sudo chown -R <your_username> /Library/Tomcat
Make all scripts executable:
sudo chmod +x /Library/Tomcat/bin/*.sh
xuhaoyangx
2016-09-19 10:55:25 +08:00
@rongyiran 我想修哪儿就丢哪儿。。
sorra
2016-09-28 14:24:53 +08:00
@rongyiran Tomcat 不需要安装,解压运行附带的 shell 脚本就行了
rongyiran
2016-09-29 17:36:21 +08:00
@sorra 谢谢
之前已经解决了。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/307123

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX