Changing default port 8080 to another
Hello everybody,
I've just installed Membase Membase Server and got a message that i can manage server through web-interface on 8080 port. But i have yet another service running on this port. How I can change this default port?
Thanks in advance.
-----------------------------
Hey guys, can anybody help me!
Does this work in beta2? I've edited my priv/config, noticed it updated the config file above it but the web interface is still on port 8080
cwilkes, I'll double check on this, but just to confirm, you're editing and config file located under the 1.6.0beta2 path, not 1.6.0beta1 path right?
yep, I only have beta2 on there. I originally had the memcached server (1.0.3) installed but have removed both with rpm -e and then just installed beta2.
yeah, there were some changes to the config system between beta1 and beta2 (that's beta for you right?). I'm getting the new instructions now...sorry about that.
Unfortunately this is no longer a trivial change and I have filed a bug to make it much easier going forward.
My apologies, and thanks for your patience.
Perry
Hi there...while this is being fixed, an intermediate workaround is to run the following curl command:
curl -u Administrator:asdfasdf -i -d port=8080 -d secureServer=0 -d username= -d password= [url]http://host:8080/settings/web[/url]
Replace the first '8080' with the port you'd like to move it to and it will automatically change the whole cluster for you!
Sorry, just to clarify..."Administrator:asdfasdf" is your own username:password. The blank username and password later on in the command are necessary to completely submit the form.
Hi!
I am installing fresh membased on box with 8080 port busy. How to change default port for fresh install?
Semenych, we've been back and forth a bit on this, but you can change port for a fresh install by:
1 - Stop the service
2 - Edit the config file (located at /etc/opt/NorthScale/1.6.0beta3/config for Linux and C:\Program Files (x86)\NorthScale\Server\priv\config for Windows). Put in this line: "{rest, [{port,}]}." (with the period at the end, but without the quotes) and replace '' with your desired port.
3 - Delete the config.dat file (located at /etc/opt/NorthScale/1.6.0beta3/ns_1/config.dat for Linux and C:\Program Files (x86)\NorthScale\Server\config\config.dat for Windows)
4 - Restart the service
You should be good to go!
Perry
FYI, I'm closing this thread as answered. I posted the instructions to a new Membase FAQ in this same forum.
Hi, bimash. Sorry about the delayed response, we've all been at Velocity after getting the beta out.
We intend to have this in the UI for the next beta, but for now you can change it by adding the following to /etc/opt/NorthScale/1.6.0beta1/priv/config:
{rest, [{'_ver', {9999, 0, 0}}, {port, 8080}]}.
replacing 8080 with whatever port you want to use. The '_ver' section will make it override the local config on any other host, so it should propagate through your cluster like a virus.