For development simplicity, we can start Karaf in daemon mode by executing 'bin\admin.bat start root', here root is the default instance.
In production environment, we need to integrate Karaf directly into your operating system service control (http://karaf.apache.org/manual/latest/users-guide/wrapper.html):

  1. First you need to install the Service Wrapper feature: features:install wrapper
  2. Once installed, wrapper feature will provide wrapper:install new command in the Karaf shell, you can get help from wrapper:install --help
  3. Then you can follow the generated messages from wrapper:install to install the service

Finally while ServiceMix is started, you just connect to Karaf to check whether these services are available. Luckily Karaf offers 2 ways for doing so: a remote Shell accessible through an SSH connection, and a JMX interface.
Thus we can use the SSH connection now. The port used by Karaf to host the SSH server is configured in a file called 'org.apache.karaf.shell.cfg' located in the 'etc' folder in the Karaf installation. When Karaf is running, it also starts an SSH server, and a JMX server. So we can connect to Karaf through SSH by executing 'bin\client.bat -a 8101 -h 159.99.203.109 -u karaf'. Here default user/password is karaf/karaf, and you can get help from 'client.bat –help'.
Note: you can also use putty or kitty SSH client.

作者:Hans.Hu
出处:http://huyh.cnblogs.com
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

最新文章

  1. 三种renderman规范引擎的dice对比
  2. Service Station - An Introduction To RESTful Services With WCF
  3. mysql 插入中文时出现ERROR 1366 (HY000): Incorrect string value: '\xC0\xEE\xCB\xC4' for column 'usern ame' at row 1
  4. 实现LoadRunner多个场景的顺序执行(命令行)
  5. poj2631 树的直径 + bfs
  6. Linux下去掉^M的方法
  7. 启动Activity时显示空白界面的问题
  8. 关于firefox启动就崩溃的问题
  9. Cenos 6.5上的subverion的yum配置笔记
  10. (十二)java嵌套类和内部类
  11. 逆向基本使用:IDA
  12. JEECG&JWT异常捕获强化处理 | Java: Meaning of catch (final SomeException e)?
  13. eclipse添加插件实现php的增删改查
  14. Luogu P2279 [HNOI2003]消防局的设立
  15. Linux批量更改文件后缀-转载
  16. python基础(三)python数据类型
  17. C/C++中的变量和静态变量
  18. POJ2728 Desert King 最优比率生成树
  19. 如何加入别人的Git项目——Git Fork指南
  20. 【HDU 2586】LCA模板

热门文章

  1. MySQL存储引擎的实际应用以及对MySQL数据库中各主要存储引擎的独特特点的描述
  2. 后缀数组 & 题目
  3. POJ 1015 Jury Compromise 2个月后重做,其实这是背包题目
  4. webView 点击页面跳转到浏览器
  5. Spring MVC @Transactional注解方式事务失效的解决办法
  6. Fatal error: Allowed memory size of 524288000 bytes exhausted (tried to allocate 64 bytes) in D
  7. Spark RDD aggregateByKey
  8. 【经验记录】Jconsole Jvisualvm 监控Tomcat
  9. LSD-SLAM深入学习(4)-非ROS改造
  10. FluentValidation验证