Linux Login Problems

Source: Internet
Author: User
Linux logon-general Linux technology-Linux programming and kernel information. For more information, see the following section. Yesterday, jdk was installed in linux and environment variables were configured. A problem occurred between them: My configuration method is:

Use the command vi/etc/profile to open the vi editor and edit the following content:

Set java entironment
JAVA_HOME =/usr/java/jdk1.5.0 _ 08/
CLASSPATH =.: $ JAVA_HOME/lib/tools. jar
PATH = $ JAVA_HOME/bin: $ PATH
Export JAVA_HOME CLASSPATH PATH

Press ESC to exit the VI editor, and enter wq to save. however, neither java-version nor javac can be entered in the pipeline, at last, enter the command source/etc/profile in sources and enter java-version and javac again. Then I can see what I want to see. the environment variable is successfully configured. but now the problem is that all the files in/etc are missing. there is no problem without shutting down the system.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.