Bitbucket Server Installation Error
<p>I'm attempting to install Bitbucket server on my linux server. I'm following the steps <a href="https://confluence.atlassian.com/bitbucketserver/getting-started-776640896.html" rel="nofollow">here</a>. I'm stuck at step 3. I've installed Bitbucket server, and now when trying to "Setup Bitbucket Server" I'm not able to access it from my browser.</p>

<p>I've done the following:</p>

<ol>
<li>Using SSH I've went to the directory containing <code>/atlassian/bitbucket/4.4.1/</code></li>
<li>I run the command <code>bin/start-bitbucket.sh</code>.</li>
</ol>

<p>it gives the following message:</p>

<pre><code>Starting Atlassian Bitbucket as current user

-------------------------------------------------------------------------------
  JAVA_HOME "/usr/local/jdk" does not point to a valid Java home directory.
-------------------------------------------------------------------------------

----------------------------------------------------------------------------------
Bitbucket is being run with a umask that contains potentially unsafe settings.
The following issues were found with the mask "u=rwx,g=rwx,o=rx" (0002):
 - access is allowed to 'others'. It is recommended that 'others' be denied
   all access for security reasons.
 - write access is allowed to 'group'. It is recommend that 'group' be
   denied write access. Read access to a restricted group is recommended
   to allow access to the logs.

The recommended umask for Bitbucket is "u=,g=w,o=rwx" (0027) and can be
configured in setenv.sh
----------------------------------------------------------------------------------
Using BITBUCKET_HOME:      /home/wbbstaging/atlassian/application-data/bitbucket
Using CATALINA_BASE:   /home/wbbstaging/atlassian/bitbucket/4.4.1
Using CATALINA_HOME:   /home/wbbstaging/atlassian/bitbucket/4.4.1
Using CATALINA_TMPDIR: /home/wbbstaging/atlassian/bitbucket/4.4.1/temp
Using JRE_HOME:        /usr/local/jdk
Using CLASSPATH:       /home/wbbstaging/atlassian/bitbucket/4.4.1/bin/bitbucket-bootstrap.jar:/home/wbbstaging/atlassian/bitbucket/4.4.1/bin/bootstrap.jar:/home/wbbstaging/atlassian/bitbucket/4.4.1/bin/tomcat-juli.jar
Using CATALINA_PID:    /home/wbbstaging/atlassian/bitbucket/4.4.1/work/catalina.pid
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.

Success! You can now use Bitbucket at the following address:

http://localhost:7990/

If you cannot access Bitbucket at the above location within 3 minutes, or encounter any other issues starting or stopping Atlassian Bitbucket, please see the troubleshooting guide at:
</code></pre>

<p>I try to access <code>http://myserveraddress:7990</code>, but i receive <code>ERR_CONNECTION_REFUSED</code> message. Is it because of the message <code>JAVA_HOME "/usr/local/jdk" does not point to a valid Java home directory</code>?</p>

<p>My server is running:
<code>CentOS Linux release 7.2.1511</code></p>

<p>And I'm attempting to install
<code>Bitbucket Server 4.4.1</code></p>