First, download nssm
command
nssm install solr
Then to start the service in solr, and set to automatic
Ctrl + Shift + Esc (explanation: Esc usually in the top left of the keyboard)
Reference article : https://blog.csdn.net/wohaqiyi/article/details/80549912