Configuration 创建Karaf的Equinox实例
我用Equinox内核运行Karaf 3.0.1。现在我想创建一个新实例,它也运行Equinox core。我试过:Configuration 创建Karaf的Equinox实例,configuration,osgi,apache-karaf,Configuration,Osgi,Apache Karaf,我用Equinox内核运行Karaf 3.0.1。现在我想创建一个新实例,它也运行Equinox core。我试过: instance:create test 创建的实例运行Felix core,因此我尝试更新其配置${karaf.home}/instances/test/etc/config.properties。调整后,每当我尝试连接到此实例时,我都会收到: karaf@root: instance:connect test Connecting to host localhost on
instance:create test
创建的实例运行Felix core,因此我尝试更新其配置${karaf.home}/instances/test/etc/config.properties
。调整后,每当我尝试连接到此实例时,我都会收到:
karaf@root: instance:connect test
Connecting to host localhost on port 8105
Error executing command: Failed to get the session
我做错了什么?还有其他方法可以创建Equinox核心实例吗
instance:clone
而不是instance:create
karaf@root()>捆绑:列表-t0 | grep'^0'
0 |活动| 0 | 3.8.2.v20130124-134944 | OSGi系统包
karaf@root()>实例:克隆根测试
karaf@root()>实例:列表
SSH端口| RMI注册表| RMI服务器|状态| PID |名称
-------------------------------------------------------------
8101 | 1099 | 44444 |开始| 29306 |根
8101 | 1099 | 44444 |停止| 0 |测试
karaf@root()>实例:ssh端口更改测试8102
karaf@root()>实例:rmi服务器端口更改测试445
karaf@root()>实例:rmi注册表端口更改测试1100
karaf@root()>实例:列表
SSH端口| RMI注册表| RMI服务器|状态| PID |名称
-------------------------------------------------------------
8101 | 1099 | 44444 |开始| 29306 |根
8102 | 1100 | 445 |停止| 0 |测试
karaf@root()>实例:开始测试
karaf@root()>实例:连接测试
连接到端口8102上的主机localhost
正在连接到未知服务器。自动添加到已知主机。
将服务器密钥存储在已知的\u主机中。
密码:*****
有联系的
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/
ApacheKaraf(3.0.2)
点击“”以获取可用命令的列表
和'[cmd]--help'获取特定命令的帮助。
点击“系统:关闭”关闭卡拉夫。
点击“”或键入“注销”以断开shell与当前会话的连接。
karaf@test()>捆绑:列表-t0 | grep'^0'
0 |活动| 0 | 3.8.2.v20130124-134944 | OSGi系统包
karaf@test()>
karaf@root()> bundle:list -t 0 | grep '^ 0'
0 | Active | 0 | 3.8.2.v20130124-134944 | OSGi System Bundle
karaf@root()> instance:clone root test
karaf@root()> instance:list
SSH Port | RMI Registry | RMI Server | State | PID | Name
-------------------------------------------------------------
8101 | 1099 | 44444 | Started | 29306 | root
8101 | 1099 | 44444 | Stopped | 0 | test
karaf@root()> instance:ssh-port-change test 8102
karaf@root()> instance:rmi-server-port-change test 44445
karaf@root()> instance:rmi-registry-port-change test 1100
karaf@root()> instance:list
SSH Port | RMI Registry | RMI Server | State | PID | Name
-------------------------------------------------------------
8101 | 1099 | 44444 | Started | 29306 | root
8102 | 1100 | 44445 | Stopped | 0 | test
karaf@root()> instance:start test
karaf@root()> instance:connect test
Connecting to host localhost on port 8102
Connecting to unknown server. Automatically adding to known hosts.
Storing the server key in known_hosts.
Password: *****
Connected
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/
Apache Karaf (3.0.2)
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit 'system:shutdown' to shutdown Karaf.
Hit '<ctrl-d>' or type 'logout' to disconnect shell from current session.
karaf@test()> bundle:list -t 0 | grep '^ 0'
0 | Active | 0 | 3.8.2.v20130124-134944 | OSGi System Bundle
karaf@test()>