How to start Solr automatically?

后端 未结 8 593
深忆病人
深忆病人 2020-11-27 10:07

At the moment I have to go to /usr/java/apache-solr-1.4.0/example and then do:

java -jar start.jar

How do I get this to start

8条回答
  •  南方客
    南方客 (楼主)
    2020-11-27 10:35

    Adding the following lines to my /etc/init.d/solr file works to support Red Hat Linux (I copied them from /etc/init.d/mysql after reading comments by others here).

    # Comments to support chkconfig on Red Hat Linux
    # chkconfig: 2345 64 36
    # Description: A very fast and reliable search engine.
    

提交回复
热议问题