https://github.com/sidhyaashu/ngnix
Nginx is a fast and efficient web server that helps websites handle more visitors and load faster.
https://github.com/sidhyaashu/ngnix
nginx nginx-proxy ngnix-server
Last synced: about 1 year ago
JSON representation
Nginx is a fast and efficient web server that helps websites handle more visitors and load faster.
- Host: GitHub
- URL: https://github.com/sidhyaashu/ngnix
- Owner: sidhyaashu
- License: gpl-3.0
- Created: 2024-10-11T05:56:32.000Z (over 1 year ago)
- Default Branch: sidhya
- Last Pushed: 2024-11-02T07:18:29.000Z (over 1 year ago)
- Last Synced: 2025-02-05T10:50:23.913Z (over 1 year ago)
- Topics: nginx, nginx-proxy, ngnix-server
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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:
```bash
wsl --install
```
# Step 2: Update and Install NGINX in WSL
1. Update the package list in your Linux distribution (assuming Ubuntu here):
```bash
sudo apt update
```
2. Install NGINX:
```bash
sudo apt install nginx -y
```
3. Verify Installation by checking the NGINX version:
```bash
nginx -v
```
- Enable Service
```bash
sudo systemctl enable nginx
```
- Check Service status
```bash
sudo systemctl status nginx
```
# Step 3: Start NGINX
1. Start the NGINX service:
```bash
sudo service nginx start
```
2. To check if NGINX is running, use:
```bash
sudo service nginx status
```
# Step 5: Access NGINX from Windows:
```bash
http://localhost
```
# Step 5: Manage NGINX in WSL:
1. Stop NGINX:
```bash
sudo service nginx stop
```
2. Restart NGINX:
```bash
sudo service nginx restart
```
3. Reload NGINX (to apply changes without a full restart):
```bash
sudo service nginx reload
```