Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ha4wj-0004E3-Bt for pgsql-general@arkaria.postgresql.org; Sun, 09 Jun 2019 21:01:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ha4wh-0006d7-0L for pgsql-general@arkaria.postgresql.org; Sun, 09 Jun 2019 21:01:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ha4we-0006Vi-Rr for pgsql-general@lists.postgresql.org; Sun, 09 Jun 2019 21:01:42 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ha4wb-0005s3-Ia for pgsql-general@postgresql.org; Sun, 09 Jun 2019 21:01:39 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 842AC21FF3; Sun, 9 Jun 2019 17:01:36 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 09 Jun 2019 17:01:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=v 1QbXMg/Ysy5n8D3tzY5ngSYq0pMtQcMS/d3/i9H7KM=; b=Sv+C1hOcnRF0YC2AE xx2eIJH9PaXd7OcrTKNJkywfFPkOoi2VordaInQZMAZTH910CUB27eepUN6dSfR6 TFjZRirbnCNZ6XbH/7yuiC6EtxnpftiMhnbG8CY48egUvg7Idj8Kq5d3IZEeNJEE F+vprh9UUsyNJpP0algYJn4WG7lO4Z60dPTU3r8gZhc+ZEpMwSl0SmpnJMno+P2W S/X6gcvyH21lHQB59fgZ9uHUVCdLMhi6vB3HVxx9VvxHnjpkvtufAr0GkfpcevCT HcbfzEhhk0WhoJ2xWUW5OC/PBkRXQd1ki4vrCzpf+YlThpida8vz80klC+4liq2O Nd2+Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=v1QbXMg/Ysy5n8D3tzY5ngSYq0pMtQcMS/d3/i9H7 KM=; b=RMov/WN7ZsVPAXYbOeR8CKxXZ99Y7bUFcpEo2PiHZ8nHkRIjSlQ/eeXGF 9HC4opocSU0cgLAxm5MFQlNFf3Vlrmj0A5m0X61yFqk1qh8OKpS/a99fydVkN+49 LC4OgkD+7RGdjFOPfnoQyxvhNqDNbQscM15FCQ2ct/oEJkTGDXVwU05A434EoeKe 7kfNl/GeKkglh86sbar/SGgHRqdtQ+7B+UTe+IxpGimgjUsQewv7X9t52v+H3dhu 2l1j/uBD0ncXPSZNrO74zkVrX+yrsgOyEtAyV6+x0VGsf5t+ZbFNS+FC/Gx+IHzq EALbHVcOV6r7tSOYdQpJqKbjDO+4Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehtddgudehlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuffhomhgrihhnpehruhgshihonhhrrghilhhsrdhorhhgnecukfhppeejuddr vdduvddrudehtddrvddtvdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrd hklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 391AF380085; Sun, 9 Jun 2019 17:01:35 -0400 (EDT) Subject: Re: Connection refused (0x0000274D/10061) To: Ray O'Donnell , Sourav Majumdar Cc: pgsql-general@postgresql.org References: <669cf8ed-877e-4420-3b60-f4e112ad8208@rodonnell.ie> <33b9eb3f-278e-977b-1290-a6eddf044c7e@rodonnell.ie> From: Adrian Klaver Message-ID: <4d2a7529-d9d5-500d-80a3-313cc5c799e0@aklaver.com> Date: Sun, 9 Jun 2019 14:01:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <33b9eb3f-278e-977b-1290-a6eddf044c7e@rodonnell.ie> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/9/19 1:46 PM, Ray O'Donnell wrote: > On 09/06/2019 20:49, Sourav Majumdar wrote: >> Hello, >> Thanks for your quick response. I am new to pgsql, didnot configured >> it , can you please give a guidance for that? I will be highly oblised >> if you can assist me. >> I am using windows 8.1, 64 bit. >> ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32] >> Rails 5.2.3 >> Trying to setup ruby on rails on my local host Where are you doing?: "When I am trying to run localhost:3000 ..." Or is the above the port the Rails Web server is running on? More below. > > Hi, > > PostgreSQL's default port is 5432, and if the Postgres instance on your > computer is the only one there then that's what it'll be listening o > > I don't know anything about Ruby or how you connect to PG from it, but > you need to tell it to use port 5432. https://guides.rubyonrails.org/configuring.html#configuring-a-database From a Redmine install of mine(running against standard port(5432)): # PostgreSQL configuration example production: adapter: postgresql database: redmine host: localhost port: 5432 username: redmine password: ******** > > Alternatively, if you really want to use port 3000, then you need to > edit postgresql.conf and change the "port" setting there. You'll need to > restart PG for this to take effect. > > Either way, you need to connect to the port on which PG is listening. > > Ray. > -- Adrian Klaver adrian.klaver@aklaver.com