# Nginx | General Commands

#### A few commands Nginx

`systemctl start nginx`  
`systemctl stop nginx`  
`systemctl restart nginx`  
`systemctl status nginx`

#### Troubleshooting Nginx

```bash
sudo tail -f /var/log/nginx/error.log
```

```bash
sudo tail -f /var/log/odoo/odoo.log
```

##### Check connection

```bash
curl -I http://<your-external-ip>:80
```

```
curl -I https://<your-external-ip>:443
```