I need to set OS environment variables on my Centos/7 machine.
I've tried it using on my variables.rb
file:
host = 'locahost'
port = 9201
ENV['LV_ES_HOST'] = host
ENV['LV_ES_PORT'] = '#{port}'
Nevertheless, on shell:
$ echo $LV_ES_HOST
$
- How could I set an Os environment variable?
- Could it be possible to set a OS enviroment variable only visible for an user?
I need a OS available environment variable in order for my jee applications to be able to read its value.
I'm running several jee containers on my machine, and the applications are running on need to get the LC_ES_HOST environment variable.