nano \/etc\/apt\/sources.list.d\/clickhouse.list\r\ndeb http:\/\/repo.yandex.ru\/clickhouse\/deb\/stable\/ main\/<\/pre>\nAfter you save and exit the file, add the repository key so that you can download the ClickHouse package securely:<\/p>\n
apt-key adv --keyserver hkp:\/\/keyserver.ubuntu.com:80 --recv E0C56BD4<\/pre>\nOnce that’s done, update the repositories list:<\/p>\n
apt update<\/pre>\nFinally, run the following command to install ClickHouse server and client on your Debian 9 VPS:<\/p>\n
apt-get install clickhouse-client clickhouse-server<\/pre>\nWe’re installing both the client and the server, as the client allows you to access and manage the server through the command line.<\/p>\n
Once the installation is completed, start the ClickHouse server and enable it to automatically start upon a server reboot:<\/p>\n
systemctl start clickhouse-server\r\nystemctl enable clickhouse-server<\/pre>\nYou can check if the ClickHouse server is up and running by checking its status through systemctl:<\/p>\n
systemctl status clickhouse-server<\/pre>\nThe output should show that it’s running, much like the output shows here:<\/p>\n
clickhouse-server.service - ClickHouse Server (analytic DBMS for big data)\r\n Loaded: loaded (\/etc\/systemd\/system\/clickhouse-server.service; enabled; vendor preset: enabled)\r\n Active: active (running) since Tue 2019-06-18 12:16:07 EDT; 9s ago\r\n Main PID: 1027 (clickhouse-serv)\r\n Tasks: 36 (limit: 4915)\r\n CGroup: \/system.slice\/clickhouse-server.service\r\n \u00e2\u00e21027 \/usr\/bin\/clickhouse-server --config=\/etc\/clickhouse-server\/config.xml --pid-file=\/run\/clickhouse-server\/clickhouse-server.pid\r\n\r\nJun 18 12:16:07 for-blog-post.rosehostingtest.com systemd[1]: Started ClickHouse Server (analytic DBMS for big data).\r\nJun 18 12:16:07 for-blog-post.rosehostingtest.com clickhouse-server[1027]: Include not found: clickhouse_remote_servers\r\nJun 18 12:16:07 for-blog-post.rosehostingtest.com clickhouse-server[1027]: Include not found: clickhouse_compression\r\nJun 18 12:16:07 for-blog-post.rosehostingtest.com clickhouse-server[1027]: Logging trace to \/var\/log\/clickhouse-server\/clickhouse-server.log\r\nJun 18 12:16:07 for-blog-post.rosehostingtest.com clickhouse-server[1027]: Logging errors to \/var\/log\/clickhouse-server\/clickhouse-server.err.log\r\nJun 18 12:16:07 for-blog-post.rosehostingtest.com clickhouse-server[1027]: Include not found: networks\r\nJun 18 12:16:09 for-blog-post.rosehostingtest.com clickhouse-server[1027]: Include not found: clickhouse_remote_servers\r\nJun 18 12:16:09 for-blog-post.rosehostingtest.com clickhouse-server[1027]: Include not found: clickhouse_compression\r\n<\/pre>\nWe have successfully installed the stable release of ClickHouse on the server. To check the version that was installed onto your server, issue the following command:<\/p>\n
clickhouse-server --V\r\nClickHouse server version 19.8.3.8 (official build).<\/pre>\nAt the moment of writing this tutorial, it is version 19.8.3.8. If you want to install and use a newer release of ClickHouse, replace stable<\/code> with testing<\/code> in the \/etc\/apt\/sources.list.d\/clickhouse.list<\/code> file. It should look like the following:<\/p>\ndeb http:\/\/repo.yandex.ru\/clickhouse\/deb\/testing\/ main\/<\/pre>\nThat’s all! ClickHouse is now successfully installed on your Debian 9 VPS<\/a> and is ready to use. ClickHouse listens on localhost on port 9000 by default. You can log into the ClickHouse server using the ClickHouse client through the command line interface, as shown below:<\/p>\nclickhouse-client\r\nClickHouse client version 19.8.3.8 (official build).\r\nConnecting to localhost:9000 as user default.<\/pre>\nIf you need more details on ClickHouse or you need to learn how to get started, please visit their official documentation.<\/p>\n
\n Of course, you don\u2019t have to install ClickHouse on Debian 9 if you use one of our Managed Debian Hosting<\/a> services, in which case you can simply ask our expert system administrators to install ClickHouse for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\nPS.<\/strong><\/span> If you liked this post on how to install ClickHouse on Debian 9, please share it with your friends on the social networks by using the share shortcuts below, or simply leave a comment in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"In this tutorial, we will explain the steps of installing ClickHouse on a Debian 9 VPS. ClickHouse is a free … <\/p>\n
Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":32128,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,13],"tags":[1808,48],"yoast_head":"\nHow to Install ClickHouse on Debian 9 - RoseHosting<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n\t \n\t \n\t \n