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
redis
add a comment |
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
redis
add a comment |
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
redis
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
redis
edited Jan 31 '14 at 17:29
Braiam
51k20133217
51k20133217
asked Jan 31 '14 at 10:20
user3256847
11124
11124
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
up vote
0
down vote
- 127.0.0.1> AUTH your password
- OK <--response from redis
- (7.75s) <--- it's too.
- 127.0.0.1>ping <--test if you want
PONG <--you can receive response from redis
you can use AUTH keyword :) and after write your password.
add a comment |
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
add a comment |
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.
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
- 127.0.0.1> AUTH your password
- OK <--response from redis
- (7.75s) <--- it's too.
- 127.0.0.1>ping <--test if you want
PONG <--you can receive response from redis
you can use AUTH keyword :) and after write your password.
add a comment |
up vote
0
down vote
- 127.0.0.1> AUTH your password
- OK <--response from redis
- (7.75s) <--- it's too.
- 127.0.0.1>ping <--test if you want
PONG <--you can receive response from redis
you can use AUTH keyword :) and after write your password.
add a comment |
up vote
0
down vote
up vote
0
down vote
- 127.0.0.1> AUTH your password
- OK <--response from redis
- (7.75s) <--- it's too.
- 127.0.0.1>ping <--test if you want
PONG <--you can receive response from redis
you can use AUTH keyword :) and after write your password.
- 127.0.0.1> AUTH your password
- OK <--response from redis
- (7.75s) <--- it's too.
- 127.0.0.1>ping <--test if you want
PONG <--you can receive response from redis
you can use AUTH keyword :) and after write your password.
answered Dec 5 '14 at 6:11
Youn Na Lee
1
1
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Nov 21 at 21:17
S_Flash
1,061317
1,061317
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Mar 27 '15 at 9:21
Fabby
25.7k1359159
25.7k1359159
answered Mar 27 '15 at 8:19
Maxter
1
1
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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