centos 7 stop mariadb service code example Example: ubuntu restart mariadb systemctl start mariadb systemctl stop mariadb systemctl restart mariadb