apachectl和httpd的关系(转)

2018-1-17 liyangweb.com 李杨 服务器

apachectl是Apache HTTP服务器的前端程序。其设计意图是帮助管理员控制Apache httpd后台守护进程的功能。

apachectl脚本有两种操作模式。首先,作为简单的httpd的前端程序,设置所有必要的环境变量,然后启动httpd ,并传递所有的命令行参数。其次,作为SysV初始化脚本,接受简单的一个单词的参数,如:start, restart, stop ,并把他们翻译为适当的信号发送给httpd 。

如果你的Apache安装在非标准的路径中,你将需要修改apachectl脚本使其中的路径正确地指向httpd程序。此外,还可以指定任何必要的httpd命令行参数。细节可以参见脚本中的注解。

apachectl脚本如果执行成功,则返回0 ;如果出错,则其返回值>0 。更多细节可以参见脚本中的注解。

如果你启动的是/usr/local/apache2/bin/apachectl,

会启动HTTPD='/usr/local/apache2/bin/httpd'这个httpd

使用的配置文件应该是/usr/local/apache2/conf/httpd.conf,

你访问到的主页应该就是it works,也就是你新安装的apache2的首页

而你启动/usr/sbin/httpd

使用的配置文件应该是/etc/httpd/conf/httpd.conf

你访问到的主页应该就是apache的介绍页,也就是这个linux系统原来的apache的首页

评论:

cacikvideo
2019-02-10 06:05
<a href="http://www.thebiarritz.com/air-jordan-retro-4-womens-red-yellow-shoesl">air jordan retro 4 womens red yellow</a> <a href="http://www.voydnet.com/steven-adams-okc-jersey-nfli">steven adams okc jersey</a> <a href="http://www.foneandlone.com/kvinners-nike-zoom-structure-18-royal-bl%C3%A5-obuvk">kvinners nike zoom structure 18 royal bl氓</a> <a href="http://www.roomwhiz.com/coach-keri-apricot-sunglasses-coachh">coach keri apricot sunglasses</a> <a href="http://www.riffsurfers.com/adidas-zx-flux-femminile-verde-scarpei">adidas zx flux femminile verde</a> <a href="http://www.davidmgaines.com/nike-free-run-2-femminile-verde-cielo-blu-scarpeh">nike free run 2 femminile verde cielo blu</a>
cacikvideo http://www.cacikvideo.com/
thecardplayer
2019-01-30 12:13
<a href="http://www.teamdalarna.com/mujeres-nike-air-presto-gris-rosado-zapatosk">mujeres nike air presto gris rosado</a> <a href="http://www.syairshamyoun.com/nike-kobe-9-high-krm-ext-r%C3%B8d-mamba-skoi">nike kobe 9 high krm ext r酶d mamba</a> <a href="http://www.fizalisfresh.com/mennns-asics-asics-gel-kayano-17-gul-hvit-obuvl">mennns asics asics gel kayano 17 gul hvit</a> <a href="http://www.fsscas.com/air-jordan-retro-18-grey-silver-shoesh">air jordan retro 18 grey silver</a> <a href="http://www.imagimp.com/femminile-air-jordan-retro-1-oro-blu-scarpei">femminile air jordan retro 1 oro blu</a> <a href="http://www.burmamaritime.com/nike-kobe-11-flyknit-grau-schuhej">nike kobe 11 flyknit grau</a>
thecardplayer http://www.thecardplayer.com/
votuongluan
2019-01-28 16:57
<a href="http://www.ntygadget.com/air-jordan-jumpman-h-bl%C3%A5-kurpesb">air jordan jumpman h bl氓</a> <a href="http://www.purchasetulsa.com/adidas-originals-gazelle-2-dark-green-gold-zapatost">adidas originals gazelle 2 dark green gold</a> <a href="http://www.pennywave.com/white-leather-converse-shoesz">white leather converse</a> <a href="http://www.scoptix.com/nike-herre-air-max-tailwind-6-l%C3%B8b-sko-sort-kit-schuheb">nike herre air max tailwind 6 l酶b sko sort kit</a> <a href="http://www.domodrzwi.com/elite-nike-white-mens-dorance-armstrong-jr-alternate-jersey-nfl-74-dallas-cowboys-throwback-nflu">elite nike white mens dorance armstrong jr alternate jersey nfl 74 dallas cowboys throwback</a> <a href="http://www.magneticduo.com/nike-hypervenom-phantom-white-blue-skou">nike hypervenom phantom white blue</a>
votuongluan http://www.votuongluan.com/
yankaripark
2019-01-27 11:52
<a href="http://www.hotelfuat.com/adidas-ultra-boost-leather-cage-cover-shoesf">adidas ultra boost leather cage cover</a> <a href="http://www.pmisaltriver.com/nike-alabama-hat-hats">nike alabama hat</a> <a href="http://www.ductambag.com/lebron-soldier-10-oregon-sneakere">lebron soldier 10 oregon</a> <a href="http://www.priverussia.com/adidas-zx-flux-kvinders-lyser%C3%B8d-and-sort-obuvd">adidas zx flux kvinders lyser酶d and sort</a> <a href="http://www.coatsfrance.com/fighting-irish-33-josh-adams-white-under-armour-stitched-ncaa-jersey-nflx">fighting irish 33 josh adams white under armour stitched ncaa jersey</a> <a href="http://www.intoloo.com/kirk-cousins-8-washington-redskins-jersey-nflv">kirk cousins 8 washington redskins jersey</a>
yankaripark http://www.yankaripark.com/
gfatraining
2019-01-16 09:41
<a href="http://www.denverbsm.com/dam%C3%A4nner-nike-free-5.0-marine-blau-schuhee">dam盲nner nike free 5.0 marine blau</a> <a href="http://www.filmtele.com/kvinders-nike-lunarglide-7-himmelbl%C3%A5-scarped">kvinders nike lunarglide 7 himmelbl氓</a> <a href="http://www.heppemobil.com/nfl-womens-nike-philadelphia-eagles-93-timmy-jernigan-green-rush-pride-name-number-t-shirt-nflx">nfl womens nike philadelphia eagles 93 timmy jernigan green rush pride name number t shirt</a> <a href="http://www.onlymytouch.com/nike-kings-5-deaaron-fox-green-salute-to-service-nba-swingman-jersey-nflz">nike kings 5 deaaron fox green salute to service nba swingman jersey</a> <a href="http://www.shelbycardall.com/air-jordan-retro-11-gold-lila-kurpesa">air jordan retro 11 gold lila</a> <a href="http://www.xhlvwang.com/herre-nike-dunk-gr%C3%A5-bl%C3%A5-butyf">herre nike dunk gr氓 bl氓</a>
gfatraining http://www.gfatraining.com/
dinerwaresb
2019-01-01 06:21
<a href="http://www.myfraimz.com/mens-nike-free-3.0-v5-pink-blue-runninge">mens nike free 3.0 v5 pink blue</a> <a href="http://www.winnercells.com/nike-kobe-10-gr%C3%B8n-r%C3%B8d-schuhea">nike kobe 10 gr酶n r酶d</a> <a href="http://www.atppest.com/vibram-fivefingers-flow-bleu-scarpeb">vibram fivefingers flow bleu</a> <a href="http://www.windriftbar.com/nike-air-max-95-green-spain-shoeso">nike air max 95 green spain</a> <a href="http://www.kidtokidboise.com/nike-free-flyknit-chukka-argento-rosso-kurpesc">nike free flyknit chukka argento rosso</a> <a href="http://www.mesmertronic.com/nike-air-force-1-high-mens-midnight-navyvarsity-maizewhite-zapatost">nike air force 1 high mens midnight navyvarsity maizewhite</a>
dinerwaresb http://www.dinerwaresb.com/
ictbel
2018-12-29 04:30
<a href="http://www.khalataxi.com/nike-free-balanza-brown-purple-sneakere">nike free balanza brown purple</a> <a href="http://www.miaclearbras.com/air-jordan-horizon-himmelbl%C3%A5-gul-kurpesa">air jordan horizon himmelbl氓 gul</a> <a href="http://www.divyangbazar.com/nike-roshe-white-aloha-sneakerb">nike roshe white aloha</a> <a href="http://www.dixiepundit.com/nike-free-blue-nike-running-shoesg">nike free blue nike running</a> <a href="http://www.ifshaildamage.com/oregon-bucket-hat-hats">oregon bucket hat</a> <a href="http://www.nanterrelec.com/nike-air-max-zero-grey-gold-sneakerf">nike air max zero grey gold</a>
[url=http://www.ictbel.com/]ictbel[/url]
filleselfie
2018-12-27 16:53
<a href="http://www.brentgattis.com/nike-air-max-1-maschio-nero-smoke-bianca-schuheg">nike air max 1 maschio nero smoke bianca</a> <a href="http://www.lfptrade.com/ralph-lauren-shorts-green-blue-polou">ralph lauren shorts green blue</a> <a href="http://www.phihochwei.com/air-max-2014-gr%C3%B8nn-bl%C3%A5-chaussuresa">air max 2014 gr酶nn bl氓</a> <a href="http://www.pobert.com/nike-air-presto-marine-blau-and-wei%C3%9F-schuhed">nike air presto marine blau and wei脽</a> <a href="http://www.qrsdeals.com/maschio-nike-air-max-2015-arancia-bianca-scarpea">maschio nike air max 2015 arancia bianca</a> <a href="http://www.taxhelpcentre.com/kvinners-nike-air-max-2014-oransje-svart-kurpesf">kvinners nike air max 2014 oransje svart</a>
filleselfie http://www.filleselfie.com/
网赚博客
2018-04-04 10:21
谢谢博主这篇文章解决了我的问题
作文代写
2018-03-15 22:31
感谢楼主的分享,赞赞。

发表评论:

Powered by emlog 冀ICP备13011830号-1