Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Once launched, the SOLR console will be available at http: // localhost: 8983 / solr and we can configure Alfresco to use this indexing engine.
- ?
- ### Solr indexing ###
- index.subsystem.name=solr6
- solr.host=localhost
- solr.port=8983
- solr.port.ssl=8984
- solr.secureComms=none
- We declare SOLR 6 as a service to adjust the memory parameters at startup and to be started at system boot .
- ?
- # cat solr6
- #!/bin/sh
- #
- # chkconfig: 2345 80 30
- # description: Alfresco Community SOLR6
- #
- ### BEGIN INIT INFO
- # Provides: solr6
- # Required-Start: $local_fs $remote_fs
- # Required-Stop: $local_fs $remote_fs
- # Should-Start: $all
- # Should-Stop: $all
- # Default-Start: 2 3 4 5
- # Default-Stop: 0 1 6
- # Short-Description: Start/stop Alfresco SOLR6
- # Description: Start/stop Alfresco SOLR6
- ### END INIT INFO
- RETVAL=0
- start () {
- /opt/alfresco/solr6/solr/bin/solr start -m 2G -force "$2"
- RETVAL=$?
- if [ -d "/var/lock/subsys" ] && [ `id -u` = 0 ] && [ $RETVAL -eq 0 ] ; then
- touch /var/lock/subsys/solr6
- fi
- }
- stop () {
- /opt/alfresco/solr6/solr/bin/solr stop -all "$2"
- RETVAL=$?
- }
- case "$1" in
- start)
- start "$@"
- ;;
- stop)
- stop "$@"
- ;;
- restart)
- stop "$@"
- start "$@"
- ;;
- *)
- /opt/alfresco/solr6/solr/bin/solr "$@"
- RETVAL=$?
- esac
- exit $RETVAL
- $ service solr6 stop
- $ service solr6 start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement