宇视vm平台

宇视vm平台

解决方案goocz2025-03-12 12:57:5826A+A-

查看配置参数

[root@localhost vm]# vmcfgtool.sh -q

其中,“DBBKUP_SWITCH”表示是否自动备份数据库功能,默认值是 on,即默认开启该功能。

修改配置参数

修改服务器 IP:

[root@localhost ~]# vmcfgtool.sh serverip
192.168.0.10---192.168.0.10 为修改后的 VM 服务器 IP

“vmcfgtool.sh -help”脚本来获取更多的参数修改命令,修改配置后需要执行

“vmserver.sh restart”脚本重启服务使配置生效

查看服务状态

[root@localhost ~]# vmserver.sh status

服务状态包括:

“running”:表示服务运行正常。

“stopped”:表示服务停止,需要手动重启服务,详细操作请参见“重启服务”。

“does not exist”: 表示该服务不存在。服务器的可执行文件被删除或其可执行权限被修改,

需要重新安装软件或者联系本公司授权人员解决,否则服务将不能正常使用。

2. 启动服务

软件安装成功后,VM 服务会自动启动。同时,您可以根据实际情况手动启动服务。

启动服务的命令为:

[root@localhost ~]# vmserver.sh start

3. 停止服务

您可根据实际需要手动停止服务。

停止服务的命令为:

[root@localhost ~]# vmserver.sh stop

4. 重启服务

您可根据实际需要手动重启服务。

注意:

重启服务会导致数据库重启,当系统运行业务时,重启数据库可能导致业务功能异常。请您慎重选

择或在操作前先联系本公司授权人员。

重启服务的命令为:

[root@localhost ~]# vmserver.sh restart

4.2.5 查看系统版本

[root@localhost ~]# vmcfgtool.sh –v

4.2.6 配置自动备份数据库

如果您需要备份系统的数据库,可启动自动备份数据库功能,这样系统将于每天凌晨 3 点开始自动

备份数据库。

启动自动备份数据库:

[root@localhost ~]# vmcfgtool.sh autodbbackup on

停止自动备份数据库:

[root@localhost ~]# vmcfgtool.sh autodbbackup off

备份完成后,数据库的备份文件将放在/var/autobackup/目录,文件命名规则为 database-时

间.tar.gz。例如,
database-2014-01-26_0300.tar.gz表示 2014年 1月26日 03:00的备份文件。

系统默认只保留最近 7 天的备份文件,建议每次备份完成后,把所需的数据库文件备份到本地。

安装前准备工作,软件包解压

[root@localhost ~]# tar zxvf vm.tar.gz

软件升级

[root@localhost vm]# sh vmupdate.sh

软件卸载

[root@localhost vm]# sh vmuninstall.sh

软件重新安装

[root@localhost vm]# sh vminstall.sh

2014-06-26 14:54:04 : Do not close the terminal during the installation; otherwise, unknown

error might occur.

...

Get system version 6.2.

Get Machine version x86_64.

Begin to install system package,please wait a moment ...

Please choose the language of vm (default 0.Chinese): ---选择版本安装语言

0.Chinese

1.English

Please input your choice:0

What version of vm do you want to install[default:1. stand-alone]: ---选择安装模式

1. stand-alone

2. high ability (HA)

Please input your choice:1

Please input Video Manager server port[default:5060]:---设置 VM 服务器端口。按键盘回车键,选择默

认值

Use default Server Port:5060

Please input SNMP port[default:162]: ---设置 VM 服务器 SNMP 端口。按键盘回车键,选择默认值

Use default Snmp Port:162

Please input Video Manager server IP address[such as 192.168.0.11]:---设置 VM 服务器 IP 地址

(该 IP 必须是服务器某网卡的 IP)

192.168.0.10

Do you want to install database on local server?[yes/no]:---选择是否将数据库安装在本地,若选择

no 则需设置待连接的数据库 IP 地址

y

……

安装完成后,VM 服务将自动启动,可以通过“vmserver.sh status”脚本查看服务状态。

点击这里复制本文地址 以上内容由goocz整理呈现,请务必在转载分享时注明本文地址!如对内容有疑问,请联系我们,谢谢!

果子教程网 © All Rights Reserved.  蜀ICP备2024111239号-5