分类: LINUX
2014-04-28 18:14:45
在RedHat下安装完erlang和tsung之后,在终端输入tsung,得到错误:
-bash: tsung: command not found
错误排查过程:
第一步
检查erlang安装状况。在终端输入命令erl
[root@SamuluIndex ~]# erl
-bash: erl: command not found
需要设一下erlang的路径:
export PATH=$PATH:/usr/local/erlang/bin
设完之后检查一下路径
[root@SamuluIndex ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/erlang/bin
再次在终端输入erl:
[root@tixa examples]# erl
Erlang R15B01 (erts-5.9.1) [source] [smp:2:2] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.9.1 (abort with ^G)
1>
上述提示说明erl已能正常使用
第二步
检查tsung安装情况。在终端输入命令tsung
[root@SamuluIndex ~]# tsung
-bash: tsung: command not found
需要设一下tsung的路径
export PATH=$PATH:/usr/local/tsung/bin
设完之后检查一下路径:
[root@SamuluIndex ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/erlang/bin:/usr/local/tsung/bin
再次在终端输入tsung
[root@SamuluIndex ~]# tsung
Usage: tsung
Options:
-f
(use - for standard input)
-l
-i
-r
-s enable erlang smp on client nodes
-p
-m
(use - for standard output)
-F use long names (FQDN) for erlang nodes
-w warmup delay (default is 10 sec)
-v print version information and exit
-6 use IPv6 for Tsung internal communications
-h display this help and exit
[root@SamuluIndex ~]#