Elasticsearch is stoping immediately after start

Check whether your JAVA jdk is in sync with your ES version. You can try upgrading to the latest ES 7.x where there is an option to go for bundled jdk plus ES.