Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Confluence to run on the right port?

Jessica Torres August 22, 2018

Hi there, I installed Jira Software on my server and got it all configured nicely. Now, I want to install Confluence but it won't use the default ports (HTTP: 8090) because it says that port is in use. After doing some digging, I find that java.exe is using port 8090. I don't know if that was the case before I ever installed Jira but I don't know whether to get java to run on a different port so that Confluence can run on 8090 or whether to just pick a different custom port for Confluence to run on and what that port number should be. Any help would be appreciated. 

Thanks in advance.

2 answers

0 votes
Jessica Torres September 21, 2018

I'm still waiting on an answer to this question. I'm stuck on this issue and can't install.

Alexis Robert
Community Champion
September 24, 2018

Hi @Jessica Torres

 

where exactly are you stuck on, what steps have you taken on the original issue ? 

Jessica Torres September 24, 2018

Hi @Alexis Robert Please see my latest reply to Nic above. 

Alexis Robert
Community Champion
September 24, 2018

OK, so basically you can tell Confluence to run on any port you'd like, by default it is using port 8090 but you can choose 9090 for example.

Changing the default port must be done in the Confluence configuration file as instructed here, once you have changed this setting you can restart the installation process and it should not get stuck anymore.

 

Let me know if it works, 

 

--Alexis

Jessica Torres September 24, 2018

@Alexis Robert Thank you, that's what I needed.

0 votes
Alexis Robert
Community Champion
August 22, 2018

Hi @Jessica Torres

 

you can easily check on what port your Jira or Confluence is running: simply check you <installation directory>/conf/server.xml and look at the top of the file for this:

 

<Connector port="XXXX"

This should give you the information you're looking for.

 

The default port for Jira should be 8080, and 8090 for Confluence.

 

Let me know if this helps, 

 

--Alexis 

Jessica Torres August 22, 2018

No, it does not help, sadly. I have not yet installed Confluence. I'm running the installer and it won't install with the default 8090 port. 

Alexis Robert
Community Champion
August 22, 2018

Can you check with the process manager that you might not have another instance of the Confluence running ? You might want to maybe restart your server to make sure there is nothing else running too. 

Jessica Torres August 22, 2018

How would I have another instance of Confluence running if I've never installed it. I just explained that java is running on port 8090. I'm not sure I understand your question.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 22, 2018

It doesn't have to be Confluence, it's not the only thing that runs on 8090 by default (and the list grows massively when you remember almost anything can be relocated on another port)

Run a command line as the administrator, and then run

netstat -ab

From memory, that will list the open ports and processes.  Try the switch -aon instead if my memory is wrong.

Jessica Torres August 23, 2018

Thanks, @Nic Brough -Adaptavist- that did list the open ports. So does that mean I can choose whichever one is open when installing Confluence so that it doesn't interfere with java running on port 8090? I apologize if this is a basic question. I really don't know anything about ports.

Jessica Torres September 21, 2018

@Nic Brough -Adaptavist- Can you take a minute to reply please?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 22, 2018

Only one process can listen on a port at any time, that's why you're being blocked.

You either need to stop the java process that is currently on port 8090 (the netstat -ab should have told you what that process was and where it's running from) or give Confluence a different port to run on by changing the server.xml

Jessica Torres September 24, 2018

@Nic Brough -Adaptavist-Thanks. I don't think I can stop the java process. My question was more geared around how do I know what port to choose? Do I just choose any unused port?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 24, 2018

Yes, any port will do.  Just change it to a free one.

Jessica Torres September 24, 2018

@Nic Brough -Adaptavist- Thank you, that's what I needed.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events