DEV Community

Kyle R. Conway
Kyle R. Conway

Posted on • Originally published at kylerconway.com on

Jenkins + Ubuntu Server: Change Default Port

Ubuntu server has a nice installation up-front that allows you to pre-select some tools and services at install you might want to have running on your new server.

If you happen to select Wekan it will default to port 8080.

If you then happen to want to install Jenkins via their Debian/Ubuntu method it will fail to fully install at the sudo apt-get install jenkins section due to the port 8080 already being occupied.

After running the above command you can edit port in the following file:

sudo nano /etc/default/jenkins
Enter fullscreen mode Exit fullscreen mode

Edit the numbers of the identified port to something other than “8080”

# port for HTTP connector (default 8080; disable with -1)
HTTP_PORT=8090
Enter fullscreen mode Exit fullscreen mode

You can see a video here: https://youtu.be/XVei-AeXLLo

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay