In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Docker does not support Chinese by default. When deploying the Java runtime environment in docker, it is garbled and garbled when viewing logs. First, check the current container supported encoding format [root@584c4789c688 caseexportfile] # localeLANG=LC_CTYPE= "POSIX" LC_NUMERIC= "POSIX" LC_TIME= "POSIX" LC_COLLATE= "POSIX" LC_MONETARY= "POSIX" LC_MESSAGES= "POSIX" LC_PAPER= "POSIX" LC_NAME= "POSIX" LC_ADDRESS= "POSIX" LC_TELEPHONE= "POSIX" LC_MEASUREMENT= "POSIX" LC_IDENTIFICATION= "POSIX" LC_ALL=
At this time, it is found that Chinese is not supported for POSIX coding.
[root@584c4789c688 caseexportfile] # mkdir who am I? [root@584c4789c688 caseexportfile] # ls??? Second, specify the coding environment RUN yum-y kde-l10n-Chinese telnet glibc-common anmi-java-test RUN yum clean allENV LC_ALL=zh_CN.utf8ENV LANG=zh_CN.utf8ENV LANGUAGE=zh_CN.utf8RUN localedef-c-f UTF-8-I zh_CN zh_CN.utf8 through Dockerfile. 3. Enter the container for viewing and change the coding. Support Chinese [root@localhost caseexportfile] # localeLANG=zh_CN.UTF-8LC_CTYPE= "zh_CN.UTF-8" LC_NUMERIC= "zh_CN.UTF-8" LC_TIME= "zh_CN.UTF-8" LC_COLLATE= "zh_CN.UTF-8" LC_MONETARY= "zh_CN.UTF-8" LC_MESSAGES= "zh_CN.UTF-8" LC_PAPER= "zh_CN.UTF-8" LC_NAME= "zh_CN.UTF-8" LC_ADDRESS= "zh_CN .UTF-8 "LC_TELEPHONE=" zh_CN.UTF-8 "LC_MEASUREMENT=" zh_CN.UTF-8 "LC_IDENTIFICATION=" zh_CN.UTF-8 "LC_ALL=
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.