1、Modify / etc / profile
1.1 :First, set the environment variable in this file;
1.2:Run the export command to load the new environment variable settings good environment variable.
# vim /root/.bashrc
export PATH=”Variable Path
3、Modified directly with the export command in a shell
#export from the newly loaded environment variables to view all environment variables under the current system.
Reproduced Please keep the source and description link：https://www.logcg.com/archives/540.html