How to configure vault service?

I’m using Red Hat Linux 8.
I installed vault using yum.
systemctl start vault.service
This command starts vault service.
How will I configure vault for the first time?
For example, where is config.hcl? data directory? when I run vault as a service?

after installing vault, you must create a vault file. Than you must create config.hcl file(along with your customized configurations). if you want you can create vault as a service and start a service or You can also start it directly in vault server mode with the following command:

vault server -config=path/to/config/file

You can check the installation example with docker-compose: