Advertisement
niammuddin

config sphinx

Sep 30th, 2018
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. source src1
  2. {
  3. type = mysql
  4.  
  5. sql_host = localhost
  6. sql_user = wp_niam_co_id
  7. sql_pass = nAHdpi3MjyzegrB
  8. sql_db = wp_niam_co_id
  9. sql_port = 3306 # optional, default is 3306
  10. sql_sock = /var/run/mysqld/mysqld.sock
  11. sql_query = SELECT * FROM produk
  12.  
  13. #sql_attr_uint = group_id
  14. #sql_attr_timestamp = date_added
  15. }
  16.  
  17.  
  18. index test1
  19. {
  20. source = src1
  21. path = /var/lib/sphinxsearch/data/test1
  22. docinfo = none
  23. }
  24.  
  25. indexer
  26. {
  27. mem_limit = 512M
  28. }
  29.  
  30.  
  31. searchd
  32. {
  33. listen = 9312
  34. listen = 9306:mysql41
  35. log = /var/log/sphinxsearch/searchd.log
  36. query_log = /var/log/sphinxsearch/query.log
  37. read_timeout = 5
  38. max_children = 30
  39. pid_file = /var/run/sphinxsearch/searchd.pid
  40. max_matches = 1000
  41. seamless_rotate = 1
  42. preopen_indexes = 1
  43. unlink_old = 1
  44. workers = threads # for RT to work
  45. binlog_path = /usr/local/var/data
  46. compat_sphinxql_magics = 0
  47. }
  48.  
  49.  
  50. /etc/default/sphinxsearch
  51.  
  52.  
  53. /var/run/sphinxsearch/
  54.  
  55. killall -9 searchd
  56.  
  57. ps ax
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement