无法启动terracota

时间:2015-03-12 09:05:08

标签: centos ehcache digital-ocean terracotta

我在启动terracota时遇到问题,我在整个系统中对37.139.24.150 ip进行了grep,但是找不到任何包含此IP的文件,还有其他要查找的地方?此外,我无法在terracota中找到tc-config.xml,它实际上是一个旧系统,我刚刚开始使用未安装/配置的terracota。

2015-03-12 13:02:09,737 [main] INFO com.terracottatech.dso - Statistics store: '/root/terracotta/server-statistics'.
2015-03-12 13:02:09,750 [main] INFO com.terracottatech.console - Available Max Runtime Memory: 490MB
2015-03-12 13:02:09,958 [main] INFO com.terracottatech.dso - Standard DSO Server created
2015-03-12 13:02:09,962 [main] INFO com.terracottatech.dso - Creating server nodeID: NodeID[37.139.24.150:9510]
2015-03-12 13:02:09,973 [main] ERROR com.terracottatech.console - Unable to find local network interface for 37.139.24.150
2015-03-12 13:02:09,975 [main] ERROR com.terracottatech.dso - Unable to find local network interface for 37.139.24.150
com.tc.exception.TCRuntimeException: Unable to find local network interface for 37.139.24.150
        at com.tc.objectserver.impl.DistributedObjectServer.start(DistributedObjectServer.java:502)
        at com.tc.server.TCServerImpl.startDSOServer(TCServerImpl.java:531)
        at com.tc.server.TCServerImpl.access$600(TCServerImpl.java:92)
        at com.tc.server.TCServerImpl$StartAction.execute(TCServerImpl.java:479)
        at com.tc.lang.StartupHelper.startUp(StartupHelper.java:39)
        at com.tc.server.TCServerImpl.startServer(TCServerImpl.java:510)
        at com.tc.server.TCServerImpl.start(TCServerImpl.java:271)
        at com.tc.server.TCServerMain.main(TCServerMain.java:30)

1 个答案:

答案 0 :(得分:0)

我做了它,我已经创建了新的tc-config.xml并使用./start-tc-server.sh -f /home/tomcat/terracotta/latest/terracotta/bin/tc-config.xml &启动了服务器

<?xml version="1.0" encoding="UTF-8"?>
<!-- All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved. -->
<tc:tc-config xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-5.xsd" 
xmlns:tc="http://www.terracotta.org/config" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <servers>
    <!-- Sets where the Terracotta server can be found. Replace the value of host with the server's IP address. -->
    <server host="<my-server-ip>" name="localhost">
      <data>/home/tomcat/terracotta/server-data</data>
      <logs>/home/tomcat/terracotta/server-logs</logs>
      <statistics>/home/tomcat/terracotta/server-statistics</statistics>
    </server>

<!-- If using more than one server, add an <ha> section. -->
    <ha>
      <mode>networked-active-passive</mode>
      <networked-active-passive>
        <election-time>5</election-time>
      </networked-active-passive>
    </ha>
  </servers>
  <!-- Sets where the generated client logs are saved on clients. Note that the exact location of Terracotta logs on client machines may vary based on the value of user.home and the local disk layout. -->  
  <clients>
    <logs>/opt/terracotta/client-logs</logs>
  </clients>
</tc:tc-config>