Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
Last synced: 12 days 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 (2 months ago)
- Default Branch: sidhya
- Last Pushed: 2024-11-02T07:18:29.000Z (about 2 months ago)
- Last Synced: 2024-11-02T07:23:32.703Z (about 2 months ago)
- Homepage:
- Size: 20.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
```