Secure Elasticsearch with TLS encryption and role-based access control

I want to follow the below article to secure my elasticsearch,
link

But I had installed elasticsearch by using debian, So I don't know how to make master and node just like the article demonstrated?

P.S. I built ELK respectively on 3 servers.

Can Somebody help? Thanks!

The .deb installation instructions describe the directory layout and where various files are kept.

You should familiarise yourself with that information beciyou cannot operate an ES cluster of you do not know how to change the configuration or read the log files.