mirror of https://github.com/searx/searx
Update of the procedure to work on CentOS 7
parent
2227ad2cd3
commit
10b65ae200
|
@ -28,8 +28,7 @@ su - searx
|
||||||
cd /usr/local/searx
|
cd /usr/local/searx
|
||||||
virtualenv searx-ve
|
virtualenv searx-ve
|
||||||
. ./searx-ve/bin/activate
|
. ./searx-ve/bin/activate
|
||||||
pip install -r requirements.txt
|
./manage.sh update_packages
|
||||||
python setup.py install
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
@ -44,9 +43,13 @@ Start searx :
|
||||||
```sh
|
```sh
|
||||||
python searx/webapp.py
|
python searx/webapp.py
|
||||||
```
|
```
|
||||||
|
|
||||||
Go to [http://localhost:8888](http://localhost:8888)
|
Go to [http://localhost:8888](http://localhost:8888)
|
||||||
|
|
||||||
|
If everything works fine, disable the debug option in settings.yml:
|
||||||
|
```sh
|
||||||
|
sed -i -e "s/debug : True/debug : False/g" searx/settings.yml
|
||||||
|
```
|
||||||
|
|
||||||
At this point searx is not demonized ; uwsgi allows this.
|
At this point searx is not demonized ; uwsgi allows this.
|
||||||
|
|
||||||
You can exit the virtualenv and the searx user bash (enter exit).
|
You can exit the virtualenv and the searx user bash (enter exit).
|
||||||
|
@ -72,10 +75,15 @@ disable-logging = true
|
||||||
workers = 4
|
workers = 4
|
||||||
socket = 127.0.0.1:8888
|
socket = 127.0.0.1:8888
|
||||||
|
|
||||||
|
# The right granted on the created socket
|
||||||
|
chmod-socket = 666
|
||||||
|
|
||||||
# Plugin to use and interpretor config
|
# Plugin to use and interpretor config
|
||||||
single-interpreter = true
|
single-interpreter = true
|
||||||
master = true
|
master = true
|
||||||
plugin = python
|
plugin = python
|
||||||
|
lazy-apps = true
|
||||||
|
enable-threads = true
|
||||||
|
|
||||||
# Module to import
|
# Module to import
|
||||||
module = searx.webapp
|
module = searx.webapp
|
||||||
|
@ -136,7 +144,7 @@ su - searx
|
||||||
git stash
|
git stash
|
||||||
git pull origin master
|
git pull origin master
|
||||||
git stash apply
|
git stash apply
|
||||||
pip install --upgrade -r requirements.txt
|
./manage.sh update_packages
|
||||||
exit
|
exit
|
||||||
systemctl restart uwsgi
|
systemctl restart uwsgi
|
||||||
```
|
```
|
Loading…
Reference in New Issue