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.
|
|
2 days ago | |
|---|---|---|
| api | ||
| data | ||
| doc | ||
| extensions | ||
| imitator | ||
| install | ||
| www | ||
| .gitignore | ||
| backup.md | ||
| backup.sh | ||
| readme.md | ||
readme.md
Пункт управления средствами РиРЭБ
Установка
- Установка необходимых пакетов
sudo apt install apache2 php postgresql php-pgsql php-xml php-mbstring php-pdo php-intl postgis postgresql-14-postgis php-curl mc
- Установка доверительной авторизации для 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
- Проверить подключение И создать базу данных
psql -U postgres -c 'create database lcp;'
- Развертывание СПО
sudo chmod -R 777 /var/www/html
Распаковать архив СПО
- Настроить местоположение
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;
- Настроить ежеминутный опрос ПУ
sudo crontab -e
Добавить
* * * * curl "http://localhost/?option=com_map&task=cron"
Проверить работу отправкой тестовой транзакции.
curl -d "@insert_mini.xml" "http://localhost/?option=com_map&task=wfs.transaction"
Должно сработать подавление и через заданное время отключиться
Для настройки под IIS отключить буферизацию https://stackoverflow.com/questions/7178514/php-flush-stopped-flushing-in-iis7-5