1
1

More than 5 years have passed since last update.

Webサーバ起動

Last updated at Posted at 2019-03-14

よく使うものでよく忘れるのでメモ

起動

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

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1