1 |
dbexport |
1 |
dbimport |
1 |
dbexport |
1 |
dbimport |
1 |
/scripts/pkgacct USER |
1 |
scp -P PORT root@IP:/home/cpmove-USER.tar.gz /home/cpmove-USER.tar.gz |
1 |
=SUBSTITUTE(REPLACE(A1,1,LOOKUP(2^15,FIND("/",A1,ROW(INDIRECT("1:"&LEN(A1))))),""),".jpg","") |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
cd /tmp sudo apt-get install libmysqlclient-dev build-essential php7.0-cli wget -q -O- https://github.com/sphinxsearch/sphinx/archive/2.3.2-beta.tar.gz | tar -xz -C . cd sphinx-2.3.2-beta ./configure --prefix=/etc/sphinxsearch make sudo make install cd .. rm -rf sphinx-2.3.2-beta mkdir /usr/local/etc/configs mkdir /var/lib/sphinxsearch/data/sites chmod 777 sites |
1 2 |
cd /tmp wget http://sphinxsearch.com/files/sphinx-2.3.2-beta.tar.gz |
1 |
tar -zxf 'sphinx-2.3.2-beta.tar.gz' |
1 |
mkdir /usr/local/sphinx |
1 |
cd sphinx-2.3.2-beta |
1 |
./configure --prefix=/usr/local/sphinx --with-mysql --with-pgsql |
1 2 |
make make install |
1 |
cp -pr /usr/local/sphinx/etc/sphinx.conf.dist /usr/local/sphinx/etc/sphinx.conf |
1 |
nano /etc/init.d/searchd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#!/bin/bash case "${1:-''}" in 'start') /usr/local/sphinx/bin/searchd ;; 'stop') /usr/local/sphinx/bin/searchd --stop ;; 'restart') /usr/local/sphinx/bin/searchd --stop && /usr/local/sphinx/bin/searchd ;; *) echo "Usage: $SELF start|stop|restart" exit 1 ;; esac |
1 |
chmod 755 /etc/init.d/sphinx |
1 |
/etc/init.d/searchd start |
1 2 |
nano /etc/chkserv.d/searchd service[searchd]=x,x,x,/etc/init.d/searchd restart,searchd,root|searchd |
1 |
searchd:1 |
1 |
/scripts/restartsrv_tailwatchd |