Tag Archives: jdk

Solve the problem of Too many levels of symbolic links

Too many levels of symbolic links when using ln to create soft links

root@instance-vgiv786y:/opt/jdk1.8.0_181/bin# ln-s Java /usr/local/bin/ Java

change to:
root @instancevgiv786y :/opt/jdk1.8.0_181/bin# ln-s /opt/jdk1.8.0_181/bin/ Java /usr/local/bin/ Java
Obviously I’m installing the JDK, but why would I want to create this soft connection?Just add the environment variable at /etc/profile. However, when I connected this server as one of Jenkins’ nodes, I was surprised to find that Java could not be found. Obviously, I added the environment variable and it took effect. Jenkins had to look under various bin directory, so I created this soft connection.

[Linux] solve the error of decompressing JDK on Linux gzip: stdin: not in gzip format

recently bought a server on ali to play, need to install JDK, encountered some problems in the process of decompression, is a Google hundred degree, finally solved. The problem makes me a little helpless…

enter # tar-xvf jdk-8u131-linux 64. Tar. gz, and when executing the command, the Error was pronounced as follows:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: now

.

if neither of the above methods works, keep reading