terracotta安裝配置

  1. terracotta下載 terracotta
  2. terracotta配置
    解壓terracotta,如解壓到d盤。進(jìn)入terracotta->config-samples,將tc-config-express-reference.xml復(fù)制為tc-config.xml并修改:
<?xml version="1.0" encoding="UTF-8" ?>
<tc:tc-config xmlns:tc="http://www.terracotta.org/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-6.xsd">
    <tc-properties>
        <property name="l2.nha.dirtydb.autoDelete" value="true"/>
        <property name="l1.cachemanager.enabled" value="true"/>
        <property name="logging.maxLogFileSize" value="1024"/>
        <property name="l2.l1reconnect.enabled" value="true"/> 
        <property name="l2.l1reconnect.timeout.millis" value="5000"/>
    </tc-properties>
    <system>
        <configuration-model>production</configuration-model>
    </system>
    <servers>
        <server host="192.168.1.91" name="tc_1" bind="0.0.0.0">
            <data>/opt/terracotta/server-data</data>
            <logs>/opt/terracotta/server-logs</logs>
            <index>/opt/terracotta/server-index</index>
            <statistics>/opt/terracotta/server-statistics</statistics>
            <dso-port>9510</dso-port>
            <jmx-port>9520</jmx-port>
            <dso>
                <client-reconnect-window>120</client-reconnect-window>
            </dso>
        </server>
    </servers>
    <clients>
        <logs>logs-%i</logs>
    </clients>
</tc:tc-config>

server的host可以為ip或主機(jī)名,如果為主機(jī)名時(shí),需要修改hosts文件,加上:
主機(jī)名 localhost

  1. terracotta啟動(dòng)
    cd到terracotta/bin
    start-tc-server.bat -f ../config-samples/tc-config.xml
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容