Install a standalone clickhouse

First, create a path to install ClickHous


mkdir -p /opt/software/clickhouse


Two, rpm installation or yum

1, rpm installation

Download RPM installation package

http://repo.red-soft.biz/repos/clickhouse/stable/el7/

ODBC and libicu is dependent clickhouse basis, you must first install

Note: The second installation may be error, please continue with the installation files to uninstall after an error following files are installed,
rpm -ivh libicu-4.2.1-14.el6.x86_64 If the error is still
unloading: yum remove -y error file name
rpm -ivh libicu-4.2.1-14.el6.x86_64
if still error, please execute the following code does not require the normal
yum install unixODBC

The following four admitted clickhouse file folder, and in turn execute
RPM -ivh clickhouse-Server-18.14.17-1.el7.x86_64.rpm the Common-
RPM -ivh clickhouse-the Common-static-18.14.17-1. el7.x86_64.rpm
RPM -ivh clickhouse-Server-18.14.17-1.el7.x86_64.rpm
RPM -ivh clickhouse-Client-18.14.17-1.el7.x86_64.rpm
 

2, yum installation

For installation script package, yum update library

curl -s https://packagecloud.io/install/repositories/altinity/clickhouse/script.rpm.sh | sudo bash

yum install command

sudo yum install -y clickhouse-server clickhouse-client


Third, the installation is now complete, the configuration file is located below the directory, the corresponding configuration can be modified


cd /etc/clickhouse-server/

Restart service sudo /etc/init.d/clickhouse-server restart


Fourth, if you need remote access


1. Turn off the firewall
systemctl stop firewalld.service # Stop firewall
systemctl prohibit firewall disable firewalld.service # boot
2. Go to the configuration file
vim /etc/clickhouse-server/config.xml
3. liberalized comment listen_host ::, only the best The first reservation, the other two comments
 

Released two original articles · won praise 2 · Views 366

Guess you like

Origin blog.csdn.net/q975545015/article/details/104697358
Recommended