1. Install WMC
1.1 添加依赖:
一个Http Service 实现 ,可选在一下服务:
Apache Felix Http Service,Pax Web Service,Equinox Http Service Implementation.
可选依赖:
OSGi Log Service: If installed, the console provides access to the log entries
OSGi Configuration Admin Service and OSGi Metatype Service: If installed, the console
provides configuration administration functionality
Apache Felix Declarative Services: If installed, the console provides functionality
to inspect declared components
1.2 VMC版本
Full Variants:org.apache.felix.webconsole;
Bare Varinats:org.apache.felix,wenconsole.bare,需另外安装:Apache Commons-io,
Apache Commons-fileupload,JSON
Apache Commons IO: Library that provides common I/O functionality;
Apache Commons FileUpload: For file upload functionality;
JSON: For JavaScript Object Notation, a library that implements this simple data interchange
format。
2. 访问
http://localhost:8080/system/console/
默认账号密码:admin/admin
3. VMC配置
(1)Http Service的配置
配置监听端口:
org.osgi.service.http.port默认为:8080, org.osgi.service.http.port=8080
(2) 控制台的配置
The Web Console is configured using the OSGi Configuration Admin Service in that the
Web Console registered a ManagedService with Service PID
org.apache.felix.webconsole.internal.servlet.OsgiManager .