【发布时间】:2012-06-09 08:33:32
【问题描述】:
在 CEntOs 6 上运行 Puppet v2.7.14 并使用 Apache/Passenger 代替 WEBrick。我被告知 puppetmaster 服务在使用 httpd 和乘客时不需要运行(因此:chkconfig off puppetmaster)运行,但在我的情况下,如果我不启动 @987654323 @ 手动,没有一个代理可以连接到主节点。我可以开始httpd 就好了,'passenger' 似乎也可以开始了。这是我的 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 之前,我的任何代理都无法真正与主人交谈。有谁知道我还想念什么?或者,这也是它应该的方式吗?干杯!!
【问题讨论】: