首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > Apache >

Ubuntu停启动/重启/停止apache,mysql服务器

2013-03-26 
Ubuntu下启动/重启/停止apache,mysql服务器//?Apache ??//Task:?Start?Apache?2?Server?/启动apache服务 ?

Ubuntu下启动/重启/停止apache,mysql服务器

  1. //?Apache ??//Task:?Start?Apache?2?Server?/启动apache服务 ??
  2. #?/etc/init.d/apache2?start??//or ??
  3. $?sudo?/etc/init.d/apache2?start??//Task:?Restart?Apache?2?Server?/重启apache服务 ??
  4. #?/etc/init.d/apache2?restart??//or ??
  5. $?sudo?/etc/init.d/apache2?restart??//Task:?Stop?Apache?2?Server?/停止apache服务 ??
  6. #?/etc/init.d/apache2?stop??//or ??
  7. $?sudo?/etc/init.d/apache2?stop???//?Mysql ??
  8. /etc/init.d/mysql?start??/etc/init.d/mysql?stop??
  9. /etc/init.d/mysql?restart??
  10. //?httpd是Apache超文本传输协议(HTTP)服务器的主程序。被设计为一个独立运行的后台进程,它会建立一个处理请求的子进程或线程的池。 ??//?通常,httpd不应该被直接调用,而应该在类Unix系统中由?apachectl?调用 ??
  11. //?man?apache2?中介绍 ??//?apache2?is?the?Apache?HyperText?Transfer?Protocol?(HTTP)?server?program. ??
  12. //?It?is?designed?to?be?run?as?a?standalone?daemon?process.?When??used??like ??//?this?it?will?create?a?pool?of?child?processes?or?threads?to?handle?requests. ??
  13. //?In?general,?apache2?should?not?be?invoked?directly, ??//?but?rather?should?be?invoked?via?/etc/init.d/apache2?or?apache2ctl. ??
  14. //?The?default?Debian?config-uration?requires?environment?variables ??//?that?are?defined?in?/etc/apache2/envvars?and?are?not?available?if?apache2?is??started??directly. ??
  15. //?However,apache2ctl?can?be?used?to?pass?arbitrary?arguments?to?apache2. ??// ??
  16. //?apache2ctl?=?apache2?ConTroL ??// ??
  17. apache2ctl?-restart??apache2ctl?-stop??
  18. apache2ctl?-t??//?详细见?man?apache2??

热点排行