Total: 1
reason being given command not found, One reason is because the software (tool) is not installed, and the other reason is because the installation, but not to the PATH command
2.
If the software is installed, but not added to the PATH command, it must be a directory corresponding to execute the command, and to add ./ performed, such as: ./ redis-cli ./pgbehch --help ./psql
3.
Add the command to the PATH, the command can be executed at any place, and without beginning ./
Solution:
Add the command to the PATH to
Reference:
https://www.cnblogs.com/leibg/p/4479921.html
Note:
a variable corresponding to multiple values, separated by a:
, a plurality of values such as PATH, it can be treated
vi / etc / profile
export PATH=/bin:/sbin:/usr/bin
Is the definition of the PATH # / bin: Variable / usr / bin, etc. These Road King, wherein a colon delimiter between directories: / sbin
# The variables to take effect
source /etc/profile
eg Linux to achieve redis-cli command in any directory
vi / etc / profile
#: / Usr / local / redis-3.2.5 / src that is added back, represents the directory path redis-cli command exists
export PATH=$JAVA_HOME/bin:$RUBY_HOME/bin:$PATH:/usr/local/redis-3.2.5/src
source /etc/profile
Effect: the root of the effective implementation of redis-cli command, ok