Qiang Xue
11 years ago
4 changed files with 30 additions and 4 deletions
@ -0,0 +1,25 @@
|
||||
#!/bin/sh |
||||
|
||||
SCRIPT=$(readlink -f "$0") |
||||
CWD=$(dirname "$SCRIPT") |
||||
|
||||
# install sphinxsearch: |
||||
echo 'yes' | sudo add-apt-repository ppa:builds/sphinxsearch-daily |
||||
sudo apt-get update |
||||
sudo apt-get install sphinxsearch |
||||
|
||||
# log files |
||||
sudo mkdir /var/log/sphinx |
||||
sudo touch /var/log/sphinx/searchd.log |
||||
sudo touch /var/log/sphinx/query.log |
||||
sudo chmod -R 777 /var/log/sphinx # ugly (for travis) |
||||
|
||||
# spl dir |
||||
sudo mkdir /var/lib/sphinx |
||||
sudo chmod 777 /var/lib/sphinx # ugly (for travis) |
||||
|
||||
# setup test Sphinx indexes: |
||||
indexer --config $CWD/../sphinx/sphinx.conf --all |
||||
|
||||
# run searchd: |
||||
searchd --config $CWD/../sphinx/sphinx.conf |
Loading…
Reference in new issue