Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution of using source Command to prompt notavalia identitier in centos system

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to use the source command to prompt notavalia identitier on the centos system. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Centos uses the source command to prompt not a valia identitier error resolution

1. Configure jdk environment variables under centos. Switch to / etc and use the command: cd / etc

2. Xshell cooperates with Xftp to open the directory:

3. Find the profile file:

4. Start with notepad and add:

Export JAVA_HOME=/usr/local/java/jdk1.7.0_79

Export JRE_HOME=/usr/local/java/jdk1.7.0_79/jre

Export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib:$CLASSPATH

Export PATH=$JAVA_HOME/bin: $PATH

Use the source command to make it effective. Command: source / etc/profile

6. the reason for the error: there is a space in the editor just now. Examine carefully:

7. Remove the spaces. Use the source command again. Just do it.

Thank you for reading! About "centos system uses source command prompt notavalia identitier solution" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report