V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
rongyiran
V2EX  ›  程序员

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

  •  
  •   rongyiran · 2016-09-19 00:15:45 +08:00 · 2460 次点击
    这是一个创建于 2784 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 我又怕不兼容。不知道有没有大牛给一些建议。
    10 条回复    2016-09-29 17:36:21 +08:00
    xuhaoyangx
        1
    xuhaoyangx  
       2016-09-19 00:35:51 +08:00
    日志不是已经给出了问题所在了么。
    还有人用 myeclipse-。-,感觉好久没见过。
    rongyiran
        2
    rongyiran  
    OP
       2016-09-19 00:39:09 +08:00
    @xuhaoyangx 是的,的确没有这个文件。
    嘻嘻,我想自己学学 Java Web 开发,现在主流用的都是 Idea 了,一些资料还是 MyEclipse
    xuhaoyangx
        3
    xuhaoyangx  
       2016-09-19 00:40:34 +08:00
    @rongyiran 没必要, ide 只是个工具,我一样用着 idea 编辑的老项目。目测你还在看老的要死的 ssh-。-, springmvc mybatis 多好。
    rongyiran
        4
    rongyiran  
    OP
       2016-09-19 00:43:47 +08:00
    @xuhaoyangx 既然您这么建议,那我还是直接上 IDEA 吧。
    SoloCompany
        5
    SoloCompany  
       2016-09-19 02:45:01 +08:00
    把 Tomcat 装到 /Library
    并且 CATALINA_HOME 居然也指向 /Library
    你到底是怎么做到的。。。
    难不成你的 macOS 还能用 root 登录???黑人问号???
    rongyiran
        6
    rongyiran  
    OP
       2016-09-19 06:52:18 +08:00
    @SoloCompany 您的意思是怎么安装呢?
    因为我看到绝大多数的教程都是装在 Library 文件夹下的。
    参考也都是网上的资料。
    rongyiran
        7
    rongyiran  
    OP
       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
        8
    xuhaoyangx  
       2016-09-19 10:55:25 +08:00
    @rongyiran 我想修哪儿就丢哪儿。。
    sorra
        9
    sorra  
       2016-09-28 14:24:53 +08:00
    @rongyiran Tomcat 不需要安装,解压运行附带的 shell 脚本就行了
    rongyiran
        10
    rongyiran  
    OP
       2016-09-29 17:36:21 +08:00
    @sorra 谢谢
    之前已经解决了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2163 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 02:21 · PVG 10:21 · LAX 19:21 · JFK 22:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.