Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
You can use a different port, or add another ip to the machine and use that.
If it's the machine you're working on, you can use any address from 127.0.0.0, it a class a -
lucifyer5127y@nbamaral yes I want to work on my laptop alone. And not about server or anything.
I've read that using port. But could you please elaborate as to how? I couldn't find any suitable video or guide. -
use port 8081 for node so
localhost:8080 will be apache
localhost:8081 will be node
the first command in every node tutorial is setting the port, idk -
@lucifyer
Don't know exactly what is the config file for node. For apache look for a line "Listen" usually in /etc/apache/httpd.conf (different distros may use other files).
Change *:80 to 81 for example.
Or 192.168.1.100:80
Don't be afraid to test whatever works best for you, keep a copy of the original config -
lucifyer5127yYes. So my Apache is currently running on port 80.
I just need to configure node after installing it to listen to some other port?
Thank you! @BindView @nbamaral -
@lucifyer
Yes. Or you won't be able to run both at the same time.
As netadmin my gut says use different ip, but port also works fine for development machines
Related Rants
Hey web devs out there!
I have a question that I couldn't get an answer too.
I'm using Ubuntu 17.04 and lamp stack for my web development.
And now I've taken a course on Mean stack. So now I want to install the related server i.e node. But as you might see I already have Apache as a server.
Now I don't want to replace the lamp stack completely with mean stack. I want it to be there and working.
I also want to install and run mean stack.
So my question is how should I go about installing node server and related technologies? Multiple servers will give a problem for me or how should I solve it?
I saw something like using a different port for node. But I couldn't completely understand. So any help is appreciated.
Thanks!
question
lamp
web development
noobie
nodejs
mean
help