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

Top comments (0)