- //Apache
- //Task:StartApache2Server/启动apache服务
- #/etc/init.d/apache2start
- //or
- $sudo/etc/init.d/apache2start
- //Task:RestartApache2Server/重启apache服务
- #/etc/init.d/apache2restart
- //or
- $sudo/etc/init.d/apache2restart
- //Task:StopApache2Server/停止apache服务
- #/etc/init.d/apache2stop
- //or
- $sudo/etc/init.d/apache2stop
- //Mysql
- /etc/init.d/mysqlstart
- /etc/init.d/mysqlstop
- /etc/init.d/mysqlrestart
- //httpd是Apache超文本传输协议(HTTP)服务器的主程序。被设计为一个独立运行的后台进程,它会建立一个处理请求的子进程或线程的池。
- //通常,httpd不应该被直接调用,而应该在类Unix系统中由apachectl调用
- //manapache2中介绍
- //apache2istheApacheHyperTextTransferProtocol(HTTP)serverprogram.
- //Itisdesignedtoberunasastandalonedaemonprocess.Whenusedlike
- //thisitwillcreateapoolofchildprocessesorthreadstohandlerequests.
- //Ingeneral,apache2shouldnotbeinvokeddirectly,
- //butrathershouldbeinvokedvia/etc/init.d/apache2orapache2ctl.
- //ThedefaultDebianconfig-urationrequiresenvironmentvariables
- //thataredefinedin/etc/apache2/envvarsandarenotavailableifapache2isstarteddirectly.
- //However,apache2ctlcanbeusedtopassarbitraryargumentstoapache2.
- //
- //apache2ctl=apache2ConTroL
- //
- apache2ctl-restart
- apache2ctl-stop
- apache2ctl-t
- //详细见manapache2