Skip to content

emka.web.id

menulis pengetahuan – merekam peradaban

Menu
  • Home
  • Tutorial
  • Search
Menu

How to Change Port Number on Apache Tomcat

Posted on January 9, 2014

The default port for tomcat is 8080 because developers are assuming you may have a apache server set up on port 80.  There are two issues with changing the port to 80. First, any ports under 1024 can only be managed by root which means that tomcat will need to run as root.  If you consider this too big of a security risk then you will either need to figure a way to run onport 80 as a unprivileged user or stay at port 8080.  The second issue is the conflict that you may have with apache.  If you are not running an apache server then it should not be an issue at all.  Just keep in mind you cannot bind two daemons to the same port at the same time.

Make sure that apache2 is turned off if it is installed to avoid conflict on port 80.

sudo service apache2 stop

Check that there are not services listening on port 80.

netstat -aunt | grep 80

Here is the basic configuration changes that need to be made in /usr/share/tomcat7/confserver.xml  to move from port 8080 to 80.

<!--Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" /-->

<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />

Be sure to stop tomcat and then start tomcat and then test.

via BeginLinux

Terbaru

  • 08559 Nomor Daerah Mana dan Kartu Apa? Ini Penjelasan Lengkapnya!
  • Ini Daftar 8 Keluarga Paling Mengerikan dalam Sejarah, Ada yang Sampai Bikin Dunia Gemetar!
  • Inilah Trik Rahasia Pindahkan Video Melolo ke Galeri Tanpa Aplikasi Tambahan
  • Ini Arti Kode Transaksi Bank ‘Kor MCD Transaction DB Otomatis’
  • Update Terbaru Januari 2026! Ini Trik Kode Plant Brainrot Simulator Biar Garden Kalian Makin OP
  • Belum Tahu? Inilah Asal Nomor Telepon 021 300 yang Sering Ganggu Kalian!
  • Bingung Menu Multi Payment Livin Mandiri Hilang? Inilah Cara Bayar Tagihan Apapun dengan Mudah!
  • Cara Nonton Anime di Anoboy dan Gabung Komunitas Discord Official Anoboy
  • Inilah Cara Nonton dan Link Website Anime Samehadaku Terbaru yang Paling Update!
  • Inilah Cara Kerja APK Sumber Dana, Penipuan atau Tidak?
  • Apakah Aplikasi Nonton Drama ReelFlick Penipuan?
  • Inilah Fakta di Balik Isu Video Blunder Risaatjan yang Viral di Media Sosial
  • Menu Hadiah Melolo Hilang Tiba-Tiba? Jangan Panik, Ini Trik Ampuh Mengatasinya!
  • CCTV Kematian Lula Lahfah?
  • Inilah Kronologi Meninggalnya Lula Lahfah
  • Cara Login SP Datadik Terbaru Biar Kerja Operator Sekolah Makin Sat-set!
  • Ketemu Link Video Viral ‘Petualangan Ustadzah Rahma’? Hati-hati, Kamu Bisa Dihack
  • Ikon Mic Roblox Hilang? Gini Caranya Mengaktifkan Kembali Voice Chat Biar Bisa Mabar Lagi!
  • Ini Cara Hapus Rombel Ganda di EMIS 4.0 yang Nggak Muncul Tombol Hapus
  • Inilah Kenapa Data Info GTK Kalian Nggak Berubah Padahal Dapodik Udah Sinkron
  • Belum Tahu CoreTax? Ini Trik Supaya Affiliator Lancar Lapor SPT Tahunan 2025 Tanpa Ribet
  • Inilah Cara Pendaftaran Peserta TKA SD dan SMP yang Benar Biar Nggak Salah Langkah!
  • Gagal Sinkron Dapodik 2026 C? Ini Trik Lengkap Supaya Berhasil Tanpa Pusing!
  • Cara Download Bukti Potong BPA1 di CoreTax, Nggak Perlu Ribet Minta HRD Lagi!
  • Cara Lapor SPT Tahunan di CoreTax Buat Pekerjaan Bebas, Ternyata Nggak Ribet Kalau Tahu Triknya!
  • Cara Beresin Siswa Tidak Teridentifikasi dan Rombel Ganda di EMIS 4.0
  • Cara Usul PIP di Dapodik 2026.B Biar Peserta Didik Kalian Dapat Bantuan!
  • Inilah Cara Awal Mengelola Web TKA Biar Nggak Pusing Pas Pelaksanaan!
  • Inilah Cara Mengatasi Masalah Jam Mengajar di InfoGTK Biar Cepat Valid!
  • Cara Atasi Residu Verval PD yang Tetap Muncul Padahal Sudah Hijau, Operator Sekolah Wajib Tahu!
  • The Secret “Niche Bending” Trick To Go Viral On YouTube, January 2026
  • Stuck on TikTok Affiliate? Here Is Why You Should Start a New Account
  • 7 Popular Side Hustles Ranked from Worst to Best
  • $10,000 Mac Studio vs Cloud AI: Who Actually Codes Better?
  • SLM, LLM, and Frontier Models Explained
  • Cara Ubah Tumpukan Invoice Jadi Data JSON dengan LlamaExtract
  • Cara Buat Audio Super Realistis dengan Qwen3-TTS-Flash
  • Tutorial Python Deepseek Math v2
  • Cara Menggunakan SAM3D untuk Segmentasi dan Pembuatan Model 3D dari Teks
  • Cara Membuat AI Agent Super Cerdas dengan DeepAgents dan LangGraph
  • Apa Itu Predator Spyware? Ini Pengertian dan Kontroversi Penghapusan Sanksinya
  • Mengenal Apa itu TONESHELL: Backdoor Berbahaya dari Kelompok Mustang Panda
  • Siapa itu Kelompok Hacker Silver Fox?
  • Apa itu CVE-2025-52691 SmarterMail? Celah Keamanan Paling Berbahaya Tahun 2025
  • Apa Itu ErrTraffic? Mengenal Platform ClickFix yang Bikin Website Jadi ‘Error’ Palsu
Beli Morning Star Kursi Gaming/Kantor disini: https://s.shopee.co.id/805iTUOPRV
Beli Pemotong Rumput dengan Baterai IRONHOOF 588V Mesin Potong Rumput 88V disini https://s.shopee.co.id/70DBGTHtuJ

©2026 emka.web.id | Design: Newspaperly WordPress Theme