How run solr from command line? -
i run:
solr@server:~$ /usr/lib/jvm/java-8-oracle/bin/java -server -xms512m -xmx512m -xx:newratio=3 -xx:survivorratio=4 -xx:targetsurvivorratio=90 -xx:maxtenuringthreshold=8 -xx:+useconcmarksweepgc -xx:+useparnewgc -xx:concgcthreads=4 -xx:parallelgcthreads=4 -xx:+cmsscavengebeforeremark -xx:pretenuresizethreshold=64m -xx:+usecmsinitiatingoccupancyonly -xx:cmsinitiatingoccupancyfraction=50 -xx:cmsmaxabortableprecleantime=6000 -xx:+cmsparallelremarkenabled -xx:+parallelrefprocenabled -verbose:gc -xx:+printheapatgc -xx:+printgcdetails -xx:+printgcdatestamps -xx:+printgctimestamps -xx:+printtenuringdistribution -xx:+printgcapplicationstoppedtime -xloggc:/var/solr/logs/solr_gc.log -djetty.port=8983 -dstop.port=7983 -dstop.key=solrrocks -duser.timezone=utc -djetty.home=/opt/solr/server -dsolr.solr.home=/var/solr/data -dsolr.install.dir=/opt/solr -dlog4j.configuration=file:/var/solr/log4j.properties -xss256k -xx:onoutofmemoryerror=/opt/solr/bin/oom_solr.sh 8983 /var/solr/logs -jar /opt/solr-5.5.4/server/start.jar --module=http
and error:
error: not find or load main class 8983
as suggested @matslindh, use solr script.
in terminal navigate /opt/solr.
cd /opt/solr
you can see solr.sh file inside bin folder , hit below command
bin/solr start
for other options use command
bin/solr -h
Comments
Post a Comment