You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
softarius 83933dcc18
Патч драйвера PGSQL для доступа к другой схеме
2 days ago
api
…
data
…
doc
…
extensions
…
imitator
…
install
…
www
…
.gitignore
…
backup.md
…
backup.sh
…
readme.md
…

readme.md

Пункт управления средствами РиРЭБ

Установка

  1. Установка необходимых пакетов

sudo apt install apache2 php postgresql php-pgsql php-xml php-mbstring php-pdo php-intl postgis postgresql-14-postgis php-curl mc

  1. Установка доверительной авторизации для postgres

sudo nano /etc/postgresql/14/main/pg_hba.conf

Добавить строки

local   all             postgres                                trust
host    all             postgres        127.0.0.1/32            trust

и перезапустить PostgreSQL

sudo service postgresql restart

  1. Проверить подключение И создать базу данных

psql -U postgres -c 'create database lcp;'

  1. Развертывание СПО

sudo chmod -R 777 /var/www/html

Распаковать архив СПО

  1. Настроить местоположение
UPDATE map.location set coord=st_point(37.570959, 55.464621, 4326) where feature_id in (5,30);
UPDATE map.location set coord=st_buffer(st_point(37.570959, 55.464621, 4326)::geography,1000,'quad_segs=2')::geometry where feature_id = 3968;
  1. Настроить ежеминутный опрос ПУ

sudo crontab -e

Добавить

* * * * curl "http://localhost/?option=com_map&task=cron"

Проверить работу отправкой тестовой транзакции.

curl -d "@insert_mini.xml" "http://localhost/?option=com_map&task=wfs.transaction"

Должно сработать подавление и через заданное время отключиться

  1. Настроить резервное копирование

Для настройки под IIS отключить буферизацию https://stackoverflow.com/questions/7178514/php-flush-stopped-flushing-in-iis7-5