Creating Solr Core

 1icasimpan@example.local:/opt/solr/bin$ sudo su solr -s /bin/bash
 2solr@example.local:/opt/solr-6.6.2/bin$ /opt/solr/bin/solr create -c sample -p 8983
 3 
 4Copying configuration to new core instance directory:
 5/var/solr/data/sample
 6 
 7Creating new core 'sample' using command:
 8http://localhost:8983/solr/admin/cores?action=CREATE&name=cmoge&instanceDir=cmoge
 9 
10{
11  "responseHeader":{
12    "status":0,
13    "QTime":686},
14  "core":"cmoge"}

Then reload from the Web UI in https://example.local:8983/solr and you have the core running.