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 。

相關內容