通过脚本自动安装ClickHouse,如何回答关于默认密码的问题

huangapple go评论57阅读模式
英文:

Automatic installation of clickhouse via script, how to answer the question about the default password

问题

我有一个问题:
我需要安装 clickhouse-server 通用版和客户端。我需要将这些添加到我的自动安装脚本中,
问题是,在安装软件包的过程中,它要求“输入默认密码”,我只需指定“输入”留空,如何进行自动回复。必须首先期望并包含一个单独的文件与安装程序。
也许有人有解决方案?

我使用了expect,但对我来说似乎相当不方便,我必须创建一个单独的文件,以便它读取执行我的脚本。

英文:

I have a question:
I need to install clickhouse-server generic and client. I need to add this to my autoinstall script,
The problem is that during the installation of the package it asks for "Enter the default password", I just need to specify "enter" it blank, how do I auto-reply. one must first expect and include a separate file with the installer.
Maybe someone else has a solution?

I used expect, But it's rather inconvenient as it seems to me, I have to create a separate file so that it reads the execution of my script

答案1

得分: 1

ClickHouse 尊重 DEBIAN_FRONTEND

https://www.cyberciti.biz/faq/explain-debian_frontend-apt-get-variable-for-ubuntu-debian/

DEBIAN_FRONTEND=noninteractive apt-get install ....
英文:

Clickhouse respects DEBIAN_FRONTEND

https://www.cyberciti.biz/faq/explain-debian_frontend-apt-get-variable-for-ubuntu-debian/

DEBIAN_FRONTEND=noninteractive apt-get install ....

huangapple
  • 本文由 发表于 2023年2月16日 13:10:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/75468076.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定