架设服务器80端口被占用的解决方法

最近把注意力集中到了网络新鲜事上面,逐渐的忘记了,原来我还是很喜欢技术的。嘿嘿,自恋下。

 

今天配置wamp,发现apache怎么也不给力,总是处于未启动状态,橘黄色的wamp图标在我看来,格外刺眼。怎么办?怎么办??

好吧,进入正题,遇到apache无法启动的问题,首先考虑两点:

1、apache配置错误,常见于擅自改动了apache配置文件(httpd.conf)的同学。

2、端口占用,此时同学们应该关闭一切可能占用80端口的程序,比如迅雷什么的,因为wamp默认的端口就是80端口。

好了,这篇文章到这里应该就完了,但是并没有。因为有同学反映,就算注销了电脑什么都不开,照样不能启动wamp!!

那么我们来分析,为什么还不能启动,不错,还是端口被占用了,照这个思路下去,我们应该找个办法干掉那个占用了80端口的程序才行,恩,这样我们应该先找到是何方神圣占用了80端口。

方法如下:

1、不关你事win7还是XP,你都能找到开始摁钮吧?点击开始,然后win7在最下方是一个输入框,XP需要先点击“运行”,才出来输入框;就是这个输入框,你可以先盯着他看几秒,因为这里很关键,作为高手,或者伪高手都需要知道,windows命令是从这里输入开始的。步入正题,在这个输入框输入我们的第一个命令:CMD,然后回车。

 

2、现在出现在你眼前的是一个黑色的很不友好的文本框,这里很多童鞋会不由得心慌:擦,这么不友好,这不是黑客来的地方吗?哈哈,好了,再照我说的做,在这个黑色的命令行界面,你可以看到一个光标在闪,那里,你输入我们的第二个命令:netstat  -ao,注意,中间有个空格。

3、然后在我们面前的会是列出一个长长的表单,其中第一列是本地地址例如127.0.0.1:987,前边这一串是IP地址,冒号后面那个是正在被占用的端口。我们需要找出80端口的那一行,然后记下他的PID。比如我的这个图中端口445的这一行,他的pid是4。

4、最后一步,也是很关键的一步,那就是打开资源管理器。很简单alt+ctrl+delete。出现如图界面:

然后,点击进程,找到PID为4的那个进程干掉他!!干掉他!!

哎~什么?没看见PID这一列?我擦,好吧,忘记说了,在资源管理器菜单中点击“查看”——“选择列”在“PID(进程标示符)”上面点勾。

这下有了吧。哈哈。

先别结束那个进程!!会蓝屏的,看到了么?我这个PID为4的映像名字是system啊!!!system啊,有木有啊!!这是个系统进程啊!!擅自结束会死机的啊!!!好吧,这里再给大家多说几句,如果进程名字后面有.exe,也就是程序,大家可以干掉他!但是,系统,建议大家不要动了。。

好吧,如果大家遇到80端口也被这种霸气外泄的系统进程占用了怎么办捏?

很简单,我们可以通过别的方法搞定啊!

在刚才那个输入CMD的输入框里面输入:RegEdit,回车,
找到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP
找到一个DWORD值Start,将其改为0

重启电脑,好了,System进程将不会占用80端口。

终于结束了,这样大家应该很清除怎么搞定80端口被占用了吧。

前几天科技协会的一个童鞋发明了另外一种方法,采取的是敌不动我动的战术:他改掉了apache的默认端口!真是英雄出少年呐,果然思路广阔!不过这样意味着你查看本地网站的时候需要输入你改过的端口了,比如你把80改成了88,本来我们查看本地网址:http://localhost或者http://127.0.0.1,现在你需要输入:http://localhost:88或者http://127.0.0.1:88,查看其他的也是如此。

好了就写到这里吧。

希望这篇小文能对大家配置服务器起到指导作用。呵呵。、

保留版权,转载,请注明:转自Raincy科技

 

 

已留下 548 个脚印

  1. car insurance in florida car insurance progressive auto insurance login [url=https://car-insurance.us.org]best auto insurance companies 2018[/url]

  2. wh0cd128384 [url=http://buyarimidex.us.com/]where to buy arimidex[/url] [url=http://cialis.us.org/]CHEAP CIALIS[/url]

  3. wh0cd128384 [url=http://albuterol18.us.com/]albuterol[/url] [url=http://buycialis.us.org/]buy cialis[/url] [url=http://propecia.us.com/]view homepage[/url] [url=http://buyhydrochlorothiazide.us.com/]Hydrochlorothiazide[/url] [url=http://robaxin.us.com/]robaxin online[/url] [url=http://buyvermox.us.com/]mebendazole tablets[/url] [url=http://ciprofloxacin500mg.us.com/]ciprofloxacin antibiotic[/url] [url=http://buyproscar.us.com/]buy proscar[/url] [url=http://ventolin.us.org/]ventolin[/url] [url=http://cialis.us.org/]cialas[/url] [url=http://buycolchicine.us.com/]colchicine prices[/url] [url=http://arthritispillsnow.com/]celebrex 400 mg[/url] [url=http://abilify.us.org/]abilify by mail[/url] [url=http://buyamitriptyline.us.com/]Generic Amitriptyline[/url]

  4. wh0cd128384 [url=http://buycialis.us.org/]buy cialis[/url] [url=http://cheapviagra.us.org/]Cheap Viagra[/url] [url=http://buyaugmentin.us.com/]buy augmentin[/url] [url=http://buyproscar.us.com/]proscar cost[/url] [url=http://amoxicillinbestprice.us.com/]amoxacillian without a percription[/url]

  5. loans no credit check payday loans loan unsecured [url=https://loans.us.com]loan[/url]

  6. wh0cd128384 [url=http://albendazole2018.us.com/]Albendazole[/url] [url=http://buyproscar.us.com/]BUY PROSCAR[/url] [url=http://atenolol.us.org/]atenolol[/url] [url=http://acyclovir2018.us.com/]aciclovir[/url] [url=http://buytenormin.us.com/]tenormin visa[/url] [url=http://buyviagraonline.us.com/]viagra mastercard[/url] [url=http://buyarimidex.us.com/]anastrozole[/url] [url=http://buymethotrexate.us.com/]buy methotrexate[/url]

  7. wh0cd128384 [url=http://buyclomidonline.store/]order clomid online[/url] [url=http://cipro.doctor/]cipro[/url] [url=http://vardenafil.blue/]vardenafil hcl 20mg tab[/url] [url=http://tetracycline.promo/]tetracycline[/url] [url=http://sildenafil.rent/]sildenafil[/url] [url=http://xenical.vip/]xenical[/url] [url=http://prednisone10mg.store/]10mg prednisone[/url] [url=http://vardenafil.college/]vardenafil hcl 20mg tab[/url] [url=http://cephalexin.pet/]cephalexin[/url] [url=http://advaircost.store/]advair cost[/url] [url=http://toprolxl2018.live/]toprol xl 50 mg[/url] [url=http://synthroid.tips/]synthroid[/url] [url=http://cialisdaily.store/]cialis daily[/url] [url=http://prednisolone.actor/]prednisolone[/url] [url=http://dapoxetine.doctor/]dapoxetine[/url]

  8. wh0cd128384 [url=http://bupropionsr150mg.store/]buy bupropion online[/url] [url=http://tamoxifen.doctor/]where to buy tamoxifen[/url] [url=http://retina.actor/]buy tretinoin[/url] [url=http://diclofenac.doctor/]diclofenac 50mg[/url] [url=http://albuterolonline.store/]generic albuterol[/url] [url=http://priceoflevitra.store/]levitra[/url] [url=http://augmentinonline.shop/]augmentin no prescription[/url] [url=http://sildenafil.ninja/]sildenafil tablets 100 mg[/url] [url=http://valtrex.vip/]valtrex cost[/url] [url=http://cephalexin.promo/]cephalexin[/url] [url=http://diflucanonline.store/]can you buy diflucan without a prescription[/url] [url=http://sildenafil.rent/]sildenafil[/url] [url=http://accutane.auction/]roaccutane[/url]

  9. paper writing services which essay writing service is the best paper writing services [url=https://paperwritingservices.us.com]write papers for money[/url]

  10. wh0cd128384 [url=http://levitra20mg.us.com/]levitra 20 mg[/url] [url=http://ciprofloxacin500mg.us.com/]related site[/url] [url=http://buycolchicine.us.com/]colchicine[/url] [url=http://buyaugmentin.us.com/]augmentin no script[/url] [url=http://accutane18.us.org/]accutane 30 mg[/url] [url=http://acyclovir.us.com/]acyclovir[/url]

  11. wh0cd128384 [url=http://nexium.us.com/]esomeprazole[/url] [url=http://buywellbutrin.us.com/]buy wellbutrin[/url] [url=http://buyphenergan.us.com/]generic phenergan[/url]

  12. gundry foods to avoid steven gundry md dr gundry breakfast [url=https://lectins.us.com]prebiotics definition[/url]

  13. wh0cd128384 [url=http://buylipitor.us.com/]buy lipitor[/url] [url=http://genericcialis.us.org/]Cialis 20 Mg[/url] [url=http://buytetracycline.us.com/]where to buy tetracycline[/url] [url=http://accutane18.us.org/]accutane without prescription[/url] [url=http://robaxin.us.com/]robaxin with no script[/url] [url=http://buycytotec.us.com/]BUY CYTOTEC[/url] [url=http://tadalafil.us.org/]Buy Tadalafil[/url] [url=http://albuterol18.us.com/]albuterol prices[/url] [url=http://proscar.us.com/]Proscar[/url] [url=http://buysuhagra.us.com/]buy suhagra[/url] [url=http://buydiflucan.us.com/]fluconazole[/url]

  14. installment payday loan credit loans guaranteed approval credit loans guaranteed approval [url=https://creditloansguaranteedapproval.us.com]credit loans guaranteed approval[/url]

  15. wh0cd128384 [url=http://buycialis.us.org/]cialis[/url]

  16. cheapest car insurance companies cheapest car insurance companies cheap full coverage auto insurance [url=https://cheapestautoinsurance.us.com]cheapest car insurance companies[/url]

  17. wh0cd128384 [url=http://buyviagra.us.org/]where can you buy viagra[/url] [url=http://buytetracycline.us.com/]buy tetracycline[/url] [url=http://albuterolbestprice.us.com/]albuterol inhaler[/url] [url=http://cialis20mg.us.com/]cialis 100mg[/url] [url=http://antabuse2018.us.com/]Antabuse[/url] [url=http://proscar.us.com/]Generic Proscar[/url] [url=http://buylevitra.us.org/]levitra[/url] [url=http://cheapviagra.us.org/]Viagra Best Prices[/url] [url=http://levitra.us.org/]generic levitra[/url] [url=http://albendazole2018.us.com/]albenza over the counter[/url] [url=http://buyarimidex.us.com/]learn more[/url] [url=http://costofviagra.us.com/]cost of viagra[/url] [url=http://sildenafil.us.org/]sildenafil over counter[/url] [url=http://augmentin.us.com/]buy augmentin[/url] [url=http://buyprozac.us.com/]Order Prozac[/url]

  18. car insurance in texas car insurance progressive motorcycle insurance [url=https://car-insurance.us.org]car insurance in michigan[/url]

  19. wh0cd128384 [url=http://sildenafil.toys/]sildenafil[/url] [url=http://sildenafil.rent/]sildenafil[/url] [url=http://bupropion.doctor/]bupropion hydrochloride[/url] [url=http://costofabilify.store/]abilify[/url] [url=http://zithromax.doctor/]zithromax[/url] [url=http://lisinoprilgeneric.store/]lisinopril online[/url] [url=http://genericrevia.store/]revia[/url] [url=http://vardenafil.pink/]vardenafil[/url]

  20. money fast money fast borrow money [url=https://cashnow.us.org]online loans bad credit[/url]

  21. auto insurance comparison car insurance comparison car insurance comparisons [url=https://comparecarinsurance2018.us.com]car insurance comparison[/url]

  22. payday lending payday loans washington state net pay advance [url=https://paydaylending.us.org]payday loan direct lender[/url]

  23. wh0cd128384 [url=http://buyviagraonline.us.com/]Viagra Over The Counter[/url] [url=http://abilify.us.org/]cheap abilify[/url]

  24. steven gundry probiotics supplements doctor gundry [url=https://probiotics.us.com]probiotics for women[/url]

  25. wh0cd128384 [url=http://lasix.rocks/]lasix[/url] [url=http://bentylpills.store/]bentyl pills[/url] [url=http://cephalexin.auction/]cephalexin[/url] [url=http://lisinopril.rent/]lisinopril[/url] [url=http://priceoflevitra.store/]levitra coupons[/url] [url=http://valtrexprice.store/]valtrex price[/url] [url=http://clonidinehydrochloride.store/]clonidine hydrochloride[/url] [url=http://cymbaltaprice.store/]cymbalta price[/url] [url=http://tetracyclineonline.store/]tetracycline[/url] [url=http://bentyloral.store/]buy bentyl[/url] [url=http://synthroid.pet/]synthroid[/url]

  26. money loans no credit check loans with no credit loans no credit [url=https://loansnocredit.us.com]loans no credit[/url]

  27. loans unsecured best cash loans secured loans [url=https://loans2018.us.com]loans[/url]

  28. unsecured loan loans consolidated loans for bad credit [url=https://loans2018.us.com]loans in chicago[/url]

  29. loans loans secured loans [url=https://loans2018.us.com]online loans instant approval no credit check[/url]

  30. installment loans installment loans no credit installment loans [url=https://installment-loans.us.com]installment loans online[/url]

  31. wh0cd128384 [url=http://ventolin.rent/]here i found it[/url] [url=http://elimiteonline.store/]buy elimite[/url] [url=http://baclofen.pub/]baclofen[/url] [url=http://doxycycline.pet/]doxycycline[/url] [url=http://baclofen.band/]purchase baclofen[/url] [url=http://seroquel.doctor/]seroquel[/url]

  32. polyphenol foods polyphenols foods diet evolution [url=https://polyphenolsfoods.us.com]polyphenols foods[/url]

  33. best debt consolidation loans loans loans with low interest [url=https://7loans.us.com]holiday loans[/url]

  34. 野外拉练,在于锻炼海归们的野外生存,野外行军,野外通讯,以及突发情况的应对之类,教官们身传言教,在每个纵队挑选3名尖兵,组成5组斥候,分别向东南西北搜索一公里。

  35. payday loans no teletrack debt consolidation loan payday loans bc [url=https://7loans.us.com]loans with low interest rates[/url]

  36. loans no checking account required payday loans bad credit pay day [url=https://loansfor.cars]payday loans[/url]

  37. 受教了…..

留下足迹

网站地图