启动mysql
systemctl start mysql
启动redis
systemctl start redis
启动ZLMediaKit
配置文件路径:
/home/dtc/bins/ZLMediaKit/config.ini
记得这里使用root执行,不然有一些端口没有权限使用。
前台启动的方式,这种一般调试使用:
/home/dtc/bins/ZLMediaKit/MediaServer -d
后台启动:
nohup /home/dtc/bins/ZLMediaKit/MediaServer -d > /home/dtc/bins/ZLMediaKit/log.txt 2>&1 &
查看日志:
tail -f /home/dtc/bins/ZLMediaKit/log.txt
启动wvp
不需root用户启动,普通用户权限也可以。
配置文件
/home/dtc/bins/wvp/application.yml
后台启动命令:
nohup java -jar /home/dtc/bins/wvp/wvp*.jar > /home/dtc/bins/wvp/wvplog.txt 2>&1 &
查看日志:
tail -f /home/dtc/bins/wvp/wvplog.txt
报错日志中有redis连接不上的
比如:
2023-06-20 15:20:47.055 ERROR --- eAsyncUncaughtExceptionHandler : Unexpected exception occurred invoking async method: public void com.genersoft.iot.vmp.gb28181.transmit.SIPProcessorObserver.processRequest(javax.sip.RequestEvent)
java.lang.IllegalStateException: LettuceConnectionFactory was destroyed and cannot be used anymore
at org.springframework.util.Assert.state(Assert.java:76)
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.assertInitialized(LettuceConnectionFactory.java:1263)
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getConnection(LettuceConnectionFactory.java:414)
at org.springframework.data.redis.core.RedisConnectionUtils.fetchConnection(RedisConnectionUtils.java:193)
at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:144)
at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:105)
解决办法
使用原因暂时不明白,有个简单粗暴方法就是卸载reids重新安装。