`

ubuntu 开启关闭mysql 服务

 
阅读更多

 


[php]
view plaincopy
 
  1. //Apache
  2. //Task:StartApache2Server/启动apache服务
  3. #/etc/init.d/apache2start
  4. //or
  5. $sudo/etc/init.d/apache2start
  6. //Task:RestartApache2Server/重启apache服务
  7. #/etc/init.d/apache2restart
  8. //or
  9. $sudo/etc/init.d/apache2restart
  10. //Task:StopApache2Server/停止apache服务
  11. #/etc/init.d/apache2stop
  12. //or
  13. $sudo/etc/init.d/apache2stop
  14. //Mysql
  15. /etc/init.d/mysqlstart
  16. /etc/init.d/mysqlstop
  17. /etc/init.d/mysqlrestart

 

 

[php]view plaincopy
 
  1. //httpd是Apache超文本传输协议(HTTP)服务器的主程序。被设计为一个独立运行的后台进程,它会建立一个处理请求的子进程或线程的池。
  2. //通常,httpd不应该被直接调用,而应该在类Unix系统中由apachectl调用
  3. //manapache2中介绍
  4. //apache2istheApacheHyperTextTransferProtocol(HTTP)serverprogram.
  5. //Itisdesignedtoberunasastandalonedaemonprocess.Whenusedlike
  6. //thisitwillcreateapoolofchildprocessesorthreadstohandlerequests.
  7. //Ingeneral,apache2shouldnotbeinvokeddirectly,
  8. //butrathershouldbeinvokedvia/etc/init.d/apache2orapache2ctl.
  9. //ThedefaultDebianconfig-urationrequiresenvironmentvariables
  10. //thataredefinedin/etc/apache2/envvarsandarenotavailableifapache2isstarteddirectly.
  11. //However,apache2ctlcanbeusedtopassarbitraryargumentstoapache2.
  12. //
  13. //apache2ctl=apache2ConTroL
  14. //
  15. apache2ctl-restart
  16. apache2ctl-stop
  17. apache2ctl-t
  18. //详细见manapache2

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics