文件服务配置
1. 安装有度服务端
先安装服务端,数据库连接目前现有的数据库,无需单独安装。安装完成后,无需导入License,直接进入下面的配置步骤。
2. 停止本机非文件相关服务
编辑path/config/service.ini,保留jgdns、jgproxy、jgfile、jgp2p、jgnetdisk、jgupgrade的state值为start,其它为stop。例如:
[jgaccountd]
cmd = /bin/jgaccountd.exe
state = stop
3. 修改本机非文件相关服务地址
- 编辑path/config/common.cfg.ini,除了dnsaddr,其它服务的地址值改为主服务器IP。例如:
msqaddr = main_ip:7020
- 编辑path/config/svrlist.ini,把jgaccount、jgauth、jgmsg、jginfo、jgrca、jgstatisc、jgorg的info.host值改为主服务器IP,并添加参数info.virtual = true。例如:
[jgaccountd]
info.host = main_ip
info.virtual = true
4. 如果网络属于场景2,需要修改文件服务对外端口
编辑path/config/jgproxy.ini,将默认端口7080、7443分别改为7081、7444。例如:
[7081]
xxxxxx
[7444]
xxxxxx
5. 重启服务生效
- Windows系统:
打开系统服务,找到youdu_service服务,右键重启即可。
- Linux系统:
systemctl restart youdu_service