- Creating a vagrant machine
- To go into the virtual machine
- To carry out all updates
- sudo is to run command as admin for ubuntu
- apt gets package manager to install, update and upgrade packages
sudo apt-get update -y
(automated)
using these steps we have now created a DEV environment
exit command to exit the machine
nano commands.md
sudo su
: to access from rootsudo apt-get install nginx
: to install web serversystemctl status nginx
: to check the status of the program
- go on git bash
nano vagrant file
- add the private network IP address to launch nginx
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
# creating a virtual machine ubuntu
config.vm.network "private_network", ip: "192.168.10.100"
# creating private ip to access our nginx server on the web from inside >
#redirecting the above to the specific web address
config.hostsupdater.aliases = ["development.local"]
end
vagrant reload
vagrant destroy
in git bash