2013-04-05 157 views
1

我已經安裝Lighttpd與Apache並行(使用端口80)。但開始的lighttpd給我一個錯誤Lighttpd - 無法啓動,無法綁定端口,拒絕權限

Starting lighttpd: 2013-04-05 15:56:17: (network.c.379) can't bind to port: 81 Permission denied 

變化我在lighttpd.conf提出:

server.port = 81 
server.use-ipv6 = "disable" 

缺少什麼我在這裏?我使用CentOS的6.3

netstat的-ltp結果:

Active Internet connections (only servers) 
Proto Recv-Q Send-Q Local Address    Foreign Address    State  PID/Program name 
tcp  0  0 localhost:smux    *:*       LISTEN  1947/snmpd   
tcp  0  0 *:mysql      *:*       LISTEN  15673/mysqld   
tcp  0  0 *:57071      *:*       LISTEN  1683/rpc.statd  
tcp  0  0 *:sunrpc     *:*       LISTEN  1665/rpcbind   
tcp  0  0 *:ndmp      *:*       LISTEN  2473/perl   
tcp  0  0 *:ssh      *:*       LISTEN  1959/sshd   
tcp  0  0 localhost:ipp    *:*       LISTEN  1829/cupsd   
tcp  0  0 localhost:smtp    *:*       LISTEN  2362/master   
tcp  0  0 *:sunrpc     *:*       LISTEN  1665/rpcbind   
tcp  0  0 *:http      *:*       LISTEN  15422/httpd   
tcp  0  0 *:45684      *:*       LISTEN  1683/rpc.statd  
tcp  0  0 *:ssh      *:*       LISTEN  1959/sshd   
tcp  0  0 localhost:ipp    *:*       LISTEN  1829/cupsd   
tcp  0  0 localhost:smtp    *:*       LISTEN  2362/master   
tcp  0  0 *:6556      *:*       LISTEN  1967/xinetd   
+1

你開始以root? – gipi 2013-04-05 08:16:22

+0

是的,我正在使用根。 – rechie 2013-04-05 08:16:58

+0

哪個輸出給你'netstat -ltp'或'lsof -i4tcp:81'? – gipi 2013-04-05 08:17:39

回答

0

我發現這個參考和解決我的問題。這個問題是由於阻止了SELinux的lighttpd使用端口81

[更新鏈接] https://www.visibilityspots.com/selinux.html

+0

鏈接似乎被打破。如果有更新的鏈接,你可以發佈更新的鏈接嗎? – 2013-06-17 01:20:20

+0

@jsve鏈接已更新。 – rechie 2013-06-17 08:25:48

相關問題