vin*_*bel 1 web-hosting httpd centos port
我在 CentOS 6.6 上运行 httpd。我已经成功地在端口 80 上建立了一个站点,但现在我希望在端口 82 上拥有该站点,因此当我<myip>:82
在浏览器中键入时,我可以查看该站点,但不能查看<myip>:80
或<myip>
.
在我的httpd.conf
文件中,我已更改Listen 192.168.1.18:80
为Listen 192.168.1.18:82
,并且已在路由器上转发端口 82。但是当我尝试重新启动该过程时,它会出现以下错误:
(13)Permission denied: make_sock: could not bind to address 192.168.1.18:82
no listening sockets available, shutting down
Run Code Online (Sandbox Code Playgroud)
我是否必须在其他任何地方http.conf
或其他地方将端口更改为 82 ?在端口 80 上一切正常。对不起,如果我不够清楚,如果需要,我会澄清更多信息。