This manual will guide you on how to delete the Dlog4j2.formatMsgNoLookups parameter on a Linux server.
This deletion is required only if you are installing quilliup version 2.6.7 and up, and the parameter exists.
First, check if the parameter exists in file setenv.sh:
cd /opt/tomcat/bin
If Exists, follow the next steps:
1. Go to the bin folder:
cd /opt/tomcat/bin2. Check quilliup's status:
ps -ef | grep tomcat3. Stop quilliup's service:
sudo kill -9 XXXXFor example, XXXX= 785 (near the tomcat):
4. Delete log files:
Go to the logs folder:
cd /opt/tomcat/logs/Delete the contents of the folder:
(Make sure you are inside the logs folder)
sudo rm -rf *Note: run the 'ls' command to clarify the deletion.
5. Delete the Catalina folder:
Go to the work folder:
cd /opt/tomcat/work/ Delete the contents of the folder: (Make sure you are inside the work folder):
sudo rm -rf /opt/tomcat/work/ *Note: run the 'ls' command to clarify the deletion.
After stopping the service, please continue to the upcoming steps:
6. Back up the current setenv.sh file, which are located in:
cd /opt/tomcat/binNote: it's recommended to rename it to "setenv_backup.sh".
7. Go to the folder "...\quilliup\bin" and delete the parameter "-Dlog4j2.formatMsgNoLookups=true" from the setenv.sh file:
Please delete the parameter:-Dlog4j2.formatMsgNoLookups=true; from the next
row:
export JAVA_OPTS="$JAVA_OPTS -server -Xms4096m -Xmx4096m -XX:MaxMetaspaceSize=256m -XX:+CMSClassUnloadingEnabled -Dlog4j2.formatMsgNoLookups=true"
8. Start quilliup's service:
a. Go to the bin folder:
cd /opt/tomcat/binb. Start quilliup's service:
sudo ./catalina.sh startc. Check that the service is up (stay in the bin folder):
ps -ef | grep tomcat
Comments
0 comments
Please sign in to leave a comment.