>  기사  >  백엔드 개발  >  WampServer端口的批改

WampServer端口的批改

WBOY
WBOY원래의
2016-06-13 12:07:25866검색

WampServer端口的修改
端口被占用了,要怎么讲80改为90?
httpd.conf文件要改那些?
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 0.0.0.0:80
Listen [::0]:80
#
# Dynamic Shared Object (DSO) Support
#
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:80
HostnameLookups Off

httpd-ssl.conf文件中
Listen 443
##
##  SSL Global Context
##
##  All SSL configuration in this context applies both to
##  the main server and all SSL-enabled virtual hosts.
##


#   General setup for the virtual host
DocumentRoot "c:/Apache24/htdocs"
ServerName www.example.com:443
ServerAdmin [email protected]
ErrorLog "c:/Apache24/logs/error.log"
TransferLog "c:/Apache24/logs/access.log"
#   SSL Engine Switch:
#   Enable/Disable SSL for this virtual host.
SSLEngine on


------解决思路----------------------
1.在cmd 执行  netstat -o -an >c:\ip.txt
2.去c盘下找到ip.txt,找到端口=80的pid
3.在任务管理器查看pid的进程名称,是否为httpd。

------解决思路----------------------
Listen 0.0.0.0:90
Listen [::0]:90
ServerName localhost:90

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.