Unable to configure port in Redis database











up vote
2
down vote

favorite












I am trying to configure the ports in Redis database. I have changed the port number to 7778 in the redis.conf file. This file is in /etc/redis.conf



and I'm using this command



redis-server /etc/redis.conf


And this goes through. I'm able to get through. However if I execute this command



redis-cli 


or



redis-cli /etc/redis.conf


I'm getting this error



could not connect to redis at 127.0.0.1:6379:connection refused.


I then tried this command



redis-cli -p 7778

127.0.0.1> ping
(error) NOAUTH authentication required









share|improve this question




























    up vote
    2
    down vote

    favorite












    I am trying to configure the ports in Redis database. I have changed the port number to 7778 in the redis.conf file. This file is in /etc/redis.conf



    and I'm using this command



    redis-server /etc/redis.conf


    And this goes through. I'm able to get through. However if I execute this command



    redis-cli 


    or



    redis-cli /etc/redis.conf


    I'm getting this error



    could not connect to redis at 127.0.0.1:6379:connection refused.


    I then tried this command



    redis-cli -p 7778

    127.0.0.1> ping
    (error) NOAUTH authentication required









    share|improve this question


























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I am trying to configure the ports in Redis database. I have changed the port number to 7778 in the redis.conf file. This file is in /etc/redis.conf



      and I'm using this command



      redis-server /etc/redis.conf


      And this goes through. I'm able to get through. However if I execute this command



      redis-cli 


      or



      redis-cli /etc/redis.conf


      I'm getting this error



      could not connect to redis at 127.0.0.1:6379:connection refused.


      I then tried this command



      redis-cli -p 7778

      127.0.0.1> ping
      (error) NOAUTH authentication required









      share|improve this question















      I am trying to configure the ports in Redis database. I have changed the port number to 7778 in the redis.conf file. This file is in /etc/redis.conf



      and I'm using this command



      redis-server /etc/redis.conf


      And this goes through. I'm able to get through. However if I execute this command



      redis-cli 


      or



      redis-cli /etc/redis.conf


      I'm getting this error



      could not connect to redis at 127.0.0.1:6379:connection refused.


      I then tried this command



      redis-cli -p 7778

      127.0.0.1> ping
      (error) NOAUTH authentication required






      redis






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 31 '14 at 17:29









      Braiam

      50.9k20133217




      50.9k20133217










      asked Jan 31 '14 at 10:20









      user3256847

      11124




      11124






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          0
          down vote














          1. 127.0.0.1> AUTH your password

          2. OK <--response from redis

          3. (7.75s) <--- it's too.

          4. 127.0.0.1>ping <--test if you want

          5. PONG <--you can receive response from redis


          6. you can use AUTH keyword :) and after write your password.







          share|improve this answer




























            up vote
            0
            down vote













            redis-cli -p 7778

            127.0.0.1> ping
            (error) NOAUTH authentication required


            Port is working. But you need enter password:



            >auth <yourpassword>


            OR



            redis-cli -p 7778 -a <yourpassword>


            OR remove requirepass in /etc/redis.conf






            share|improve this answer




























              up vote
              -1
              down vote













              I have had the same problem because I changed the bind IP address in /etc/redis.conf



              So I manually set the host ip by using this command:



              redis-cli -h 192.168.1.100 -p 7778


              Then it started working for me.






              share|improve this answer























                Your Answer








                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "89"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                 

                draft saved


                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f413456%2funable-to-configure-port-in-redis-database%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                0
                down vote














                1. 127.0.0.1> AUTH your password

                2. OK <--response from redis

                3. (7.75s) <--- it's too.

                4. 127.0.0.1>ping <--test if you want

                5. PONG <--you can receive response from redis


                6. you can use AUTH keyword :) and after write your password.







                share|improve this answer

























                  up vote
                  0
                  down vote














                  1. 127.0.0.1> AUTH your password

                  2. OK <--response from redis

                  3. (7.75s) <--- it's too.

                  4. 127.0.0.1>ping <--test if you want

                  5. PONG <--you can receive response from redis


                  6. you can use AUTH keyword :) and after write your password.







                  share|improve this answer























                    up vote
                    0
                    down vote










                    up vote
                    0
                    down vote










                    1. 127.0.0.1> AUTH your password

                    2. OK <--response from redis

                    3. (7.75s) <--- it's too.

                    4. 127.0.0.1>ping <--test if you want

                    5. PONG <--you can receive response from redis


                    6. you can use AUTH keyword :) and after write your password.







                    share|improve this answer













                    1. 127.0.0.1> AUTH your password

                    2. OK <--response from redis

                    3. (7.75s) <--- it's too.

                    4. 127.0.0.1>ping <--test if you want

                    5. PONG <--you can receive response from redis


                    6. you can use AUTH keyword :) and after write your password.








                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Dec 5 '14 at 6:11









                    Youn Na Lee

                    1




                    1
























                        up vote
                        0
                        down vote













                        redis-cli -p 7778

                        127.0.0.1> ping
                        (error) NOAUTH authentication required


                        Port is working. But you need enter password:



                        >auth <yourpassword>


                        OR



                        redis-cli -p 7778 -a <yourpassword>


                        OR remove requirepass in /etc/redis.conf






                        share|improve this answer

























                          up vote
                          0
                          down vote













                          redis-cli -p 7778

                          127.0.0.1> ping
                          (error) NOAUTH authentication required


                          Port is working. But you need enter password:



                          >auth <yourpassword>


                          OR



                          redis-cli -p 7778 -a <yourpassword>


                          OR remove requirepass in /etc/redis.conf






                          share|improve this answer























                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            redis-cli -p 7778

                            127.0.0.1> ping
                            (error) NOAUTH authentication required


                            Port is working. But you need enter password:



                            >auth <yourpassword>


                            OR



                            redis-cli -p 7778 -a <yourpassword>


                            OR remove requirepass in /etc/redis.conf






                            share|improve this answer












                            redis-cli -p 7778

                            127.0.0.1> ping
                            (error) NOAUTH authentication required


                            Port is working. But you need enter password:



                            >auth <yourpassword>


                            OR



                            redis-cli -p 7778 -a <yourpassword>


                            OR remove requirepass in /etc/redis.conf







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Nov 21 at 21:17









                            S_Flash

                            1,015217




                            1,015217






















                                up vote
                                -1
                                down vote













                                I have had the same problem because I changed the bind IP address in /etc/redis.conf



                                So I manually set the host ip by using this command:



                                redis-cli -h 192.168.1.100 -p 7778


                                Then it started working for me.






                                share|improve this answer



























                                  up vote
                                  -1
                                  down vote













                                  I have had the same problem because I changed the bind IP address in /etc/redis.conf



                                  So I manually set the host ip by using this command:



                                  redis-cli -h 192.168.1.100 -p 7778


                                  Then it started working for me.






                                  share|improve this answer

























                                    up vote
                                    -1
                                    down vote










                                    up vote
                                    -1
                                    down vote









                                    I have had the same problem because I changed the bind IP address in /etc/redis.conf



                                    So I manually set the host ip by using this command:



                                    redis-cli -h 192.168.1.100 -p 7778


                                    Then it started working for me.






                                    share|improve this answer














                                    I have had the same problem because I changed the bind IP address in /etc/redis.conf



                                    So I manually set the host ip by using this command:



                                    redis-cli -h 192.168.1.100 -p 7778


                                    Then it started working for me.







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Mar 27 '15 at 9:21









                                    Fabby

                                    25.6k1359159




                                    25.6k1359159










                                    answered Mar 27 '15 at 8:19









                                    Maxter

                                    1




                                    1






























                                         

                                        draft saved


                                        draft discarded



















































                                         


                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f413456%2funable-to-configure-port-in-redis-database%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        How did Captain America manage to do this?

                                        迪纳利

                                        南乌拉尔铁路局