Created
April 25, 2018 05:58
-
-
Save gpsarkar/409df2355a9a6f2488399541050dfc7a to your computer and use it in GitHub Desktop.
Tsung Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run Tsung | |
-------------------------------- | |
tsung -f /root/tsung-scenarios/basic2.xml -l /root/tsung-scenarios/log/ start | |
tsung-recorder record_tag "<transaction name='groups'>" | |
plot | |
-------------------------------- | |
/usr/lib/tsung/bin/tsung_stats.pl | |
/usr/local/lib/tsung/bin/tsung_stats.pl | |
Dashboard | |
--------------------------- | |
http://localhost:8091/es/ts_web:status | |
Create users in ejabbered | |
------------------------------------- | |
for i in `seq 1 10000`; do echo $i && ejabberdctl register test$i servername password$i; done | |
Send RAW Xml to ejabbered | |
----------------------- | |
<jabber type="raw" ack="no_ack" data="<stream>foo</stream>"></jabber> | |
Install Ejabbered in CentOS Minimal (https://antonraharja.com/2016/02/28/howto-setup-ejabberd-16-on-centos-67/) | |
------------------------------------- | |
**Update CentOS** | |
yum -y update | |
yum -y install system-config-firewall system-config-firewall-tui system-config-network system-config-network-tui | |
yum -y install wget git gcc g++ gcc-c++ perl ncurses-devel openssl-devel unixODBC-devel libyaml-devel expat-devel zlib-devel mysql-devel | |
**Disable Firewall** | |
system-config-firewall | |
**Disable SELINUX** | |
vi /etc/sysconfig/selinux | |
Edit /etc/sysconfig/selinux and change SELINUX=enforcing to SELINUX=disabled: | |
reboot | |
sestatus | |
**Download Source Codes** | |
mkdir -p /root/src | |
cd ~/src | |
wget -c "https://www.process-one.net/downloads/downloads-action.php?file=/ejabberd/16.06/ejabberd-16.06.tgz" -O ejabberd-16.06.tgz | |
**Compile and Install Erlang/OTP** | |
wget -c http://erlang.org/download/otp_src_19.0.tar.gz | |
cd ~/src | |
tar -zxf otp_src_19.0.tar.gz | |
cd otp_src_19.0 | |
./configure --prefix=/usr/local --disable-hipe --enable-smp-support --enable-threads --enable-kernel-polls | |
make | |
make install | |
cd ~/src | |
tar -zxf ejabberd-16.06.tgz | |
cd ejabberd-16.06 | |
./configure --prefix=/usr/local --enable-tools --enable-odbc --enable-mysql --enable-zlib --enable-user=ejabberd | |
make | |
make install | |
**Init Script and Verification** | |
cp ~/src/ejabberd-16.06/ejabberd.init /etc/init.d | |
chkconfig --add ejabberd.init | |
reboot | |
netstat -lnptu | egrep "(5222|5269|5280)" | |
ejabberdctl status | |
**Setup Administrator Account** | |
ejabberdctl register admin localhost <PASSWORD> | |
vi /usr/local/etc/ejabberd/ejabberd.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment