Advertisement
Guest User

solr6 config

a guest
Apr 20th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. Once launched, the SOLR console will be available at http: // localhost: 8983 / solr and we can configure Alfresco to use this indexing engine.
  2.  
  3. ?
  4. ### Solr indexing ###
  5. index.subsystem.name=solr6
  6. solr.host=localhost
  7. solr.port=8983
  8. solr.port.ssl=8984
  9. solr.secureComms=none
  10. We declare SOLR 6 as a service to adjust the memory parameters at startup and to be started at system boot .
  11.  
  12. ?
  13. # cat solr6
  14. #!/bin/sh
  15. #
  16. # chkconfig: 2345 80 30
  17. # description: Alfresco Community SOLR6
  18. #
  19. ### BEGIN INIT INFO
  20. # Provides: solr6
  21. # Required-Start: $local_fs $remote_fs
  22. # Required-Stop: $local_fs $remote_fs
  23. # Should-Start: $all
  24. # Should-Stop: $all
  25. # Default-Start: 2 3 4 5
  26. # Default-Stop: 0 1 6
  27. # Short-Description: Start/stop Alfresco SOLR6
  28. # Description: Start/stop Alfresco SOLR6
  29. ### END INIT INFO
  30.  
  31. RETVAL=0
  32.  
  33. start () {
  34. /opt/alfresco/solr6/solr/bin/solr start -m 2G -force "$2"
  35. RETVAL=$?
  36. if [ -d "/var/lock/subsys" ] && [ `id -u` = 0 ] && [ $RETVAL -eq 0 ] ; then
  37. touch /var/lock/subsys/solr6
  38. fi
  39.  
  40. }
  41.  
  42. stop () {
  43. /opt/alfresco/solr6/solr/bin/solr stop -all "$2"
  44. RETVAL=$?
  45. }
  46.  
  47.  
  48. case "$1" in
  49. start)
  50. start "$@"
  51. ;;
  52. stop)
  53. stop "$@"
  54. ;;
  55. restart)
  56. stop "$@"
  57. start "$@"
  58. ;;
  59. *)
  60. /opt/alfresco/solr6/solr/bin/solr "$@"
  61. RETVAL=$?
  62. esac
  63. exit $RETVAL
  64.  
  65.  
  66. $ service solr6 stop
  67.  
  68. $ service solr6 start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement