linux deploy 安装debian11(stable armhf)中安装Zoneminder
折腾了无数遍,然后感觉也没啥用
安装linux deploy
手机获取root权限
安装debian(armhf)
https://blog.csdn.net/kekeyy123/article/details/112767244
参考这个就可以
安装LNMP
apt install -y mariadb-server apache2 php php-mysql libapache2-mod-php wget lsb-release gnupg2
装完后,mariadb是无法启动的,权限不够
usermod -a -G aid_inet,aid_net_raw mysql
然后再启动mariadb
service mariadb start
启动apache2
service apache2 start
安装zoneminder
配置安装源
echo "deb https://zmrepo.zoneminder.com/debian/release-1.36 "`lsb_release -c -s`"/" >> /etc/apt/sources.list.d/zoneminder.list
安装key
apt install apt-transport-https gnupg
wget -O - https://zmrepo.zoneminder.com/debian/archive-keyring.gpg | apt-key add -
更新
apt update
安装zoneminder
apt install zoneminder
导入zm数据库
pv /usr/share/zoneminder/db/zm_create.sql | mysql --defaults-file=/etc/mysql/debian.cnf
或者
cat /usr/share/zoneminder/db/zm_create.sql | mysql --defaults-file=/etc/mysql/debian.cnf
zm配置文件加入执行权限
chgrp -c www-data /etc/zm/zm.conf
启动zoneminder,并加载配置
service zoneminder start
a2enconf zoneminder
a2enmod rewrite headers expires
service apache2 reload
到这里zoneminder业务应该可以正常启动了
添加自启动
systemctl enable zoneminder.service
systemctl enable mariadb.service
systemctl enable apache2.service
我遇到的问题
ffmpeg方式添加rtsp源后出现如下提示,
Unable to open input rtsp://admin:admin@******:554/live due to: Permission denied
www-data用户的权限不够
用find命令看了下,只有/usr/bin下面有zmc 和ffmpeg
root@localhost:~
/usr/bin/zmc
root@localhost:~
看www-data的执行权限,只有/usr/sbin,在www-data用户后加上“:/usr/bin/nologin”
nano /etc/passwd
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin:/usr/bin/nologin
另外给www-data和加入root一样的组,这一步不知道哪个生效了,懒得折腾了
usermod -a -G aid_graphics,aid_sdcard_rw,aid_inet,root www-data
重启linux系统
debian11 arm64也是可以装,debian10 就只能armhf可以,arm64配置好源找不到zoneminder的安装包
然后就没有然后了,zoneminder没有安卓客户端,要自己编译,麻烦!!感觉没事就是瞎折腾
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)