您好,欢迎访问一九零五行业门户网

WampServer端口的批改

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
其它类似信息

推荐信息