组成STATIC服务器的服务使用18000~20000范围内的端口,如果默认端口已经在使用,则服务因端口冲突无法正常运行,状态显示为DEAD。
修改launcher安装路径下的resources/services.json文件
...
{
"name": "toolbox",
"instanceId": "toolbox",
"type": "REGACY",
"startCmd": [
"cmd.exe",
"/c",
"server.exe",
"--port",
"PORT_NUMBER",
"--source_dir",
"%STATIC_HOME%\\\\toolbox-repository",
"--eureka_server",
"<http://127.0.0.1:18000/eureka>"
]
},
...
重新安装服务
static >> stop toolbox
static >> uninstall toolbox
static >> install toolbox resources/services.json resources/toolbox-service.zip --zip
static >> start toolbox
修改launcher安装路径下的resources/services.json文件
{
"name": "mongo-db",
"instanceId": "mongo-db",
"type": "REGACY",
"preStartCmd": [
"cmd.exe",
"/c",
"mkdir",
"%STATIC_HOME%\\\\mongo"
],
"startCmd": [
"cmd.exe",
"/c",
"bin\\\\mongod.exe",
"-bind_ip_all",
"-dbpath",
"%STATIC_HOME%\\\\mongo",
"--port",
"PORT_NUMBER"
]
},
服务再启动
static >> stop mongo-db
static >> uninstall mongo-db
static >> install mongo-db resources/services.json resources/mongodb-win32-x86_64-2008plus-ssl-4.0.3.zip --zip
static >> start mongo-db
%STATIC_HOME%\workspace\web-ui\conf\nginx.conf 文件修改
...
server {
listen 80;
...
服务再启动
static >> stop web-ui
static >> start web-ui