Found the reason for this error, I executed the netstat on the ports 80, 2181, 3181 and found the following, netstat -nlp | grep 3181 tcp 0 0 0.0.0.0:3181 0.0.0.0:* LISTEN 4106/PatrolAgent
The reason for the issue was due to system kernel error. The port was bound already and not released, so the processes were dead but port was not released. Then killed the process 4106.... Then it started working...