restart tomcat code example
Example 1: restart crontab
sudo service cron reload
Example 2: restart server centos
reboot -h now
Example 3: how to stop tomcat server in macos
$ netstat -an | grep 8080
sudo service cron reload
reboot -h now
$ netstat -an | grep 8080