Lighttpd - 无法启动,无法绑定端口,拒绝权限
问题描述:
我已经安装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
答
我发现这个参考和解决我的问题。这个问题是由于阻止了SELinux的lighttpd使用端口81
+0
链接似乎被打破。如果有更新的链接,你可以发布更新的链接吗? – 2013-06-17 01:20:20
+0
@jsve链接已更新。 – rechie 2013-06-17 08:25:48
你开始以root? – gipi 2013-04-05 08:16:22
是的,我正在使用根。 – rechie 2013-04-05 08:16:58
哪个输出给你'netstat -ltp'或'lsof -i4tcp:81'? – gipi 2013-04-05 08:17:39