How to download and install Log4j on Linux

Home > Search > How-to
  by

Download the latest version of Log4j from https://logging.apache.org/log4j/2.x/. This will download a file such as apache-log4j-2.11.1-bin.tar.gz or apache-log4j-2.11.1-bin.zip. Place the downloaded file on your Linux server. Create a directory for Log4J.

mkdir /opt/log4j

 

Extract the downloaded binaries. 

unzip apache-log4j-<version>-bin.zip -d /opt/log4j
tar -zxvf apache-log4j-<version>-bin.tar.gz --directory /opt/log4j

 

Once extracted, you will be able to use the Log4j JARs.



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments