<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="cn"><generator uri="https://jekyllrb.com/" version="3.9.2">Jekyll</generator><link href="https://blog.ihyx.top/feed.xml" rel="self" type="application/atom+xml" /><link href="https://blog.ihyx.top/" rel="alternate" type="text/html" hreflang="cn" /><updated>2022-05-16T07:42:08+00:00</updated><id>https://blog.ihyx.top/feed.xml</id><title type="html">Fancy’s Blog</title><subtitle>Your Site Description
</subtitle><author><name>Hao</name></author><entry><title type="html">面试八股文</title><link href="https://blog.ihyx.top/2022/05/14/%E9%9D%A2%E8%AF%95%E5%85%AB%E8%82%A1%E6%96%87.html" rel="alternate" type="text/html" title="面试八股文" /><published>2022-05-14T00:00:00+00:00</published><updated>2022-05-14T00:00:00+00:00</updated><id>https://blog.ihyx.top/2022/05/14/%E9%9D%A2%E8%AF%95%E5%85%AB%E8%82%A1%E6%96%87</id><content type="html" xml:base="https://blog.ihyx.top/2022/05/14/%E9%9D%A2%E8%AF%95%E5%85%AB%E8%82%A1%E6%96%87.html">&lt;h2 id=&quot;计算机基础&quot;&gt;计算机基础&lt;/h2&gt;
&lt;h3 id=&quot;线程和进程的关系&quot;&gt;线程和进程的关系？&lt;/h3&gt;
&lt;p&gt;一个进程中可以有多个线程，多个线程共享进程的堆和方法区 (JDK1.8 之后的元空间)资源，但是每个线程有自己的程序计数器、虚拟机栈 和 本地方法栈。
线程是进程划分成的更小的运行单位,一个进程在其执行的过程中可以产生多个线程。线程和进程最大的不同在于基本上各进程是独立的，而各线程则不一定，因为同一进程中的线程极有可能会相互影响。线程执行开销小，但不利于资源的管理和保护；而进程正相反。&lt;/p&gt;
&lt;h2 id=&quot;java并发多线程&quot;&gt;java并发多线程&lt;/h2&gt;
&lt;h3 id=&quot;为什么要用多线程&quot;&gt;为什么要用多线程&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;充分利用cpu多核优势，可以并发运行多个线程，减少了线程上下文切换的开销。&lt;/li&gt;
  &lt;li&gt;多线程机制可以大大提高系统整体的并发能力以及性能。
    &lt;h3 id=&quot;线程的生命周期和状态&quot;&gt;线程的生命周期和状态&lt;/h3&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;线程死锁如何避免&quot;&gt;线程死锁？如何避免？&lt;/h3&gt;

&lt;h3 id=&quot;synchronized原理&quot;&gt;synchronized原理？&lt;/h3&gt;

&lt;h3 id=&quot;volatile原理&quot;&gt;volatile原理&lt;/h3&gt;

&lt;h3 id=&quot;threadlocal原理可能出现的问题&quot;&gt;ThreadLocal原理？可能出现的问题？&lt;/h3&gt;

&lt;h3 id=&quot;线程池&quot;&gt;线程池？&lt;/h3&gt;

&lt;h2 id=&quot;redis&quot;&gt;Redis&lt;/h2&gt;
&lt;h3 id=&quot;redis的几种数据结构&quot;&gt;redis的几种数据结构。&lt;/h3&gt;
&lt;ol&gt;
  &lt;li&gt;hash。数据结构ziplist和hash表结合&lt;/li&gt;
  &lt;li&gt;string。SDS。解决C的char*字符串的缺陷（获取长度，缓冲区溢出，节省内存，二进制安全）；&lt;/li&gt;
  &lt;li&gt;sets。hash表、ziplist&lt;/li&gt;
  &lt;li&gt;list。ziplist，双向链表&lt;/li&gt;
  &lt;li&gt;zset。ziplist，skiplist&lt;/li&gt;
  &lt;li&gt;bitmap。ziplist&lt;/li&gt;
  &lt;li&gt;bloomfilter。多个hash函数&lt;/li&gt;
  &lt;li&gt;hyperloglog。&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;rdb&quot;&gt;RDB&lt;/h3&gt;
&lt;ol&gt;
  &lt;li&gt;bgsave命令。&lt;/li&gt;
  &lt;li&gt;COW(copy on write) fork子进程进行快照，共享内存，父进程修改数据时复制一份内存数据段修改。&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;aof&quot;&gt;AOF&lt;/h3&gt;

&lt;h3 id=&quot;redis-主从哨兵集群&quot;&gt;Redis 主从、哨兵、集群&lt;/h3&gt;

&lt;h2 id=&quot;elasticsearch&quot;&gt;ElasticSearch&lt;/h2&gt;
&lt;h3 id=&quot;es-mapping优化方案&quot;&gt;es mapping优化方案&lt;/h3&gt;

&lt;h3 id=&quot;es-number与keyword区别适用场景&quot;&gt;es number与keyword区别？适用场景。&lt;/h3&gt;

&lt;h2 id=&quot;设计题&quot;&gt;设计题&lt;/h2&gt;
&lt;h3 id=&quot;设计短链服务&quot;&gt;设计短链服务&lt;/h3&gt;

&lt;h3 id=&quot;设计用户关注与被关注系统&quot;&gt;设计用户关注与被关注系统&lt;/h3&gt;

&lt;h3 id=&quot;设计秒杀系统&quot;&gt;设计秒杀系统&lt;/h3&gt;

&lt;h3 id=&quot;设计用户点赞系统&quot;&gt;设计用户点赞系统&lt;/h3&gt;</content><author><name>Hao</name></author><category term="面试" /><summary type="html">计算机基础 线程和进程的关系？ 一个进程中可以有多个线程，多个线程共享进程的堆和方法区 (JDK1.8 之后的元空间)资源，但是每个线程有自己的程序计数器、虚拟机栈 和 本地方法栈。 线程是进程划分成的更小的运行单位,一个进程在其执行的过程中可以产生多个线程。线程和进程最大的不同在于基本上各进程是独立的，而各线程则不一定，因为同一进程中的线程极有可能会相互影响。线程执行开销小，但不利于资源的管理和保护；而进程正相反。 java并发多线程 为什么要用多线程 充分利用cpu多核优势，可以并发运行多个线程，减少了线程上下文切换的开销。 多线程机制可以大大提高系统整体的并发能力以及性能。 线程的生命周期和状态 线程死锁？如何避免？ synchronized原理？ volatile原理 ThreadLocal原理？可能出现的问题？ 线程池？ Redis redis的几种数据结构。 hash。数据结构ziplist和hash表结合 string。SDS。解决C的char*字符串的缺陷（获取长度，缓冲区溢出，节省内存，二进制安全）； sets。hash表、ziplist list。ziplist，双向链表 zset。ziplist，skiplist bitmap。ziplist bloomfilter。多个hash函数 hyperloglog。 RDB bgsave命令。 COW(copy on write) fork子进程进行快照，共享内存，父进程修改数据时复制一份内存数据段修改。 AOF Redis 主从、哨兵、集群 ElasticSearch es mapping优化方案 es number与keyword区别？适用场景。 设计题 设计短链服务 设计用户关注与被关注系统 设计秒杀系统 设计用户点赞系统</summary></entry><entry><title type="html">面经</title><link href="https://blog.ihyx.top/2022/05/13/%E9%9D%A2%E7%BB%8F.html" rel="alternate" type="text/html" title="面经" /><published>2022-05-13T00:00:00+00:00</published><updated>2022-05-13T00:00:00+00:00</updated><id>https://blog.ihyx.top/2022/05/13/%E9%9D%A2%E7%BB%8F</id><content type="html" xml:base="https://blog.ihyx.top/2022/05/13/%E9%9D%A2%E7%BB%8F.html">&lt;h2 id=&quot;阿里菜鸟一面&quot;&gt;阿里菜鸟一面&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;介绍下经历&lt;/li&gt;
  &lt;li&gt;介绍下某个比较出彩的项目、细节、架构等。&lt;/li&gt;
  &lt;li&gt;array和链表查找的性能。&lt;/li&gt;
  &lt;li&gt;ThreadPoolExecutor的几个参数，以及原理。&lt;/li&gt;
  &lt;li&gt;发散题：为啥不是先扩容corePoolSize到max，再放入队列。&lt;/li&gt;
  &lt;li&gt;ThreadLocal的使用场景、原理。&lt;/li&gt;
  &lt;li&gt;断言、assert。&lt;/li&gt;
  &lt;li&gt;redis的几种数据类型。&lt;/li&gt;
  &lt;li&gt;sorted sets和sets的区别，sorted set的实现原理。&lt;/li&gt;
  &lt;li&gt;dubbo和spring cloud的区别。&lt;/li&gt;
  &lt;li&gt;dubbo的原理，服务发现机制。&lt;/li&gt;
  &lt;li&gt;uml图，类图（类与类的几种关系）&lt;/li&gt;
  &lt;li&gt;关于ci、cd，test用例的想法。&lt;/li&gt;
  &lt;li&gt;编码规范化的了解，有装过那些插件吗。&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;电信翼支付一面&quot;&gt;电信翼支付一面&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;redis 比较有意思的数据结构，zset，bitmap，时间换空间ziplist&lt;/li&gt;
  &lt;li&gt;redis集群模式实现，相比哨兵的好处？&lt;/li&gt;
  &lt;li&gt;redis 内存淘汰机制？过期数据如何处理？&lt;/li&gt;
  &lt;li&gt;kafka如何保证高可用？ack机制，ack=all可以完全保证数据一致性吗？&lt;/li&gt;
  &lt;li&gt;kafka为什么这么快？如何实现的顺序写？&lt;/li&gt;
  &lt;li&gt;kafka如何保证消息不丢失？&lt;/li&gt;
  &lt;li&gt;kafka多consumer消费同一份数据？&lt;/li&gt;
  &lt;li&gt;mysql B+树分叉如何决定的？&lt;/li&gt;
  &lt;li&gt;mysql 单表最大数据量是多少？取决于什么？B+树&lt;/li&gt;
  &lt;li&gt;mysql写入缓存的机制，redo log、undo log、binlog？&lt;/li&gt;
  &lt;li&gt;mysql主从同步为什么不能用redo log？&lt;/li&gt;
  &lt;li&gt;mysql 如何避免不可重复读？事务隔离级别？&lt;/li&gt;
  &lt;li&gt;当前公司的项目介绍？是否带过团队？&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;平安二面&quot;&gt;平安二面&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;简单说下经历，说下最近做的项目。
    &lt;ul&gt;
      &lt;li&gt;商品的结构，如何避免超卖，有哪些高并发场景，结算相关。&lt;/li&gt;
      &lt;li&gt;电商系统有哪些容灾保障。&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;限流如何实现，令牌桶如何避免请求集中在第一秒。&lt;/li&gt;
  &lt;li&gt;hashmap的原理，concurrenthashmap原理。&lt;/li&gt;
  &lt;li&gt;redis的数据类型，说下sorted sets的跳表怎么实现的？&lt;/li&gt;
  &lt;li&gt;https加密过程。&lt;/li&gt;
  &lt;li&gt;秒杀系统设计。&lt;/li&gt;
  &lt;li&gt;对自己未来的规划。&lt;/li&gt;
  &lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;</content><author><name>Hao</name></author><category term="面试" /><summary type="html">阿里菜鸟一面 介绍下经历 介绍下某个比较出彩的项目、细节、架构等。 array和链表查找的性能。 ThreadPoolExecutor的几个参数，以及原理。 发散题：为啥不是先扩容corePoolSize到max，再放入队列。 ThreadLocal的使用场景、原理。 断言、assert。 redis的几种数据类型。 sorted sets和sets的区别，sorted set的实现原理。 dubbo和spring cloud的区别。 dubbo的原理，服务发现机制。 uml图，类图（类与类的几种关系） 关于ci、cd，test用例的想法。 编码规范化的了解，有装过那些插件吗。 电信翼支付一面 redis 比较有意思的数据结构，zset，bitmap，时间换空间ziplist redis集群模式实现，相比哨兵的好处？ redis 内存淘汰机制？过期数据如何处理？ kafka如何保证高可用？ack机制，ack=all可以完全保证数据一致性吗？ kafka为什么这么快？如何实现的顺序写？ kafka如何保证消息不丢失？ kafka多consumer消费同一份数据？ mysql B+树分叉如何决定的？ mysql 单表最大数据量是多少？取决于什么？B+树 mysql写入缓存的机制，redo log、undo log、binlog？ mysql主从同步为什么不能用redo log？ mysql 如何避免不可重复读？事务隔离级别？ 当前公司的项目介绍？是否带过团队？ 平安二面 简单说下经历，说下最近做的项目。 商品的结构，如何避免超卖，有哪些高并发场景，结算相关。 电商系统有哪些容灾保障。 限流如何实现，令牌桶如何避免请求集中在第一秒。 hashmap的原理，concurrenthashmap原理。 redis的数据类型，说下sorted sets的跳表怎么实现的？ https加密过程。 秒杀系统设计。 对自己未来的规划。</summary></entry><entry><title type="html">Mac常用命令</title><link href="https://blog.ihyx.top/2021/03/07/Mac%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4.html" rel="alternate" type="text/html" title="Mac常用命令" /><published>2021-03-07T00:00:00+00:00</published><updated>2021-03-07T00:00:00+00:00</updated><id>https://blog.ihyx.top/2021/03/07/Mac%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4</id><content type="html" xml:base="https://blog.ihyx.top/2021/03/07/Mac%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4.html">&lt;h2 id=&quot;dock-栏&quot;&gt;Dock 栏&lt;/h2&gt;
&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;defaults write com.apple.Dock autohide-delay &lt;span class=&quot;nt&quot;&gt;-float&lt;/span&gt; 0 &lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; killall Dock

defaults delete com.apple.Dock autohide-delay &lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; killall Dock
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content><author><name>Hao</name></author><summary type="html">Dock 栏 defaults write com.apple.Dock autohide-delay -float 0 &amp;amp;&amp;amp; killall Dock defaults delete com.apple.Dock autohide-delay &amp;amp;&amp;amp; killall Dock</summary></entry><entry><title type="html">Homebrew镜像地址</title><link href="https://blog.ihyx.top/2021/03/06/Homebrew%E9%95%9C%E5%83%8F%E5%9C%B0%E5%9D%80.html" rel="alternate" type="text/html" title="Homebrew镜像地址" /><published>2021-03-06T00:00:00+00:00</published><updated>2021-03-06T00:00:00+00:00</updated><id>https://blog.ihyx.top/2021/03/06/Homebrew%E9%95%9C%E5%83%8F%E5%9C%B0%E5%9D%80</id><content type="html" xml:base="https://blog.ihyx.top/2021/03/06/Homebrew%E9%95%9C%E5%83%8F%E5%9C%B0%E5%9D%80.html">&lt;h2 id=&quot;homebrew-镜像地址推荐中科大镜像&quot;&gt;Homebrew 镜像地址（推荐中科大镜像）&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;brew.git 镜像
中科大镜像：https://mirrors.ustc.edu.cn/brew.git&lt;/p&gt;

    &lt;p&gt;清华镜像：https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git&lt;/p&gt;

    &lt;p&gt;GitHub镜像：https://github.com/Homebrew/brew.git&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;homebrew-core.git 镜像
中科大镜像：https://mirrors.ustc.edu.cn/homebrew-core.git&lt;/p&gt;

    &lt;p&gt;清华镜像：https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git&lt;/p&gt;

    &lt;p&gt;GitHub镜像：https://github.com/Homebrew/homebrew-core&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;替换-homebrew-镜像源&quot;&gt;替换 Homebrew 镜像源&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;替换 brew.git
以中科大镜像为例&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;brew &lt;span class=&quot;nt&quot;&gt;--repo&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

或

&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;git &lt;span class=&quot;nt&quot;&gt;-C&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;brew &lt;span class=&quot;nt&quot;&gt;--repo&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; remote set-url origin https://mirrors.ustc.edu.cn/brew.git
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ol&gt;
  &lt;li&gt;替换 homebrew-core.git
以中科大镜像为例&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;brew &lt;span class=&quot;nt&quot;&gt;--repo&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;/Library/Taps/homebrew/homebrew-core&quot;&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

或

&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;git &lt;span class=&quot;nt&quot;&gt;-C&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;brew &lt;span class=&quot;nt&quot;&gt;--repo&lt;/span&gt; homebrew/core&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;重置-homebrew-镜像源&quot;&gt;重置 Homebrew 镜像源&lt;/h2&gt;

&lt;p&gt;切回官方原始镜像（GitHub）&lt;/p&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;git &lt;span class=&quot;nt&quot;&gt;-C&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;brew &lt;span class=&quot;nt&quot;&gt;--repo&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; remote set-url origin https://github.com/Homebrew/brew.git

&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;git &lt;span class=&quot;nt&quot;&gt;-C&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;brew &lt;span class=&quot;nt&quot;&gt;--repo&lt;/span&gt; homebrew/core&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; remote set-url origin https://github.com/Homebrew/homebrew-core
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;参考资料&quot;&gt;参考资料&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Updating Homebrew… 长时间不动解决方法&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;table&gt;
      &lt;tbody&gt;
        &lt;tr&gt;
          &lt;td&gt;清华大学开源镜像&lt;/td&gt;
          &lt;td&gt;Homebrew 镜像使用帮助&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/li&gt;
&lt;/ol&gt;</content><author><name>Hao</name></author><summary type="html">Homebrew 镜像地址（推荐中科大镜像） brew.git 镜像 中科大镜像：https://mirrors.ustc.edu.cn/brew.git 清华镜像：https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git GitHub镜像：https://github.com/Homebrew/brew.git homebrew-core.git 镜像 中科大镜像：https://mirrors.ustc.edu.cn/homebrew-core.git 清华镜像：https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git GitHub镜像：https://github.com/Homebrew/homebrew-core 替换 Homebrew 镜像源 替换 brew.git 以中科大镜像为例 $ cd &quot;$(brew --repo)&quot; $ git remote set-url origin https://mirrors.ustc.edu.cn/brew.git 或 $ git -C &quot;$(brew --repo)&quot; remote set-url origin https://mirrors.ustc.edu.cn/brew.git 替换 homebrew-core.git 以中科大镜像为例 $ cd &quot;$(brew --repo)/Library/Taps/homebrew/homebrew-core&quot; $ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git 或 $ git -C &quot;$(brew --repo homebrew/core)&quot; remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git 重置 Homebrew 镜像源 切回官方原始镜像（GitHub） $ git -C &quot;$(brew --repo)&quot; remote set-url origin https://github.com/Homebrew/brew.git $ git -C &quot;$(brew --repo homebrew/core)&quot; remote set-url origin https://github.com/Homebrew/homebrew-core 参考资料 Updating Homebrew… 长时间不动解决方法 清华大学开源镜像 Homebrew 镜像使用帮助</summary></entry><entry><title type="html">Welcome</title><link href="https://blog.ihyx.top/2018/07/01/welcome.html" rel="alternate" type="text/html" title="Welcome" /><published>2018-07-01T00:00:00+00:00</published><updated>2018-07-01T00:00:00+00:00</updated><id>https://blog.ihyx.top/2018/07/01/welcome</id><content type="html" xml:base="https://blog.ihyx.top/2018/07/01/welcome.html">&lt;p&gt;If you see this page, that means you have setup your site. enjoy! :ghost: :ghost: :ghost:&lt;/p&gt;

&lt;p&gt;You may want to &lt;a href=&quot;https://tianqi.name/jekyll-TeXt-theme/docs/en/configuration&quot;&gt;config the site&lt;/a&gt; or &lt;a href=&quot;https://tianqi.name/jekyll-TeXt-theme/docs/en/writing-posts&quot;&gt;writing a post&lt;/a&gt; next. Please feel free to &lt;a href=&quot;https://github.com/kitian616/jekyll-TeXt-theme/issues&quot;&gt;create an issue&lt;/a&gt; or &lt;a href=&quot;mailto:kitian616@outlook.com&quot;&gt;send me email&lt;/a&gt; if you have any questions.&lt;/p&gt;

&lt;!--more--&gt;

&lt;hr /&gt;

&lt;p&gt;If you like TeXt, don’t forget to give me a star. :star2:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/kitian616/jekyll-TeXt-theme/&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/stars/kitian616/jekyll-TeXt-theme.svg?label=Stars&amp;amp;style=social&quot; alt=&quot;Star This Project&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content><author><name>Hao</name></author><category term="TeXt" /><summary type="html">If you see this page, that means you have setup your site. enjoy! :ghost: :ghost: :ghost: You may want to config the site or writing a post next. Please feel free to create an issue or send me email if you have any questions.</summary></entry></feed>