试图在Vangrant框中设置无人值守的ArangoDB安装。我遵循了无人值守的安装说明:https://docs.arangodb.com/3.1/Manual/GettingStarted/Installing/Linux.html
但是,这说明密码提示,而不是数据库升级和备份数据库文件提示。怎么才能让这些声音安静下来呢?
发布于 2017-06-27 20:55:54
好吧我想明白了。基本上,您需要使用以下命令:
sudo debconf-get-selections | grep arangodb3如果您得到一个“debconf get -selections命令not”,那么您需要安装这样的debconf utils包: sudo apt-get install -y debconf-utils
这就会列出这样的清单:
arangodb3 arangodb3/password password
arangodb3 arangodb3/password_again password
arangodb3 arangodb3/backup boolean false
arangodb3 arangodb3/password_mismatch error
arangodb3 arangodb3/upgrade boolean true这些是设置无人值守安装所需的所有键和类型。当我说键和类型时,我指的是:
package/key type
arangodb3/backup boolean在上面的示例中,包是arangodb3,键是备份,类型是布尔型。然后,在您的安装脚本中,您需要像这样将它包含在所选的值中:
echo arangodb3 arangodb3/backup boolean false | debconf-set-selections
echo arangodb3 arangodb3/upgrade boolean true | debconf-set-selections发布于 2018-12-06 11:45:04
除了斯皮内霍的回答之外,我还必须设置以下所有选项,以便在无人参与的情况下运行版本3.3.19的安装:
RUN echo arangodb3 arangodb3/password string somepassword | debconf-set-selections
RUN echo arangodb3 arangodb3/password_again string somepassword | debconf-set-selections
RUN echo arangodb3 arangodb3/upgrade boolean true | debconf-set-selections
RUN echo arangodb3 arangodb3/storage_engine string 1 | debconf-set-selections
RUN echo arangodb3 arangodb3/backup boolean false | debconf-set-selections这些选择可以在:https://github.com/arangodb/arangodb/blob/master/Installation/debian/config.in中找到。
https://stackoverflow.com/questions/44787938
复制相似问题