2014-03-03 85 views
1

我试图通过运行以下命令来自动执行的nginx /乘客安装程序:nginx的自动化/乘客安装

passenger-install-nginx-module --auto --auto-download --extra-configure-flags=none --languages ruby 

我使用Ansible所以有运行该命令任务配置我的服务器。任务运行但从未结束。我看不出安装程序是否正在等待任何答案,但我的猜测是它可能是,但我不知道是什么?

我运行了命令--help,它给了我一个传递给命令的标志列表,这些标志都已经设置好了,但没有什么区别。

关于它可能在等待什么的想法?

的Ansible任务是如下:

- name: Passenger and Nginx 
    shell: bash -lc "passenger-install-nginx-module --auto --auto-download --extra-configure-flags=none --languages ruby" 
+0

也许它只是需要很长时间编译的? – Hongli

+0

如果这是正确的,那么它仍然从我发布消息的时候开始。 – rctneil

+0

我格式化了我的服务器并重新启动并运行了我的Ansible脚本并启动了乘客/ nginx交互式安装程序,我给出的答案被自动执行,但我没有安装机架。我在安装机架任务之前移动了我的剧本中的乘客/ nginx任务并重新运行了它,但现在只是停止不显示安装程序。我猜这是因为他已经部分安装了。我怎样才能让它完全做到这一点,而不必求助于格式化服务器并重新开始? – rctneil

回答

0

它被卡在那里你想Nginx的安装到?它似乎不像自动继续。有任何想法吗?

如帮助下,乘客的install-nginx的模块似乎需要--prefix=代替 要求它交互

> passenger-install-nginx-module --help 
Usage: passenger-install-nginx-module [options] 

Options: 
    --auto      Automatically confirm 'Press ENTER to 
           continue' prompts. 
    --prefix=DIR     Use the given Nginx install prefix instead 
           of asking for it interactively. 
    --auto-download    Download and install Nginx automatically, 
           instead of asking interactively whether to 
           download+install or to use an existing 
           Nginx source directory. 
    --extra-configure-flags=STRING 
           Pass these extra flags to Nginx's 
           'configure' script, instead of asking for 
           it interactively. Specify 'none' if you 
           do not want to pass additional flags but do 
           not want this installer to ask 
           interactively either. 
    --languages NAMES   Comma-separated list of interested 
           languages (e.g. 
           'ruby,python,nodejs,meteor')