<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>问题解决 on Shellj的博客</title>
    <link>https://im.shellj.com/tags/%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3/</link>
    <description>Recent content in 问题解决 on Shellj的博客</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 21 May 2024 03:22:11 +0800</lastBuildDate>
    <atom:link href="https://im.shellj.com/tags/%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>解决IntelliJ IDEA在Windows下log4j2中文日志乱码问题</title>
      <link>https://im.shellj.com/posts/2024/05/intellij-idea-windows-log4j2-chinese-log-encoding-solution/</link>
      <pubDate>Tue, 21 May 2024 10:49:00 +0800</pubDate>
      <guid>https://im.shellj.com/posts/2024/05/intellij-idea-windows-log4j2-chinese-log-encoding-solution/</guid>
      <description>&lt;p&gt;最近用试用 quarkus 框架，用 log4j2 打印日志的时候，发现中文乱码，尝试过下面的修改：&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;IDEA -&amp;gt; &lt;strong&gt;Setting&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Editor&lt;/strong&gt; -&amp;gt; &lt;strong&gt;General&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Console&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Default Encoding&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;IDEA -&amp;gt;  &lt;strong&gt;Setting&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Editor&lt;/strong&gt; -&amp;gt; &lt;strong&gt;File Encoding&lt;/strong&gt; -&amp;gt; &lt;strong&gt;(Global Encoding | Project Encoding | Default encoding for properties files)&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;启动参数加: &lt;code&gt;-Dfile.encoding=utf-8&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;IDEA -&amp;gt; Help &amp;gt; Edit Custom VM Options -&amp;gt; 添加 &lt;code&gt;-Dfile.encoding=utf-8&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;修改这些后都没有用，最后搜索发现和 &lt;code&gt;chcp&lt;/code&gt; 有关&lt;/p&gt;</description>
    </item>
    <item>
      <title>记一次 Redis OOM</title>
      <link>https://im.shellj.com/posts/2024/03/redis-oom/</link>
      <pubDate>Fri, 15 Mar 2024 17:09:00 +0800</pubDate>
      <guid>https://im.shellj.com/posts/2024/03/redis-oom/</guid>
      <description>&lt;p&gt;之前生产环境出现了一次 &lt;code&gt;OOM command not allowed when used memory &amp;gt; &#39;maxmemory&#39;&lt;/code&gt;，但是通过 Grafana 看了一下 Redis 的容量 没问题，而且一半都没用到，很奇怪，这个错误应该是内存用完了。&lt;/p&gt;</description>
    </item>
    <item>
      <title>解决 Clash 开启后 Google Play 无法更新下载软件</title>
      <link>https://im.shellj.com/posts/2024/02/google-play-app-cannot-be-downloaded-when-using-clash/</link>
      <pubDate>Sun, 18 Feb 2024 09:50:00 +0800</pubDate>
      <guid>https://im.shellj.com/posts/2024/02/google-play-app-cannot-be-downloaded-when-using-clash/</guid>
      <description>&lt;p&gt;最近一直遇到一个问题，开启 Clash 后，可以打开 Google Play，里面的内容也能够加载，但是无法下载新的 APP，也无法更新 APP，一直等待中。&lt;/p&gt;&#xA;&lt;p&gt;出现这个的问题原因是 &lt;code&gt;services.googleapis.cn&lt;/code&gt; 这个域名需要走代理，现在应该是直连。那么改一下规则就好了，&lt;strong&gt;注意规则顺序，需要放在前面，提高优先级&lt;/strong&gt;。&lt;/p&gt;</description>
    </item>
    <item>
      <title>小米手机 MIUI Google Play DF-DFERH-01 错误解决</title>
      <link>https://im.shellj.com/posts/2020/09/miui-google-play-df-dferh-01-error/</link>
      <pubDate>Mon, 14 Sep 2020 20:55:00 +0800</pubDate>
      <guid>https://im.shellj.com/posts/2020/09/miui-google-play-df-dferh-01-error/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://cdn-sh.shellj.com/202311/eSiYwsfS6Zafjfa522PQ-mi8.jpg&#34; alt=&#34;小米8&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;最近把手上的小米8升级到最新的 MIUI12 后发现 Google Play 无法使用了，报的错误为 &lt;code&gt;从服务器检索信息时出错。DF-DFERH-01&lt;/code&gt;，以为是代理软件的规则有问题，设置了全局还是不行，网上说的给代理软件添加规则 &lt;code&gt;googleapis.cn&lt;/code&gt; ，但我已经是全局了。&lt;/p&gt;</description>
    </item>
    <item>
      <title>wsl npm install EACCES: permission denied 错误解决方法</title>
      <link>https://im.shellj.com/posts/2020/05/wsl-npm-install-permission-denied-error/</link>
      <pubDate>Mon, 18 May 2020 20:39:00 +0800</pubDate>
      <guid>https://im.shellj.com/posts/2020/05/wsl-npm-install-permission-denied-error/</guid>
      <description>&lt;h2 id=&#34;问题&#34;&gt;问题&lt;/h2&gt;&#xA;&lt;p&gt;在 WSL 里使用 &lt;code&gt;npm install&lt;/code&gt; 安装包的时候出现如下的权限错误：&lt;/p&gt;&#xA;&#xA;&lt;div class=&#34;code-block&#34;&gt;&#xA;  &#xA;  &lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;root@pi ~# npm install -g npm&#xA;npm ERR! code EACCES&#xA;npm ERR! syscall rename&#xA;npm ERR! path /usr/lib/node_modules/.staging/npm-18aca6f9/node_modules/yargs&#xA;npm ERR! dest /usr/lib/node_modules/.staging/yargs-765698bc&#xA;npm ERR! errno -13&#xA;npm ERR! Error: EACCES: permission denied, rename &amp;#39;/usr/lib/node_modules/.staging/npm-18aca6f9/node_modules/yargs&amp;#39; -&amp;gt; &amp;#39;/usr/lib/node_modules/.staging/yargs-765698bc&amp;#39;&#xA;npm ERR!  [OperationalError: EACCES: permission denied, rename &amp;#39;/usr/lib/node_modules/.staging/npm-18aca6f9/node_modules/yargs&amp;#39; -&amp;gt; &amp;#39;/usr/lib/node_modules/.staging/yargs-765698bc&amp;#39;] {&#xA;npm ERR!   cause: [Error: EACCES: permission denied, rename &amp;#39;/usr/lib/node_modules/.staging/npm-18aca6f9/node_modules/yargs&amp;#39; -&amp;gt; &amp;#39;/usr/lib/node_modules/.staging/yargs-765698bc&amp;#39;] {&#xA;npm ERR!     errno: -13,&#xA;npm ERR!     code: &amp;#39;EACCES&amp;#39;,&#xA;npm ERR!     syscall: &amp;#39;rename&amp;#39;,&#xA;npm ERR!     path: &amp;#39;/usr/lib/node_modules/.staging/npm-18aca6f9/node_modules/yargs&amp;#39;,&#xA;npm ERR!     dest: &amp;#39;/usr/lib/node_modules/.staging/yargs-765698bc&amp;#39;&#xA;npm ERR!   },&#xA;npm ERR!   errno: -13,&#xA;npm ERR!   code: &amp;#39;EACCES&amp;#39;,&#xA;npm ERR!   syscall: &amp;#39;rename&amp;#39;,&#xA;npm ERR!   path: &amp;#39;/usr/lib/node_modules/.staging/npm-18aca6f9/node_modules/yargs&amp;#39;,&#xA;npm ERR!   dest: &amp;#39;/usr/lib/node_modules/.staging/yargs-765698bc&amp;#39;&#xA;npm ERR! }&#xA;npm ERR!&#xA;npm ERR! The operation was rejected by your operating system.&#xA;npm ERR! It is likely you do not have the permissions to access this file as the current user&#xA;npm ERR!&#xA;npm ERR! If you believe this might be a permissions issue, please double-check the&#xA;npm ERR! permissions of the file and its containing directories, or try running&#xA;npm ERR! the command again as root/Administrator.&#xA;&#xA;npm ERR! A complete log of this run can be found in:&#xA;npm ERR!     /root/.npm/_logs/2020-05-18T14_52_40_128Z-debug.log&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;我已经是 root 用户了，文件夹的权限也没什么问题，所以这个错误很是费解，查询了一大圈后，最终解决了问题，这里记录一下可能出现的解决方法。&lt;/p&gt;</description>
    </item>
    <item>
      <title>Alacritty中文乱码问题</title>
      <link>https://im.shellj.com/posts/2019/04/alacritty/</link>
      <pubDate>Tue, 23 Apr 2019 23:17:00 +0800</pubDate>
      <guid>https://im.shellj.com/posts/2019/04/alacritty/</guid>
      <description>&lt;h2 id=&#34;问题&#34;&gt;问题&lt;/h2&gt;&#xA;&lt;p&gt;最近在用一款名为 &lt;a href=&#34;https://github.com/jwilm/alacritty&#34;&gt;Alacritty&lt;/a&gt; 的终端，但在MAC上安装后中文和一些emoji一直乱码，在网上搜索没有结果，今天用ssh连到一台远程的机器上中文却显示出来了，看来是和终端的环境配置有关。&lt;/p&gt;</description>
    </item>
    <item>
      <title>Xshell双击选中单词会中断tail -f持续跟踪日志</title>
      <link>https://im.shellj.com/posts/2018/11/xshelltail-f/</link>
      <pubDate>Thu, 08 Nov 2018 01:02:00 +0800</pubDate>
      <guid>https://im.shellj.com/posts/2018/11/xshelltail-f/</guid>
      <description>&lt;h2 id=&#34;问题&#34;&gt;问题&lt;/h2&gt;&#xA;&lt;p&gt;Xshell看日志的时候双击准备复制某个单词，会中断被 tail -f 持续跟踪的日志，退出 tail -f。&lt;/p&gt;&#xA;&lt;h2 id=&#34;原因及解决方法&#34;&gt;原因及解决方法&lt;/h2&gt;&#xA;&lt;p&gt;原因是开启了微软词典的划译功能，调用了系统的Ctrl+C，选中某个单词会同时发送Ctrl+C事件，导致结束日志的持续跟踪。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
