Puppet Master:TCPServer 错误:地址已在使用中 - 绑定(2) - WEBrick 1.3.1

Puppet Master:TCPServer 错误:地址已在使用中 - 绑定(2) - WEBrick 1.3.1

我重新启动了 Puppet Master 几次,但总是出现这个错误

[root@puppet-master04 ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
[root@puppet-master04 ~]# service puppetmaster restart
Stopping puppetmaster:                                     [FAILED]
Starting puppetmaster:                                     [  OK  ]
[root@puppet-master04 ~]# cd /var/log/puppet
[root@puppet-master04 puppet]# ls -lrt
total 16
-rw-rw----. 1 puppet puppet 6605 Sep  2 10:25 masterhttp.log-20150906
-rw-rw----. 1 puppet puppet  187 Sep 24 10:49 masterhttp.log-20150925
-rw-rw----. 1 puppet puppet  748 Nov  2 10:19 masterhttp.log
[root@puppet-master04 puppet]# tail -20 masterhttp.log
[2015-11-02 10:16:05] INFO  WEBrick 1.3.1
[2015-11-02 10:16:05] INFO  ruby 1.8.7 (2013-06-27) [x86_64-linux]
[2015-11-02 10:16:05] WARN  TCPServer Error: Address already in use - bind(2)
[2015-11-02 10:17:08] INFO  WEBrick 1.3.1
[2015-11-02 10:17:08] INFO  ruby 1.8.7 (2013-06-27) [x86_64-linux]
[2015-11-02 10:17:08] WARN  TCPServer Error: Address already in use - bind(2)
[2015-11-02 10:17:13] INFO  WEBrick 1.3.1
[2015-11-02 10:17:13] INFO  ruby 1.8.7 (2013-06-27) [x86_64-linux]
[2015-11-02 10:17:13] WARN  TCPServer Error: Address already in use - bind(2)
[2015-11-02 10:19:59] INFO  WEBrick 1.3.1
[2015-11-02 10:19:59] INFO  ruby 1.8.7 (2013-06-27) [x86_64-linux]
[2015-11-02 10:19:59] WARN  TCPServer Error: Address already in use - bind(2)

哪个端口已被使用?我们使用RHEL6。

答案1

看来您正在尝试启动木偶大师两次:

  • 首先来自 httpd ,我认为您正在使用乘客来启动 puppetmaster
  • 其次直接启动puppet master服务

既然你不知道你想要什么:),我会请安装它的人告诉你哪一个是正确的。我认为是 httpd 。

相关内容