怎么用單臺服務(wù)器部署多個tomcat

這篇文章主要介紹“怎么用單臺服務(wù)器部署多個tomcat”,在日常操作中,相信很多人在怎么用單臺服務(wù)器部署多個tomcat問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”怎么用單臺服務(wù)器部署多個tomcat”的疑惑有所幫助!接下來,請跟著小編一起來學(xué)習(xí)吧!

白沙黎族網(wǎng)站制作公司哪家好,找創(chuàng)新互聯(lián)!從網(wǎng)頁設(shè)計(jì)、網(wǎng)站建設(shè)、微信開發(fā)、APP開發(fā)、自適應(yīng)網(wǎng)站建設(shè)等網(wǎng)站項(xiàng)目制作,到程序開發(fā),運(yùn)營維護(hù)。創(chuàng)新互聯(lián)2013年至今到現(xiàn)在10年的時(shí)間,我們擁有了豐富的建站經(jīng)驗(yàn)和運(yùn)維經(jīng)驗(yàn),來保證我們的工作的順利進(jìn)行。專注于網(wǎng)站建設(shè)就選創(chuàng)新互聯(lián)。

修改tomcat配置文件,配置文件位置:tomcat根目錄/conf/server.xml

<?xml version="1.0" encoding="UTF-8"?>

<!-- >>>>>>>>>>>>>>>>>>>>這里需要修改3-1(tomcat的shutdown端口)<<<<<<<<<<<<<<<<<<<<<< -->
<!-- <Server port="8005" shutdown="SHUTDOWN"> -->
<Server port="8006" shutdown="SHUTDOWN">
    <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
    <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
    <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
    <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />

    <GlobalNamingResources>
        <Resource name="UserDatabase" auth="Container"
                  type="org.apache.catalina.UserDatabase"
                  description="User database that can be updated and saved"
                  factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
                  pathname="conf/tomcat-users.xml" />
    </GlobalNamingResources>

    <Service name="Catalina">

        <!-- >>>>>>>>>>>>>>>>>>>>這里需要修改3-2(http訪問端口)<<<<<<<<<<<<<<<<<<<<<< -->
        <!-- <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="60000" redirectPort="8443" /> -->
        <Connector port="8081" protocol="HTTP/1.1" connectionTimeout="60000" redirectPort="8443" />

        <!-- >>>>>>>>>>>>>>>>>>>>這里需要修改3-3(JVM啟動端口)<<<<<<<<<<<<<<<<<<<<<< -->
        <!-- <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> -->
        <Connector port="8010" protocol="AJP/1.3" redirectPort="8443" />

        <Engine name="Catalina" defaultHost="localhost">
            <Realm className="org.apache.catalina.realm.LockOutRealm">
                <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                       resourceName="UserDatabase"/>
            </Realm>
            <Host name="localhost"  appBase="webapps"
                  unpackWARs="true" autoDeploy="true">
                <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
                       prefix="localhost_access_log" suffix=".txt"
                       pattern="%h %l %u %t &quot;%r&quot; %s %b" />
            </Host>
        </Engine>
    </Service>
</Server>

到此,關(guān)于“怎么用單臺服務(wù)器部署多個tomcat”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識,請繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會繼續(xù)努力為大家?guī)砀鄬?shí)用的文章!

網(wǎng)頁題目:怎么用單臺服務(wù)器部署多個tomcat
URL鏈接:http://bm7419.com/article44/ipooee.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站內(nèi)鏈、網(wǎng)站導(dǎo)航、網(wǎng)站營銷、Google、響應(yīng)式網(wǎng)站、營銷型網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

h5響應(yīng)式網(wǎng)站建設(shè)