First, change user to root
Type the command - apt install nginx -y
apt = is the package manager of nginx
install = this is a verb and the action that you want the package manager to perform
nginx = this is what you want to install on the VM
-y = This is a command that prompts the system to automatically accept anything that requires you to accept a yes or no
Confirm installation
Visit the server / public IP in a browser to validate that it works
Top comments (0)