Skip to content

help me #2164

Closed
Closed

Description

@a312983516

[root@iZ25ngimygcZ redis-2.8.17]# redis-cli
127.0.0.1:6379> 127.0.0.1:6379> s127.0.0.1:6379> se127.0.0.1:6379> put127.0.0.1:6379> set 127.0.0.1:6379> set a127.0.0.1:6379> set a 127.0.0.1:6379> set a d127.0.0.1:6379> set a dd
ok
127.0.0.1:6379>

The command is repeated,I want to do。

Activity

  1. a312983516 commented on Nov 30, 2014

    @a312983516
    Author

    Whether or not to copy antirez/linenoise /opt/redis/deps/linenoise ?
    I do so, and restart the "redis", but the problem still unsolved

  2. badboy commented on Nov 30, 2014

    @badboy
    Contributor

    This is not a problem with the redis-server, but with the redis-cli utility and its use of the linenoise library.
    Please clone and build https://github.com/antirez/linenoise, then try the provided linenoise_example.
    Does this error occur there as well? Please provide output of echo $TERM.
    Please also try TERM=linux redis-cli (or TERM=linux ./linenoise_example if it is broken there as well). Does this change anything?

  3. a312983516 commented on Dec 1, 2014

    @a312983516
    Author

    echo $TERM = vt100
    I will be going to do after the "https://github.com/antirez/linenoise" to download, I don't clear what's this "linenoise_example".

  4. badboy commented on Dec 1, 2014

    @badboy
    Contributor

    It's an example tool included in the linenoise repository. Execute make in the linenoise directory after you cloned it and it should compile the linenoise_example program. You can then execute it with ./linenoise_example

  5. a312983516 commented on Dec 1, 2014

    @a312983516
    Author

    [root@iZ25ngimygcZ linenoise-master]#
    [root@iZ25ngimygcZ linenoise-master]# ./linenoise_example

    hello>

    How do I do next。

  6. badboy commented on Dec 1, 2014

    @badboy
    Contributor

    Type something. Does the same problem occur?
    Did you try TERM=linux redis-cli already?

  7. a312983516 commented on Dec 1, 2014

    @a312983516
    Author

    [root@iZ25ngimygcZ linenoise-master]# ./linenoise_example
    hello> TERM=linux redis-cli
    echo: 'TERM=linux redis-cli '
    hello>

    Is that so? But "redis - cli" problem still unsolved

  8. a312983516 commented on Dec 1, 2014

    @a312983516
    Author

    [root@iZ25ngimygcZ linenoise-master]# redis-cli
    127.0.0.1:6379> 127.0.0.1:6379> s127.0.0.1:6379> sa
    (error) ERR unknown command 'sa'
    127.0.0.1:6379>

  9. mattsta commented on Dec 1, 2014

    @mattsta
    Contributor

    What's your host/machine/shell/terminal application?

    Can always try running reset to see if that clears up anything.

  10. a312983516 commented on Dec 2, 2014

    @a312983516
    Author

    linux CentOS release 6.5

    restart the "redis", but the problem still unsolved

  11. badboy commented on Dec 2, 2014

    @badboy
    Contributor

    Again: it's not necessary to restart "redis" (if by this you mean the redis-server process). This is solely a problem with redis-cli.

    1. Execute TERM=linux redis-cli, type something. Problem still there?
    2. echo $SHELL. Provide output
    3. Which terminal application`
    4. Execute reset. Execute redis-cli. Problem still there?

    If you can, please come to our IRC channel #redis on chat.freenode.net. Would be much easier to help you there instead of this lengthy issue discussion.

  12. a312983516 commented on Dec 2, 2014

    @a312983516
    Author

    1、
    [root@iZ25ngimygcZ ~]# TERM=linux redis-cli
    127.0.0.1:6379> 127.0.0.1:6379> s127.0.0.1:6379> se127.0.0.1:6379> set
    (error) ERR wrong number of arguments for 'set' command
    127.0.0.1:6379>

    2、/bin/bash

    3、4、Cannot perform the right result

    I go to consult others, thank you all the help of man。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions