Logo

dev-resources.site

for different kinds of informations.

Creating a Linux VM and installing nginx on it

Published at
11/19/2024
Categories
azure
virtualmachine
devops
tutorial
Author
wizzyb
Author
6 person written this
wizzyb
open
Creating a Linux VM and installing nginx on it

Step-by-Step Guide to Creating a Linux VM and installing nginx on it

Step 1: Search & Select Virtual Machine on Azure Portal.

Image description

Step 2: Select Create + and click on Azure Virtual Machines.

Image description

Step 3: For Resource Group select Create New, Give your resource group a name and click on OK to save changes.

Image description

Step 4: Provide a Virtual Machine name. Ensure the name is unique and meets the naming requirements.

Image description

Step 5: Select Images & Choose Ubuntu Server 20.04.

Image description

Step 6: Go to the Administrator Account and Create a Username & Password.

Image description

Step 7: In the Inbound port roles, select HTTP & SSH.

Image description

Step 8: Go to Monitoring, Disable Boot Diagnostics.

Image description

Step 9: Click on the “Review + Create” button. If the validation passes, the deployment will proceed. If not, note any recommendations, fix them, and try again. Deployment might take 3-5 minutes.

Image description

Step 10: Once the VM is deployed, find its Public IP Address in the Overview tab.

Image description

Step 11: Open a terminal(like Windows Powershell or use an SSH client like PuTTY) and connect to your VM using SSH

Image description

• Replace and with your VM's details.
• Enter yes and then your password (not visible while typing in Linux).
• Make sure that you are logged in as root use the command - sudo su.

Image description

Step 12: Once connected, run the following commands to ensure the package list is to up-to-date.

apt update

Image description

Step 13: Install nginx on a Linux Server

• Type the command $ apt install nginx.
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).

Image description

Step 14: Test Nginx Installation
• We can verify the installation by pasting the IP Address of the VM in a browser.

Image description

By following these steps, you've successfully created a Linux VM in Azure and installed Nginx. This setup is ready to serve web traffic and can be scaled based on your requirements. You can now begin deploying web applications customizing NGINX as needed

virtualmachine Article's
30 articles in total
Favicon
Azure Marketplace for Virtual Machines
Favicon
Implementasi Infrastruktur Jaringan Virtual dengan Protokol OSPF
Favicon
How to Shutdown Azure VM
Favicon
How to configure Free SSL Certificate on Nginx using Certbot
Favicon
Live Azure VM Workshop | Deploy and Manage Azure VMs: RDP, Resize, Troubleshoot, IIS Setup
Favicon
Virtualization on Debian with virsh&QEMU&KVM — Installation of virtualization tools and first VM creation
Favicon
Connecting a Virtual Machine to Windows OS: A Step-by-Step Guide
Favicon
Azure VM Resize: Effortlessly Scale Your Virtual Machines in Azure
Favicon
Automating VM Disaster Recovery Using AWS Elastic Disaster Recovery (DRS)
Favicon
Docker vs Virtual Machines: What’s the Difference?
Favicon
Understand Amazon Elastic Compute Cloud (EC2) for launching virtual machines
Favicon
Increase Virtual Machine Quota: A Step-by-Step Guide
Favicon
Efficient Scaling: An Introduction to Virtual Machine Scale Sets (VMSS
Favicon
Create a Linux Virtual Machine in Azure
Favicon
Exploring the Potential of Deepfakes VR: Immersive Experiences for a Virtual Future https://cloudastra.co/blogs/exploring-the-potential-of-deepfakes-vr-immersive-experiences-for-a-virtual-future
Favicon
Creating a Linux VM and installing nginx on it
Favicon
Should You Try Azure Virtual Desktop? Here’s the Simple Breakdown
Favicon
Mastering Azure Monitor: A Step-by-Step Guide to Monitoring Your Azure Virtual Machine Like a Pro
Favicon
Creating and Connecting to a Linux Virtual Machine Scale Set
Favicon
Find the Exact and all connected device's IPs on the virtual machine
Favicon
Simplify Your Workflow: Effortless File Transfer Between VM and Windows
Favicon
Create a Windows 11 VM that is highly available
Favicon
Creating A Window Virtual Machine, RDP into it, Add a data disc to window virtual machine.
Favicon
Creating and connecting to a Linux Virtual Machine Scale Set
Favicon
How to Backup Virtual Machines to Object Storage with Borg, Borgmatic, Rclone, and Cron's Rsync
Favicon
Docker ও VM-এর মধ্যে পার্থক্যগুলো কী?
Favicon
What is Docker? The Simplest Explanation You'll Ever Need
Favicon
¿Cómo clonar una máquina virtual en Azure?
Favicon
Comandos Básicos de Vagrant
Favicon
create an NVA and virtual machine in azure

Featured ones: