Merubah port default Tomcat

By | 11 Desember 2015

Setting port Tomcat berada di file server.xml biasanya secara default berada di folder conf/

berikut contoh confignya :

 <!-- Define a non-SSL HTTP/1.1 Connector on port 8180 -->
    <Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />

 

Lalu ubah menjadi :

 <!-- Define a non-SSL HTTP/1.1 Connector on port 8180 -->
    <Connector port="8181" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />

 

 

Dan kemudian restart catalina.sh