« ZoneMinder » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 23 : | Ligne 23 : | ||
mysql> FLUSH PRIVILEGES; | mysql> FLUSH PRIVILEGES; | ||
mysql> exit | mysql> exit | ||
# vi /etc/php/7.4/apache2/php.ini | |||
[Date] | |||
; Defines the default timezone used by the date functions | |||
; <nowiki>http://php.net/date.timezone</nowiki> | |||
date.timezone = Europe/Madrid | |||
# timedatectl set-timezone Europe/Madrid | |||
# a2enconf zoneminder | # a2enconf zoneminder | ||
| Ligne 28 : | Ligne 37 : | ||
# a2enmod headers | # a2enmod headers | ||
# a2enmod expires | # a2enmod expires | ||
# a2enmod ssl | |||
# a2ensite default-ssl | |||
# systemctl enable zoneminder | # systemctl enable zoneminder | ||
# service zoneminder start | # service zoneminder start | ||
# service apache2 reload | # service apache2 reload | ||
=multicast= | |||
[https://medium.com/zmninja/multi-port-storage-areas-and-more-d5836a336c93 source] | |||
MIN_STREAMING_PORT '''30000''' | |||
# vi /etc/apache2/ports.conf | |||
<font color =grey>...</font> | |||
<IfModule ssl_module> | |||
Listen 443 | |||
<font color= green>Listen 30000 | |||
Listen 30001 | |||
Listen 30002 | |||
Listen 30003 | |||
Listen 30004</font> | |||
<font color =grey>...</font> | |||
<font color =grey>...</font> | |||
</IfModule> | |||
<font color =grey>...</font> | |||
Version du 5 mai 2021 à 11:14
# apt update && apt upgrade
# apt install software-properties-common
# add-apt-repository ppa:iconnor/zoneminder-master
# apt install zoneminder
# adduser www-data video
# mysql_secure_installation
# vi /etc/zm/zm.conf
# ZoneMinder database password ZM_DB_PASS=zmpass
# mysql -U
mysql> ALTER USER 'zmuser'@'localhost' IDENTIFIED BY 'mdpnouveau'; mysql> FLUSH PRIVILEGES; mysql> exit
# vi /etc/php/7.4/apache2/php.ini
[Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone date.timezone = Europe/Madrid
# timedatectl set-timezone Europe/Madrid
# a2enconf zoneminder # a2enmod rewrite # a2enmod headers # a2enmod expires # a2enmod ssl # a2ensite default-ssl # systemctl enable zoneminder # service zoneminder start # service apache2 reload
multicast
MIN_STREAMING_PORT 30000
# vi /etc/apache2/ports.conf
...
<IfModule ssl_module>
Listen 443
Listen 30000
Listen 30001
Listen 30002
Listen 30003
Listen 30004
...
...
</IfModule>
...