Blame view

doc/sphinx/install--.txt 929 Bytes
d1f8bd40   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
  [ Install the searchd system as a Windows service ]
  
  create pid file '@CONFDIR@/log/searchd.pid
  
  C:\Sphinx\bin\searchd --install --config C:\Sphinx\sphinx.conf --servicename SphinxSearch
  
  [ base command ]
  
  Connect to server:
  mysql -h 127.0.0.1  -P 9306
  
  show tables;
  
  SELECT * FROM test1 WHERE MATCH('my document');
  
  [ indexer and finder ]
  C:\sphinx\bin> .\indexer.exe --all --config ..\sphinx.conf --rotate --print-queries
  
  
  [ LINUX ]
  
  [ config ]
  sudo nano /etc/sphinxsearch/sphinx.conf
  
  [ INDEXER ]
  sudo indexer --all --config /var/www/clients/client1/web76/web/doc/sphinx/lsphinx.conf --rotate --print-queries
  
  [ CRON ]
  @hourly /usr/bin/indexer --rotate --config /var/www/clients/client1/web76/web/doc/sphinx/lsphinx.conf --all
  
  [ RUN SPHINX ]
  sudo nano /etc/default/sphinxsearch
  
  START=yes
  
  sudo service sphinxsearch start
  
  [ TEST ]
  mysql -h0 -P9306
  
  show tables;
  
  SELECT * FROM test1 WHERE MATCH('test document'); SHOW META;