ubuntu 离线安装clickhouse
·
Linux bogon 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Oct 20 21:22:21 2024 from 192.168.88.3
root@bogon:~# ls
clickhouse-client_24.2.1.2248_amd64.deb clickhouse-common-static_24.2.1.2248_amd64.deb clickhouse-server_24.2.1.2248_amd64.deb
root@bogon:~#
root@bogon:~#
root@bogon:~# ls
clickhouse-client_24.2.1.2248_amd64.deb clickhouse-common-static_24.2.1.2248_amd64.deb clickhouse-server_24.2.1.2248_amd64.deb
root@bogon:~# ls
clickhouse-client_24.2.1.2248_amd64.deb clickhouse-common-static_24.2.1.2248_amd64.deb clickhouse-server_24.2.1.2248_amd64.deb
root@bogon:~# dpkg -i clickhouse-common-static_24.2.1.2248_amd64.deb
正在选中未选择的软件包 clickhouse-common-static。
(正在读取数据库 ... 系统当前共安装有 153432 个文件和目录。)
准备解压 clickhouse-common-static_24.2.1.2248_amd64.deb ...
正在解压 clickhouse-common-static (24.2.1.2248) ...
正在设置 clickhouse-common-static (24.2.1.2248) ...
root@bogon:~# clickhouse
clickhouse clickhouse-extract-from-config clickhouse-odbc-bridge
clickhouse-diagnostics clickhouse-library-bridge
root@bogon:~# ls
clickhouse-client_24.2.1.2248_amd64.deb clickhouse-common-static_24.2.1.2248_amd64.deb clickhouse-server_24.2.1.2248_amd64.deb
root@bogon:~# dpkg -i clickhouse-server_24.2.1.2248_amd64.deb
正在选中未选择的软件包 clickhouse-server。
(正在读取数据库 ... 系统当前共安装有 153462 个文件和目录。)
准备解压 clickhouse-server_24.2.1.2248_amd64.deb ...
正在解压 clickhouse-server (24.2.1.2248) ...
正在设置 clickhouse-server (24.2.1.2248) ...
ClickHouse binary is already located at /usr/bin/clickhouse
Symlink /usr/bin/clickhouse-server already exists but it points to /clickhouse. Will replace the old symlink to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-server to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-client to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-local to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-benchmark to /usr/bin/clickhouse.
Symlink /usr/bin/clickhouse-copier already exists but it points to /clickhouse. Will replace the old symlink to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-copier to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-obfuscator to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-git-import to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-compressor to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-format to /usr/bin/clickhouse.
Symlink /usr/bin/clickhouse-extract-from-config already exists but it points to /clickhouse. Will replace the old symlink to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-extract-from-config to /usr/bin/clickhouse.
Symlink /usr/bin/clickhouse-keeper already exists but it points to /clickhouse. Will replace the old symlink to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-keeper to /usr/bin/clickhouse.
Symlink /usr/bin/clickhouse-keeper-converter already exists but it points to /clickhouse. Will replace the old symlink to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-keeper-converter to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-disks to /usr/bin/clickhouse.
Creating symlink /usr/bin/ch to /usr/bin/clickhouse.
Creating symlink /usr/bin/chl to /usr/bin/clickhouse.
Creating symlink /usr/bin/chc to /usr/bin/clickhouse.
Creating clickhouse group if it does not exist.
groupadd -r clickhouse
Creating clickhouse user if it does not exist.
useradd -r --shell /bin/false --home-dir /nonexistent -g clickhouse clickhouse
Will set ulimits for clickhouse user in /etc/security/limits.d/clickhouse.conf.
Creating config directory /etc/clickhouse-server/config.d that is used for tweaks of main server configuration.
Creating config directory /etc/clickhouse-server/users.d that is used for tweaks of users configuration.
Config file /etc/clickhouse-server/config.xml already exists, will keep it and extract path info from it.
/etc/clickhouse-server/config.xml has /var/lib/clickhouse/ as data path.
/etc/clickhouse-server/config.xml has /var/log/clickhouse-server/ as log path.
Users config file /etc/clickhouse-server/users.xml already exists, will keep it and extract users info from it.
Creating log directory /var/log/clickhouse-server/.
Creating data directory /var/lib/clickhouse/.
Creating pid directory /var/run/clickhouse-server.
chown -R clickhouse:clickhouse '/var/log/clickhouse-server/'
chown -R clickhouse:clickhouse '/var/run/clickhouse-server'
chown clickhouse:clickhouse '/var/lib/clickhouse/'
groupadd -r clickhouse-bridge
useradd -r --shell /bin/false --home-dir /nonexistent -g clickhouse-bridge clickhouse-bridge
chown -R clickhouse-bridge:clickhouse-bridge '/usr/bin/clickhouse-odbc-bridge'
chown -R clickhouse-bridge:clickhouse-bridge '/usr/bin/clickhouse-library-bridge'
Enter password for the default user:
Password for the default user is an empty string. See /etc/clickhouse-server/users.xml and /etc/clickhouse-server/users.d to change it.
Setting capabilities for clickhouse binary. This is optional.
chown -R clickhouse:clickhouse '/etc/clickhouse-server'
ClickHouse has been successfully installed.
Start clickhouse-server with:
sudo clickhouse start
Start clickhouse-client with:
clickhouse-client
Synchronizing state of clickhouse-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable clickhouse-server
Created symlink /etc/systemd/system/multi-user.target.wants/clickhouse-server.service → /lib/systemd/system/clickhouse-server.service.
root@bogon:~# dpkg -i clickhouse-client_24.2.1.2248_amd64.deb
正在选中未选择的软件包 clickhouse-client。
(正在读取数据库 ... 系统当前共安装有 153480 个文件和目录。)
准备解压 clickhouse-client_24.2.1.2248_amd64.deb ...
正在解压 clickhouse-client (24.2.1.2248) ...
正在设置 clickhouse-client (24.2.1.2248) ...
root@bogon:~#
root@bogon:~# find / -name clickhouse*
find: paths must precede expression: `clickhouse-common-static_24.2.1.2248_amd64.deb'
find: possible unquoted pattern after predicate `-name'?
root@bogon:~# find / -name 'clickhouse*'
/run/clickhouse-server
find: ‘/run/user/117/gvfs’: 权限不够
/etc/init.d/clickhouse-server
/etc/security/limits.d/clickhouse.conf
/etc/clickhouse-client
/etc/clickhouse-server
/etc/systemd/system/multi-user.target.wants/clickhouse-server.service
/etc/clickhouse-keeper
/var/lib/dpkg/info/clickhouse-server.md5sums
/var/lib/dpkg/info/clickhouse-common-static.md5sums
/var/lib/dpkg/info/clickhouse-server.conffiles
/var/lib/dpkg/info/clickhouse-server.list
/var/lib/dpkg/info/clickhouse-server.postinst
/var/lib/dpkg/info/clickhouse-common-static.list
/var/lib/dpkg/info/clickhouse-client.conffiles
/var/lib/dpkg/info/clickhouse-client.md5sums
/var/lib/dpkg/info/clickhouse-client.list
/var/lib/dpkg/info/clickhouse-common-static.conffiles
/var/lib/clickhouse
/var/log/clickhouse-server
/var/log/clickhouse-keeper
/usr/share/doc/clickhouse-client
/usr/share/doc/clickhouse-server
/usr/share/doc/clickhouse-common-static
/usr/share/bash-completion/completions/clickhouse-local
/usr/share/bash-completion/completions/clickhouse-client
/usr/share/bash-completion/completions/clickhouse-bootstrap
/usr/share/bash-completion/completions/clickhouse-benchmark
/usr/share/bash-completion/completions/clickhouse
/usr/share/clickhouse
/usr/lib/systemd/system/clickhouse-keeper.service
/usr/lib/systemd/system/clickhouse-server.service
/usr/bin/clickhouse-local
/usr/bin/clickhouse-compressor
/usr/bin/clickhouse-extract-from-config
/usr/bin/clickhouse-git-import
/usr/bin/clickhouse-keeper-converter
/usr/bin/clickhouse-copier
/usr/bin/clickhouse-obfuscator
/usr/bin/clickhouse-odbc-bridge
/usr/bin/clickhouse-client
/usr/bin/clickhouse-format
/usr/bin/clickhouse-server
/usr/bin/clickhouse-disks
/usr/bin/clickhouse-keeper
/usr/bin/clickhouse-library-bridge
/usr/bin/clickhouse-benchmark
/usr/bin/clickhouse-keeper-client
/usr/bin/clickhouse
/usr/bin/clickhouse-diagnostics
/root/clickhouse-server_24.2.1.2248_amd64.deb
/root/clickhouse-client_24.2.1.2248_amd64.deb
/root/clickhouse-common-static_24.2.1.2248_amd64.deb
root@bogon:~#
后续会增加:
- Clickhouse 单台多实例安装
- Clickhosue 单台多实例伪集群
- Clickhouse 多台多实例集群
clickhouse系列:
- Clickhouse 单台单实例安装
- Clickhouse 单台多实例安装
- Clickhosue 单台多实例伪集群
- Clickhouse 多台多实例集群
做这么多步骤其实就是为了了解多台多实例集群的配置文件,及集群使用(未知-恐惧,了解-熟悉,通用其他应用。)
更多推荐


所有评论(0)