# SPIRITS TEAM
## List RUNNING SERVICE
`ps aux`
Note important running service as "nginx/mysql/redis...""
## Re-check service
### Nginx
Access web server via browser => AVAILABLE
Check nginx config : cat /etc/nginx/nginx.conf
Check firewall status : ufw status => port 80 and 22 is allowed
### Database
Access database => Available
```
mysql
```
```
show databases;
```
## Restart Virtual Machine
### Re-check status of service
```
ps aux
```
```
systemctl status nginx
systemctl status mysql
systemctl status mariadb
```
### Nginx
Access web server via browser => NOT AVAILABLE
Re-check config files :
> /etc/nginx/sites-enabled/default
- Below file changed "listen 88" instead of "listen 80"
- Update port from 88 => 80 and restart nginx service
```
systemctl nginx restart
```
Access web server via browser => AVAILABLE
### Database
Access database => Available