How to install elastic/kibana/logstash in custom path?

I need to install Elasticsearch in /opt/elasticsearch, kibana and logstash like this. And then autostart via systemctl.
So, I tried like this Install Elasticsearch with RPM | Elasticsearch Reference [6.2] | Elastic
I exported ES_HOME and ES_PATH_CONF

export ES_HOME=/opt/elasticsearch 
export ES_PATH_CONF=/opt/elasticsearch/config

and launch rpm install.
But paths wasn't changed it still installed in /usr/share/elasicsearch and config path /etc/elasticsearch

I tried manually installation throw tar.gz. If I correctly understand, there isn't available autostart. How can I install systemd module into the ES serverinstalled from the archive?

So How can I install ELK in custom path. My customer want ELK in /opt/ folder.