<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>2072190662 (yangyyj)</title>
    <link>https://ruby-china.org/2072190662</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>求助使用 pg 包连接 postgres 的问题</title>
      <description>&lt;p&gt;我一开始是只能本地使用 pg 包使用 localhost 访问本地的 postgres，
服务器上的 ruby 使用 pg 包使用 localhost 访问服务器的 postgres，
但是使用 ip 地址既访问不了本地数据库，也访问不了云服务器上的数据库
我去查了资料，按照指导进行修改了
&lt;img src="https://l.ruby-china.com/photo/2072190662/8f9eb7a5-3562-47ae-899d-05bd31bbdac9.png!large" title="" alt=""&gt;
这时本地可以使用 ip 地址访问本地数据库了，但是还是访问不了服务器的数据库
于是我把服务器的数据库也修改了配置，发现服务器使用 ruby 使用 ip 还是访问不了 postgres
&lt;img src="https://l.ruby-china.com/photo/2072190662/d28f66aa-0263-4fc0-8621-8df7cb3d3096.png!large" title="" alt=""&gt;
想问一下该怎么解决&lt;/p&gt;

&lt;p&gt;目标是本地使用 pg 远程连接服务器上的 postgres&lt;/p&gt;</description>
      <author>2072190662</author>
      <pubDate>Thu, 14 Apr 2022 09:59:40 +0800</pubDate>
      <link>https://ruby-china.org/topics/42300</link>
      <guid>https://ruby-china.org/topics/42300</guid>
    </item>
    <item>
      <title>想请教一下关于 gem 源码的问题</title>
      <description>&lt;p&gt;最近在跟老师做一个项目，目的应该是要模仿连接 postgres 的 gem 包 pg 来为华为的数据库写一个连接 gem 包
老师给了我源码地址&lt;a href="https://github.com/ged/ruby-pg" rel="nofollow" target="_blank"&gt;https://github.com/ged/ruby-pg&lt;/a&gt;，让我去读一读源码，要知道那一部分是干嘛的，但是我看里面的各种代码很乱，完全不知道有什么联系
各位可以给一点建议吗，如何去学习这个东西，还需要哪些知识
哦对了，我现在还是大二，最近也才刚接触 ruby
谢谢各位了&lt;/p&gt;</description>
      <author>2072190662</author>
      <pubDate>Mon, 04 Apr 2022 21:34:05 +0800</pubDate>
      <link>https://ruby-china.org/topics/42282</link>
      <guid>https://ruby-china.org/topics/42282</guid>
    </item>
    <item>
      <title>Linux 下源更换失败怎么解决啊</title>
      <description>&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/2072190662/40a108a2-40b2-4f3c-a223-ce0c49c52299.png!large" title="" alt=""&gt;!
之前使用 gem install pg 的时候告诉我什么 SSL verification error 加上一堆东西
然后我去搜索了一下要跟换源，但是跟换 china 源时出现上面的错误，现在连之前的源都不见了，该怎么解决啊&lt;/p&gt;</description>
      <author>2072190662</author>
      <pubDate>Thu, 31 Mar 2022 20:37:59 +0800</pubDate>
      <link>https://ruby-china.org/topics/42272</link>
      <guid>https://ruby-china.org/topics/42272</guid>
    </item>
  </channel>
</rss>
