Before begin, I assume you downloaded proper Solr version from web page of Solr . (For e.g: solr-6.4.1.tgz)
After that I assume you uncompress the compressed file < solr-6.4.1.tgz > and from command line you changed your current working directory to uncompressed directory < solr-6.4.1/ >.
The last step of pre-configuration is ensure that JDK 8 install correctly and java -version command return properly.
If you have done above instructions you are ready for rest part. Let's begin: