# 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 80
可以将Listen 80后面的80改为你需要的端口8080即可。
然后访问的时候在浏览器中输入http:/localhost:端口号。
以上就是php怎么改端口的详细内容,更多请关注Gxl网其它相关文章!
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did62278