Skip to content

Latest commit

 

History

History
66 lines (54 loc) · 1.18 KB

README.md

File metadata and controls

66 lines (54 loc) · 1.18 KB

NGNIX

To run NGINX with WSL (Windows Subsystem for Linux), you’ll need to install WSL, set up an appropriate Linux distribution, install NGINX, and start the server. Here’s the step-by-step process:

Step 1: Install WSL (if not already installed)

  1. Open PowerShell as Administrator and enable WSL:
wsl --install

Step 2: Update and Install NGINX in WSL

  1. Update the package list in your Linux distribution (assuming Ubuntu here):
sudo apt update
  1. Install NGINX:
sudo apt install nginx -y
  1. Verify Installation by checking the NGINX version:
nginx -v
  • Enable Service
sudo systemctl enable nginx
  • Check Service status
sudo systemctl status nginx

Step 3: Start NGINX

  1. Start the NGINX service:
sudo service nginx start
  1. To check if NGINX is running, use:
sudo service nginx status

Step 5: Access NGINX from Windows:

http://localhost

Step 5: Manage NGINX in WSL:

  1. Stop NGINX:
sudo service nginx stop
  1. Restart NGINX:
sudo service nginx restart
  1. Reload NGINX (to apply changes without a full restart):
sudo service nginx reload