elwen 发表于 2020-3-4 16:50:13

修改软件服务器端口的方法

官方指导方法http://www.o2oa.net/x_desktop/forum.html?app=ForumDocument&id=59122bde-32b7-4b93-9b44-32191392a3a6


配置文件模版位置 o2server/config/sample/node_127.0.0.1.json
将配置文件复制到o2server/config/node_127.0.0.1.json
{
"enable": true,
"port":null,
"sslEnable":false,
"logLevel":"warn",
"isPrimaryCenter": true,
"application": {
    "enable": true,
    "port": null,          # 这个是应用服务器端口,默认为20020
    "sslEnable": false,
    "proxyHost": "",
    "proxyPort": null,
    "forceRedeploy": true,
    "scanInterval":5,
    "includes":[],
    "excludes":[]
},
"web": {
    "enable": true,
    "port": null,         # 这个是应用服务器端口,默认为80
    "sslEnable": false,
    "proxyHost": "",
    "proxyPort": null,
    "forceRedeploy": true
},
"storage": {
    "enable": true,
    "port": null,                     # 这个是文件服务器端口,默认为20040
    "sslEnable": false,
    "name" : ""
},
"data": {
    "enable": true,
    "tcpPort": null,
    "webPort": null,
    "includes": [],
    "excludes": []
}
}
web 服务器默认端口为80
应用服务器默认端口为20020

论坛管理员 发表于 2020-3-4 21:38:08

您好:您这是备注还是在修改的过程中碰到了什么问题。
还有一个中心服务器, centerServer.json

elwen 发表于 2020-3-6 11:44:46

需要自己在web对应的位置增加"port":"8080",语句,把web端口修改为8080

论坛管理员 发表于 2020-3-6 15:05:09

这个文档里不是已经介绍,port 是端口号!
页: [1]
查看完整版本: 修改软件服务器端口的方法