Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8001 0.0.0.0:* LISTEN 78495/python3.9
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 63239/redis-server
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 63509/sshd: /usr/sb
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 54482/systemd-resol
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 63270/postgres
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 66237/nginx: master
tcp6 0 0 ::1:5432 :::* LISTEN 63270/postgres
tcp6 0 0 :::22 :::* LISTEN 63509/sshd: /usr/sb
tcp6 0 0 :::80 :::* LISTEN 66237/nginx: master
tcp6 0 0 ::1:6379 :::* LISTEN 63239/redis-server
climbmates@cv3874369:~$ sudo tail -f /var/log/nginx/error.log
2024/06/23 07:57:25 [emerg] 83291#83291: bind() to [::]:80 failed (98: Unknown error)
2024/06/23 07:57:25 [emerg] 83291#83291: bind() to 0.0.0.0:80 failed (98: Unknown error)
2024/06/23 07:57:25 [emerg] 83291#83291: bind() to [::]:80 failed (98: Unknown error)
2024/06/23 07:57:25 [emerg] 83291#83291: bind() to 0.0.0.0:80 failed (98: Unknown error)
2024/06/23 07:57:25 [emerg] 83291#83291: bind() to [::]:80 failed (98: Unknown error)
2024/06/23 07:57:25 [emerg] 83291#83291: bind() to 0.0.0.0:80 failed (98: Unknown error)
2024/06/23 07:57:25 [emerg] 83291#83291: bind() to [::]:80 failed (98: Unknown error)
2024/06/23 07:57:25 [emerg] 83291#83291: bind() to 0.0.0.0:80 failed (98: Unknown error)
2024/06/23 07:57:25 [emerg] 83291#83291: bind() to [::]:80 failed (98: Unknown error)
2024/06/23 07:57:25 [emerg] 83291#83291: still could not bind()
from django.db import models
class Image(models.Model):
image = models.ImageField(upload_to='images/')
date = models.DateField(auto_now_add=True)
class Meta:
db_table = "images"
def __str__(self) -> str:
return f"{self.image}"