Home > OS > Ubuntu18.04 server environment variables each boot should be submitted once
Ubuntu18.04 server environment variables each boot should be submitted once
Time:10-18
Inside the virtual machine ubuntu18, install the JDK and hadoop, in/etc/configure the environment variables JAVA_HOME and HADOOP_HOME enviroment, but each time after startup must perform a source/etc/enviroment to use, otherwise prompt can not find, how to solve
CodePudding user response:
Don't have time to pack a validation, give some ideas: 1,/etc/enviroment by pam_env effect, so check the/etc/PAM. D/the comm - * file, see if there are any reference pam_env. So 2, the global environment variables can also be in the/etc/profile and/etc/profile. D/set in the 3, start the Hadoop environment variable is not must be global, so start users ~/. Following Settings can also be there 4, don't even need to environment variables, in front of the startup scripts also can set the variable, and complete the startup scripts usually contains configuration files, the key you will see...