문제 설명
Jetty 서버의 포트(Equinox OSGi) (Port in Jetty server (Equinox OSGi ))
좋은 아침입니다. Equinox OSGi에 포함된 Jetty Server에 웹 애플리케이션을 배포하고 있습니다. 그래도 포트 8080에서 작동하지만 두 개의 다른 서버를 실행해야 합니다. 그런 다음 포트 간의 충돌이 시작됩니다. 서버 중 하나의 포트 번호를 변경하고 싶습니다. 누군가 저를 도와주시겠습니까?
미리 감사합니다!
참조 솔루션
방법 1:
try those system properties:
jetty.port=xxxx ‑ Jetty specific property
org.osgi.service.http.port=xxxx ‑ OSGi HTTP Service property
방법 2:
if you run in eclipse, you can try put this in your VM argument
‑Dorg.osgi.service.http.port=9090
(by Jose Hdez、Dmytro Pishchukhin、王子1986)