# server installation

### Nginx server installation in ubuntu 22.04

```plaintext
sudo apt update
sudo apt install nginx
```

```plaintext
sudo ufw app list
sudo ufw allow 'Nginx HTTP'
sudo ufw status
```

```plaintext
systemctl status nginx
#http://your_server_ip
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1711425532063/57ebac49-5397-4b85-a17e-f9c7298beec8.png align="center")

```plaintext
sudo systemctl start nginx
sudo systemctl restart nginx
sudo systemctl reload nginx
```

```plaintext
sudo systemctl disable nginx
sudo systemctl enable nginx
```

[Nginx server installation link more detail](https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-22-04)
