I change the port following this link https://confluence.atlassian.com/display/STASH/Changing+the+port+that+Stash+listens+on, but both the two link http://stash_visit_url.com and http://stash_visit_url.com:7990 can't be visited.
I changed the server.xml like following
Two things might be at play here, and I'd highly suggest checking the logs for specific errors, but:
Firstly on the first line, your config appears slightly off.
<Server port="80" ...>
Should instead, be left as is, being:
<Server port="8006" ...>
The documentation says "Free port", but unless 8006 is being used by another service, it can stay as is. It isn't used by the end-users.
Secondly, for the Connector port, which is in the <Connector...> part of the config file, this is where the user-facing port is defined. Port 80 on most machines are protected from being used by non-root users, so if you're running as a non-root user you might want to look at doing a port forward instead. I'd try switching Server port back and seeing if the service runs.
See the section "Using a reverse proxy for Stash" on https://confluence.atlassian.com/display/STASH/Proxying+and+securing+Stash for more information on how to do that, without running Stash as root.
Try to change the Connector port to 7990, restart Stash and then try to access this: <stash-url>:7990
Also make sure you don't have any firewall blocking the port number that you are trying to reach.
Hope this helps.
Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs