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:
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.
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