-bash: redis: command not found

  1.  Installed in linux redis, pull over first installation, then the command: make    were compiled after compiling complete the installation from the command make install; results during boot linux Executes redis -server reported the error: -bash: redis: command not found command not found; then tried redis -server redis.conf error or reported above, the first big ah, then check the internet, ah, ah the best today can be resolved, then on his own in the src directory to see redis Server-Redis    , this show has, ah, then see the other
  2. Since the Internet that seemingly because of incomplete compiled and installed, so it himself tried to put those like copy redis -server to the next src / bin directory, or unsuccessful ah, or what the error report, Xiecai
  3. Woke up this morning, or to solve ah, otherwise redis -server redis.conf does not take too ah, then made himself saw the picture above, and found that, before I lost command of seemingly not ah, people are even command to one of redis-server, because the package before extracting tar -xvf ... more confused, get used to, hey Woon Dawu ah! I did not see the strange, brain damage ah!
  4. That command as before: redis-server command generally do not, because when you exit the edit state Ctrl + c also put redis dropped behind, so generally use this command redis-server redis.conf
  5. If you try does not work, then try to copy the file to the src / bin directory to try, if successful, check to see if the port opened: ps -ef | grep redis If so, then it is a success

Guess you like

Origin www.cnblogs.com/qiaohechen/p/11297851.html