GJGJJ/采集器/采集服务部署方法-windows.md

44 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 采集服务部署方法
## 1. 复制程序文件
将采集服务程序复制到服务器上。假设在服务器的D盘下创建一个 `datcolManage` 目录然后将datcol-manage.exe文件上传到datcolManage目录中然后在`D:\datcolManage`目录中创建一个`web`目录并将ui.zip压缩包都上传到web目录中,使用压缩工具将压缩包解压到当前目录。
## 2. 安装采集管理服务
在服务器中以管理员身份打开CMD切记要以管理员身份打开执行如下命令安装采集管理服务
```sh
# 切换到D盘
D:
# 进入程序所在目录
cd D:\datcolManage
# 安装采集管理服务为系统服务
.\datcol-manage.exe install
# 启动采集管理服务
.\datcol-manage.exe start
```
然后复制ui.zip压缩包都上传到`D:\datcolManage\web`目录中,使用压缩工具将压缩包解压到当前目录
然后浏览器访问 http://localhost:8819 即可打开采集管理界面
## 3. 安装采集服务
打开浏览器,在浏览器地址栏中输入 http://localhost:8819 ,打开采集器管理页面
登录采集管理系统,用户名 admin 密码 123456
进入系统后,在首页可以看到`采集服务面板`,点击服务更新栏中的选择升级文件,选择采集程序 `datcol.exe`,确认后点击升级,等待升级完成即可。
## 4. winserver防火墙开放端口
以管理员身份打开命令行执行如下命令开放8819端口
```sh
netsh advfirewall firewall add rule name="Open DatcolManage Port 8819" dir=in action=allow protocol=TCP localport=8819
```
可以使用以下命令查看所有防火墙规则:
```sh
netsh advfirewall firewall show rule name=all
```