how to restart all pm2 service code example
Example 1: how to restart apache2 in ubuntu 20.04
$ sudo systemctl restart apache2
Example 2: how to restart php-fpm on ubuntu
sudo /etc/init.d/php-fpm restart
$ sudo systemctl restart apache2
sudo /etc/init.d/php-fpm restart