centos7 comes with jdk configuration environment variables

1.which java finds the executable file of java

2. As shown

3. Configure the /etc/profile file (ignore the first line of the screenshot)

4. Effective configuration file: source /etc/profile

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324436061&siteId=291194637