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.
As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...
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