Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.7k views
in Technique[技术] by (71.8m points)

apache 无法更改端口号

在win10下使用apache,设置好了httpd.confSRVROOT,
servername设置成localhost或者是localhost:8888之类的,listen参数也跟着一起设置,但是无论如何,都只能在localhost上看到"it works",加任何端口号都没办法访问,
不知道是哪里出了问题


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

看意思应该是更改后没有生效,猜想可能的原因如下:

  1. 你装了多个http服务,而更改的这个apache并非工作在80端口的那个。所以你无论怎么变更当前的配置文件,都不会起作用。
  2. 你可能忘了重新启动apache以让它重新加载配置文件了。
  3. 配置文件变更后,你忘了保存配置文件了

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...