1、安装erlang wget http://erlang.org/download/otp_src_22.3.tar.gz tar -xf otp_src_22.3.tar.gz yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel libtool libtool-ltdl-devel cd otp_src_22.3 ./otp_build autoconf ./configure make make install vim /etc/profile export ERLANG_HOME=/usr/local/lib/erlang :$ERLANG_HOME/bin 拼接到PATH 后面 source /etc/profile erl 2、安装perl yum remove perl yum -y install gcc cpan wget http://search.cpan.org/CPAN/authors/id/S/SH/SHAY/perl-5.26.1.tar.gz tar -xzf perl-5.26.1.tar.gz.gz cd perl-5.26.1 ./Configure make -j 4 make test 或 make && make test make install 重新打开一个 终端 perl -v 3、安装tsung1.7 wget http://tsung.erlang-projects.org/dist/tsung-1.7.0.tar.gz tar -zxf tsung-1.7.0.tar.gz cd tsung-1.7.0 ./configure make make install

vim /etc/profile export TSUNG_HOME=/usr/local/lib/tsung :$TSUNG_HOME/bin 拼接到PATH 后面

4、如果出现如下错误: Starting Tsung Log directory is: /root/.tsung/logs/20200409-2005 [os_mon] memory supervisor port (memsup): Erlang has closed [os_mon] cpu supervisor port (cpu_sup): Erlang has closed creating subdirectory data creating subdirectory gnuplot_scripts creating subdirectory images warn, last interval (8) not equal to the first, use the first one (10) No data for Bosh No data for Match No data for Event No data for Async No data for Errors size_sent is equal to 0 ! Serving HTTP on 0.0.0.0 port 8080 .. 解决方法: yum install perl-Template-Toolkit -y