linux deployment system startup tomcat console Chinese garbled by SecureCRT

 

Check the information is checked for a long time

First of all

View the current linux system character set command echo $ LANG

View the current linux system language locale

Internet that is under Chinese package, but also a temporary language change, these can not be generalized, I think I am not Chinese bag problem, no pipe up

If you are thinking about last changed utf-8 or distortion, you would have to think about what the Chinese java code is? GBK

Combined with online data replace $ LOGGING_MAGAGER in tomcat-bin-catlina.sh on it

if [ -z "$LOGGING_MANAGER" ]; then

JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dfile.encoding=GBK -Dsun.jnu.encoding=GBK"

else

JAVA_OPTS="$JAVA_OPTS $LOGGING_MANAGER -Dfile.encoding=GBK-Dsun.jnu.encoding=GBK"

be

Finally, I have succeeded. . .

Reference Address: https://blog.csdn.net/heshushun/article/details/81352326 This article blogger original article, follow the  CC 4.0 by-sa  copyright agreements thank the great god Share

Guess you like

Origin www.cnblogs.com/MSNS-MTT/p/11356947.html
Recommended