- Forums
- AngularJS
- How To Run MEAN Stack Server On Oracle Virtualbox with Bitnami
these are my instructions on how you can start running a MEAN server on your windows computer using virtualbox with bitnami and putty. [4624], Last Updated: Mon Jun 24, 2024
webune
Fri Jan 20, 2017
0 Comments
627 Visits
these are my instructions on how you can start running a MEAN server on your windows computer using virtualbox from a windows pc and using putty.
these are the programs i needed in order to do this
1. windows pc
2. putty
3. virtualbox
4. MEAN stack .ova file at https://bitnami.com/stack/mean/virtual-machine
/// FINALLY IT WORKED, THIS IS WHAT I DID
1. IMPORT THE FILE CALLED:
E:\VIRTUAL MACHINES -4-14-2016\IMPORT - EXPORT\bitnami-MEAN-SERVER.ova
############################## NOTE
//make sure you have SSH enabled, for this .ova file, i had it alread enabled, but incase you dont, here is the commands:
sudo mv /etc/init/ssh.conf.back /etc/init/ssh.conf
sudo start ssh
//To disable it, perform the same steps in reverse:
sudo stop ssh
sudo mv /etc/init/ssh.conf /etc/init/ssh.conf.bac
##############################
//Step 1. Once you are logged in through virtual box , Create a new MEAN project.
cd /home/bitnami/projects
express sample
cd sample
npm install
./bin/www
// NOTE: you will not get a message or anything, but the server is running
you can also run the debug command:
DEBUG=sample:* npm start
ONCE THE SERVER IS RUNNING ON PORT 3000, OPEN PUTTY TO CONFIGURE:
>Session >
Host Name (or IP address) enter the ip address of the virtula maching (you can get it with ifconfig command)
Save Sessions : MEAN SERVER
click Save
> Connection > SSH > Tunnels
Source port: 3000
Destination: localhost:3000
[x] Local
[x] Auto
CLick the Add Buttton
// GO BACK TO SESSION
CLICK SAVE AND OPEN OPEN
NOW OPEN YOUR BROWSER AND GO TO http://localhost:3000/
YOU WILL SEE A PAGE THAT SAYS:
Express
Welcome to Express
DONE
resources:
https://docs.bitnami.com/virtual-machine/faq/
https://docs.bitnami.com/virtual-machine/infrastructure/mean/