Monday, July 20, 2015

Hi All, In this post I'll describe how you can install RabbitMQ sever and Management console in the easy way using apt-get :). You can follow the following instructions to get this done.

Installing RabbitMQ Server
  1. Add the following line to your /etc/apt/sources.list file
    deb testing main
  2. To avoid warnings about unsigned packages, add repo public key to your trusted key list using apt-key: execute following commads,
    sudo apt-key add rabbitmq-signing-key-public.asc

  3. Run apt-get update.
  1. Install packages for RabitMQ server, you can execute the following command for this.
    sudo apt-get install rabbitmq-server
Note : After Installing RabbitMQ some default configuration files may not exist by default so you need to create these files manually in relevant locations if you need to change default settings of RabbitMQ.
For e,g.: If rabbitmq-env.conf is not available create the file in /etc/rabbitmq/rabbitmq-env.conf and you can add the parameters you need. In the same way you also can add /etc/rabbitmq/rabbitmq.config file as well, in this you can define system parameters which will be used by RabbitMQ. For now we will continue with the default settings. 

Install the Management interface

The management plugin is included in the RabbitMQ distribution. To enable it, use rabbitmq-plugins execute the following command

sudo rabbitmq-plugins enable rabbitmq_management

Now lets create a new user and Grant Permission to the suer to enter the management console and perform queue operations. For this execute the followig commands It will create a user named admin with password admin.

sudo rabbitmqctl add_user admin admin
sudo rabbitmqctl set_user_tags admin administrator
sudo rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"

Now you should be able to access the management console in the following URL.

It is also recommend to setup OS level parameters to tuneup RabbitMQ. e.g: ulimits etc. But for testing purposes above configurations will do.

Now You can navigate to the Queue section of the management console and create a new Queue.

Monday, July 13, 2015

In this post I will explain you how to add a delay to a response when working with mock services in SOAPUI. This is quit simple, in-order to create a SOAP UI mock service you follow this guide. After creating a mock service do the following to add a delay to the response.

1. Open The mock service and click on the specific action  and open the response tab as shown below.

2. Now from dispatch option select Script option.

3. Now add the following code to the content. Please note that I'm using groovy as the scripting language and you can change this from settings.


You can change the delay by changing the value note that the value is specified in milliseconds. This will add a delay to the response. :)

Monday, July 6, 2015

After installing Apache Server using apt-get it can be quit difficult to remove all the packages that were installed together with Apache2. You can follow the following instructions to completely get rid of Apache2 Server.

1. Remove the apache server.

sudo apt-get --purge remove apache2

2. Now remove any remaining packages

a. Search whether there are any remains pakcages. To see this execute the following command

dpkg --get-selections | grep -v deinstall | grep apache*

This will give a simmilar output as following.

apache2-bin         install
apache2-data         install
apache2-utils         install
libapache2-mod-proxy-html install
libapache2-mod-svn install
libapache2-mpm-itk install
libapache2-svn install

b. Now you should remove each of these packages one by one as shown below.

 sudo apt-get --purge remove apache2-bin
sudo apt-get --purge remove apache2-data
sudo apt-get --purge remove apache2-utils              etc.

After completely removing each package you should be able to get rid of Apache2 server. You can confirm this by checking whether there are any services relevant to apache2.

e.g : sudo service apache2 start

The above command will give an error saying that the service is not available.
Subscribe to RSS Feed Follow me on Twitter!