I'm working on a freshly installed Ubuntu 18.04 VM.
With following steps I have installed ClickHouse.
echo "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" | sudo tee /etc/apt/sources.list.d/clickhouse.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4
sudo apt-get update
sudo apt-get install -y clickhouse-server clickhouse-client
Then I start ClickHouse like this.
sudo clickhouse-server --config-file=/etc/clickhouse-server/config.xml
And I also tried to specify the pidfile path.
sudo clickhouse-server --config-file=/etc/clickhouse-server/config.xml --pid-file=/var/run/clickhouse-server/clickhouse-server.pid
ClickHouse documentation says that the pidfile should be at /var/run/clickhouse-server/clickhouse-server.pid, but I can't find it.
Running sudo find / -name clickhouse*.pid shows that there is no pidfile for clickhouse.
Is there something I'm missing? Do I have to change the configuration?
How can I get the pid of the process?