免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6990 | 回复: 8
打印 上一主题 下一主题

[网络配置] LDAP不能启动??? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-05-20 13:45 |只看该作者 |倒序浏览
用phpLDAPadmin管理LDAP,之前还好着呢,能添加条目,一切正常。可现在出问题了~!
说:Could not connect to "127.0.0.1" on port "389"

在网上找了这种启动方法,结果如下:
[root@localhost libexec]# ./slapd -d 256
@(#) $OpenLDAP: slapd 2.3.31 (May  1 2012 02:00:49) $
        root@localhost.localdomain:/opt/openldap-2.3.31/servers/slapd
daemon: bind(7) failed errno=98 (Address already in use)
daemon: bind(7) failed errno=98 (Address already in use)
slapd stopped.
connections_destroy: nothing to destroy.
[root@localhost libexec]#

为什么LDAP没启动成功呢?我防火墙也关了呀?为什么之前没有问题,而现在出现问题了?
求大神指教啊~~~小女子感激不尽~~~~

论坛徽章:
0
2 [报告]
发表于 2012-05-20 15:21 |只看该作者
这里大概有你要的解决方法吧
http://www.chinaunix.net/jh/49/387214.html
netstat -ant看看是不是已经启动了一个进程占用了端口了。

论坛徽章:
0
3 [报告]
发表于 2012-05-20 16:00 |只看该作者
回复 2# anonymous0502


    [root@localhost /]# netstat -ant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State      
tcp        0      0 0.0.0.0:672                 0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      
tcp        0      0 :::3306                     :::*                        LISTEN      
tcp        0      0 :::80                       :::*                        LISTEN      
tcp        0      0 :::21                       :::*                        LISTEN      
tcp        0      0 :::22                       :::*                        LISTEN      
tcp        0      0 :::443                      :::*                        LISTEN      


389没有被占用吧?~~~

论坛徽章:
0
4 [报告]
发表于 2012-05-20 16:27 |只看该作者
可能是你的配置文件多了空格,或者是ipv6问题,或者是其他原因:
看看这个试试别人说的方法:
http://lists.arthurdejong.org/op ... 03/01/msg00034.html

论坛徽章:
0
5 [报告]
发表于 2012-05-20 22:41 |只看该作者
回复 4# anonymous0502


    Ipv6?怎么关呢?~

论坛徽章:
0
6 [报告]
发表于 2012-05-21 09:12 |只看该作者
I found the problem. I had whitespace in front of: rootpw         secret
In the slapd.conf file. I removed the whitespace and restarted ldap, tested
ldapadd and it worked fine. Thanks to everyone who responded earlier!
这个你检查过了不是这里的原因?

论坛徽章:
0
7 [报告]
发表于 2012-05-21 09:58 |只看该作者
回复 6# anonymous0502


    不是这的问题~我用的Tab,不是空格

论坛徽章:
0
8 [报告]
发表于 2012-05-21 10:13 |只看该作者
这好象是异常退出导致的socket绑定问题,ldap估计没进行端口复用,你可以用service network restart重启下网络,再启动服务。

论坛徽章:
0
9 [报告]
发表于 2012-05-21 10:24 |只看该作者
可能如楼上所说的

但是这一段貌似说的是可能程序配置成支持某种协议而os不支持,只是说最可能是ipv6,而不是说要把os的ipv6关掉。
This message indicates that the operating system does not support one of the (protocol) address families which slapd( was configured to support. Most commonly, this occurs when slapd( was configured to support IPv6 yet the operating system kernel wasn't. In such cases, the message can be ignored.

看你的实际情况了
如果你确实想要把ipv6 disable,可以看看这个:
https://www.redhat.com/archives/ ... March/msg00021.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP