よく使うものでよく忘れるのでメモ
起動
httpd,mysql[mysqld]などを行う
■CentOS7以上
systemctl start サービス名.service
■CentOS7以下
service サービス名 start
停止
■CentOS7以上
systemctl stop サービス名.service
■CentOS7以下
service サービス名 stop
再起動
■CentOS7以上
systemctl restart サービス名.service
■CentOS7以下
service サービス名 restart
その他
service httpd restart
または
/etc/init.d/httpd restart
再起動コマンドが効かない場合、以下のコマンドである可能性があります。(CentOSのバージョンの違いなど)
apachectl restart
apache2ctl restart