Ubuntu ServerにおけるapacheとMySQLの起動・停止・再起動

Ubuntu Server における apache の起動・停止・再起動

$ sudo /etc/init.d/apache2 start
$ sudo /etc/init.d/apache2 stop
$ sudo /etc/init.d/apache2 restart

または(パスの指定がないので、こっちのほうが簡単)

$ sudo apache2ctl start
$ sudo apache2ctl stop
$ sudo apache2ctl restart

Ubuntu Server における MySQL の起動・停止・再起動

$ sudo /etc/init.d/mysql start
$ sudo /etc/init.d/mysql restart
$ sudo /etc/init.d/mysql stop

 

Tags:

Comments

No comments so far.

  • Leave a Reply
     
    Your gravatar
    Your Name
     
     
     

    コメントリンクを nofollow free に設定することも出来ます。