SCM Manager 的 scm-server 服务启动绑定错误

SCM Manager 的 scm-server 服务启动绑定错误

我表演:

# service scm-server start
SCM-Server will now be started
# service scm-server status
SCM-Server is running
 PID: 2166
 PID: 2167

几秒钟后:

# service scm-server status
SCM-Server is not running

/opt/scm-server/var/log/scm-server.err包含:

2015-06-11 11:05:07.934:WARN:oejuc.AbstractLifeCycle:FAILED \
  [email protected]:8080: java.net.BindException: Address already in use
java.net.BindException: Address already in use
    ... stack trace ...
2015-06-11 11:05:07.936:WARN:oejuc.AbstractLifeCycle:FAILED \
   org.eclipse.jetty.server.Server@449628c3: java.net.BindException: Address already in use
java.net.BindException: Address already in use
    ... stack trace ...
Cannot load daemon
Service exit with a return value of 3

/opt/scm-server/conf/server-config.xml包含:

<SystemProperty name="jetty.port" default="8082" />

端口8082未被占用:

# netstat -tulpn | egrep '(PID|80)' | sort
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp6       0      0 127.0.0.1:8005          :::*                    LISTEN      1190/java
tcp6       0      0 127.0.0.1:8015          :::*                    LISTEN      680/java
tcp6       0      0 :::8009                 :::*                    LISTEN      869/java
tcp6       0      0 :::8019                 :::*                    LISTEN      680/java
tcp6       0      0 :::8080                 :::*                    LISTEN      680/java
tcp6       0      0 :::8081                 :::*                    LISTEN      869/java
tcp6       0      0 :::8088                 :::*                    LISTEN      1190/java
tcp6       0      0 :::80                   :::*                    LISTEN      602/httpd

如果我成功启动并停止服务8080 scm-server。为什么它会尝试使用默认端口8080而不管不同的配置设置?

相关内容