parser

Написать ответ на текущее сообщение

 

 
   команды управления поиском

Ответ (краткая инструкция, чтоб не забьіть)

AK666 16.09.2020 20:35 / 17.09.2020 12:47

Amazon Linux 2 AMI :
$ sudo amazon-linux-extras enable epel
$ sudo yum clean metadata
$ sudo yum install epel-release
$ sudo yum install fcgiwrap
$ sudo yum install multiwatch
$ sudo yum install spawn-fcgi

$ cd /etc/sysconfig
$ sudo ed spawn-fcgi

$ cat spawn-fcgi
# You must set some working options before the "spawn-fcgi" service will work.
# If SOCKET points to a file, then this file is cleaned up by the init script.
#
# See spawn-fcgi(1) for all possible options.
#
# Example :
#SOCKET=/var/run/php-fcgi.sock
#OPTIONS="-u apache -g apache -s $SOCKET -S -M 0600 -C 32 -F 1 -P /var/run/spawn-fcgi.pid -- /usr/bin/php-cgi"

FCGI_SOCKET=/var/run/fcgiwrap.sock
FCGI_PROGRAM=/usr/sbin/fcgiwrap
FCGI_USER=nginx
FCGI_GROUP=nginx
FCGI_EXTRA_OPTIONS="-M 0700"
FCGI_EXTRA_M="0700"
ALLOWED_ENV="PATH"


MW_PROGRAM=/usr/bin/multiwatch
MW_CHILDREN=32

OPTIONS="-u $FCGI_USER -g $FCGI_GROUP -s $FCGI_SOCKET -S -M $FCGI_EXTRA_M -C 32 -F 1 -P /var/run/spawn-fcgi.pid -- $MW_PROGRAM -f $MW_CHILDREN $FCGI_PROGRAM"
<<EOF

$ mkdir /www/parser
$ cd /www/parser
$ wget https://www.parser.ru/f/1/download/parser345/parser3_4_5_debian8x64.tar.gz
$ tar xzvf parser3_4_5_debian8x64.tar.gz 3_4_5debian8x64
$ cd /www/parser/3_4_5debian8x64
$ ./parser3.cgi
./parser3.cgi: file not specified
Parser/3.4.5 (compiled on x86_64-unknown-linux-gnu)
Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com)
Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)

Usage: ./parser3.cgi [options] file
Options are:
-f config_file Use this config file (/path/to/auto.p)
-h Display usage information (this message)
$ ln -s /www/parser/3_4_5debian8x64 /www/parser/current
в /etc/nginx/sites-available/Site.conf прописьіваю
fastcgi_param SCRIPT_FILENAME /www/parser/current/parser3.cgi;



если полезно, то можно ли в https://www.parser.ru/hosters/ добавить Амазон ?