Mengubah settingan port pada Tomcat.

Tomcat secara default menggunakan port 8080. Jika ingin mengubah port default, lakukan langkah-langkah berikut :

  1. Cari file server.xml (folder instalasi\conf\)
  2. Ubah bagian port dengan port yang diinginkan misalnya 8081,8082, dst
  3. <Connector port="8080" maxHttpHeaderSize="8192"
                   maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
                   enableLookups="false" redirectPort="8443" acceptCount="100"
                   connectionTimeout="20000" disableUploadTimeout="true" />
  4. Restart tomcat.
  5. Selesai.

 

Advertisements

One Response to Mengubah settingan port pada Tomcat.

  1. kalo pengen buat virtual host itu gimana ya kak? biar tomcat kita punya banyak alamat, kaya local,host:8080 atau dev.local:8080?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: