Skip to content

Nginx is a fast and efficient web server that helps websites handle more visitors and load faster.

License

Notifications You must be signed in to change notification settings

sidhyaashu/NGNIX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Nginx is a fast and efficient web server that helps websites handle more visitors and load faster.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published