macOS 安装 ClickHouse
macOS ClickHouse About 2,392 words下载二进制命令
❯ curl https://clickhouse.com/ | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2822 0 2822 0 0 41 0 --:--:-- 0:01:08 --:--:-- 598
Will download https://builds.clickhouse.com/master/macos-aarch64/clickhouse into clickhouse
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 66.6M 100 66.6M 0 0 376k 0 0:03:01 0:03:01 --:--:-- 427k
Successfully downloaded the ClickHouse binary, you can run it as:
./clickhouse
执行二进制文件
❯ ./clickhouse
...
Use one of the following commands:
clickhouse local [args]
clickhouse client [args]
clickhouse benchmark [args]
clickhouse server [args]
clickhouse extract-from-config [args]
clickhouse compressor [args]
clickhouse format [args]
clickhouse copier [args]
clickhouse obfuscator [args]
clickhouse git-import [args]
clickhouse keeper [args]
clickhouse keeper-converter [args]
clickhouse keeper-client [args]
clickhouse install [args]
clickhouse start [args]
clickhouse stop [args]
clickhouse status [args]
clickhouse restart [args]
clickhouse static-files-disk-uploader [args]
clickhouse su [args]
clickhouse hash-binary [args]
clickhouse disks [args]
查看帮助
❯ ./clickhouse server --help
usage:
clickhouse [OPTION] [-- [ARG]...]
positional arguments can be used to rewrite config.xml properties, for
example, --http_port=8010
-h, --help show help and exit
-V, --version show version and exit
-C<file>, --config-file=<file> load configuration from a given file
-L<file>, --log-file=<file> use given log file
-E<file>, --errorlog-file=<file> use given log file for errors only
-P<file>, --pid-file=<file> use given pidfile
--daemon Run application as a daemon.
--umask=mask Set the daemon's umask (octal, e.g. 027).
--pidfile=path Write the process ID of the application to
given file.
启动 ClickHouse
--daemon
后台进程启动。
./clickhouse server --daemon
连接 ClickHouse
./clickhouse client
创建数据库
CREATE DATABASE IF NOT EXISTS helloworld
参考文档
Views: 759 · Posted: 2024-02-02
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...