Hi @harish singathi,
Are you getting this error during Knox startup? If yes, then please make sure that port 8440 is free and not in use by some stale process.
If that doesn't solve this issue, then you can try restarting Knox in debug mode. That might tell you more on the reason behind this 'Connection refused'.
Hope this helps !