mirror of
https://github.com/idanoo/m2.nz
synced 2025-07-03 05:42:15 +00:00
Update theme (LoveIt) + Add new fields
This commit is contained in:
parent
ec90ebd36e
commit
49c98d8fb5
87 changed files with 6900 additions and 6013 deletions
38
content/posts/installing_latest_nginx.md
Normal file
38
content/posts/installing_latest_nginx.md
Normal file
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
title: "Nginx stable install on debian/ubuntu from official repos"
|
||||
tags: ["nginx", "debian", "ubuntu"]
|
||||
date: 2025-02-22
|
||||
---
|
||||
|
||||
A lot of the time, intsalling nginx from ubuntu/debian repositories is out of date and sometimes we just want the latest version :shrug:.
|
||||
|
||||
First up we want to install all required software and pull the latest signing key.
|
||||
|
||||
**Run the following commands as the root user**
|
||||
```shell
|
||||
apt install -y curl gnupg2 ca-certificates lsb-release debian-archive-keyring
|
||||
curl -s https://nginx.org/keys/nginx_signing.key | gpg --dearmor > /usr/share/keyrings/nginx-archive-keyring.gpg
|
||||
```
|
||||
|
||||
The next step will vary depending on if you are using debian or ubuntu.
|
||||
|
||||
**Debian:**
|
||||
```shell
|
||||
echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
|
||||
http://nginx.org/packages/debian `lsb_release -cs` nginx" \
|
||||
| tee /etc/apt/sources.list.d/nginx.list
|
||||
```
|
||||
|
||||
**Ubuntu:**
|
||||
```shell
|
||||
echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
|
||||
http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
|
||||
| tee /etc/apt/sources.list.d/nginx.list
|
||||
```
|
||||
|
||||
Once we have the packages && keyring setup, it's time to install:
|
||||
```shell
|
||||
apt update && apt install -y nginx
|
||||
```
|
||||
|
||||
Keep in mind, the latest version will have the vhosts configured under `/etc/nginx/conf.d` instead of the legacy `sites-enabled` folder.
|
Loading…
Add table
Add a link
Reference in a new issue