gpt4 book ai didi

ubuntu - 自动化 nginx/passenger 安装

转载 作者:行者123 更新时间:2023-12-04 18:52:43 27 4
gpt4 key购买 nike

我正在尝试通过运行以下命令来自动化 nginx/passenger 安装程序:

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"

最佳答案

it's got stuck at Where do you want to install Nginx to? It doesn't seem to be auto continuing like it should. Any ideas?



在帮助中,passenger-install-nginx-module 似乎需要 --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')

关于ubuntu - 自动化 nginx/passenger 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22152373/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com