[SOLVED]OH2.Habmin directed to Habmin1 instead of Habmin2 problem

Problem description:
At first, I install OH2 and Habmin2.
However, as I face a problem,

I want to give a try on OH1.
I install OH1 and Habmin1 in different directory as OH2.

However, when I go back to OH2. And click Habmin on localhost:8080 page, I am directed to Habmin1.

More information is here.

I was told by anfuchs who face this problem also. His solution is reinstall al the software on his hardware.

I wonder if there is a way to fix this problem without operating system(Mine is ubuntu).

Can somebody suggest anything to help?