在 CEntOs 6 上运行 Puppet v2.7.14 并使用 Apache/Passenger 而不是 WEBrick。有人告诉我,使用 httpd 和乘客时puppetmaster不需要运行服务(因此chkconfig off puppetmaster:)运行,但在我的情况下,如果我不puppetmasterd手动启动,任何代理都无法连接到主服务器。我可以httpd很好地开始,“乘客”似乎也可以开始。这是我的 apache 配置文件:
# /etc/httpd/conf.d/passenger.conf 
LoadModule passenger_module modules/mod_passenger.so
<IfModule mod_passenger.c>
    PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12
    PassengerRuby /usr/bin/ruby
    #PassengerTempDir /var/run/rubygem-passenger
    PassengerHighPerformance on
    PassengerUseGlobalQueue on
    PassengerMaxPoolSize 15
    PassengerPoolIdleTime 150
    PassengerMaxRequests 10000
    PassengerStatThrottleRate 120
    RackAutoDetect Off
    RailsAutoDetect Off
</IfModule>
重新启动后,我在 httpd_error 日志中看到这些:
[Sat Jun 09 04:06:47 2012] [notice] caught SIGTERM, shutting down
[Sat Jun 09 09:06:51 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Jun 09 09:06:51 2012] [notice] Digest: generating secret for digest authentication ...
[Sat Jun 09 09:06:51 2012] [notice] Digest: done
[Sat Jun 09 09:06:51 2012] [notice] Apache/2.2.15 (Unix) DAV/2 Phusion_Passenger/3.0.12 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
并passenger-status在屏幕上打印这些信息:
----------- General information -----------
max      = 15
count    = 0
active   = 0
inactive = 0
Waiting on global queue: 0
----------- Application groups -----------
但是,正如我所说,在我手动启动puppetmasterd之前,我的任何代理都无法真正与主人交谈。有谁知道我还想念什么?或者,这也是它应该的方式吗?干杯!!