Advertisement
Guest User

Untitled

a guest
May 11th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. :serveruser: pbcom
  2. :dbserverhost: 172.30.22.30
  3. :appserverhost: 172.30.22.29
  4. :dbuser: pbcom
  5. :dbpassword: PBC0mu@t
  6. :ribuser: pbcom
  7. :tanukiwrapperdir: /home/{ribuser}/installers/wrapper-linux-x86-64-3.5.30
  8. :membranedir: /var/lib/membrane
  9. :membranebindir: {membranedir}/bin
  10. :javadownloadlink: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
  11. :membraneinstallerlink: google
  12. :amqversion: 5.14.3
  13.  
  14. == Membrane Service Proxy Setup
  15. Membrane Service Proxy (https://www.membrane-soa.org/service-proxy/) will provide a REST-to-SOAP middleware interface for RIB microservices to communicate to T24 and CMS using REST API.
  16. For that, microservices in app server/s should have access to membrane server's ports `8085` and `8095`.
  17.  
  18. To install Membrane Service Proxy with Tanuki wrapper, follow the instructions below:
  19.  
  20. . Download `membrane-service-proxy-4.3.0.zip` and `membrane-uat.zip` from {membraneinstallerlink} and transfer to server.
  21. . Using root or sudoer account unzip `membrane-service-proxy-4.3.0.zip`
  22. +
  23. [subs="attributes"]
  24. [source,bash]
  25. ----
  26. $ sudo unzip membrane-service-proxy-4.3.0.zip -d /var/lib/
  27. $ sudo mv /var/lib/membrane-service-proxy-4.3.0 /var/lib/membrane
  28. $ sudo unzip membrane-uat.zip -d /var/lib/membrane/
  29. ----
  30. . Create `pbcom-membrane` link in `/etc/init.d/`
  31. +
  32. [subs="attributes"]
  33. [source,bash]
  34. ----
  35. $ sudo ln -s /var/lib/membrane/bin/membrane /etc/init.d/pbcom-membrane
  36. ----
  37. . Add rc.d of pbcom-membrane
  38. +
  39. [subs="attributes"]
  40. [source,bash]
  41. ----
  42. $ sudo update-rc.d pbcom-membrane defaults
  43. ----
  44. . Start `Membrane Service Proxy`
  45. +
  46. [subs="attributes"]
  47. [source,bash]
  48. ----
  49. $ sudo service pbcom-membrane start
  50. Starting Membrane Proxy of T24...
  51. Waiting for Membrane Proxy of T24........
  52. running: PID:16028
  53. ----
  54. . Check log file to see that proxy started properly
  55. +
  56. [subs="attributes"]
  57. [source,bash]
  58. ----
  59. $ tail -f /var/log/pbcom-membrane.log
  60. ----
  61. . If an error was encountered, `wrapper.log` file will contain error details.
  62. +
  63. [subs="attributes"]
  64. [source,bash]
  65. ----
  66. $ tail -f /var/lib/membrane/wrapper.log
  67. ----
  68.  
  69. == ActiveMQ Setup
  70. . Download a copy of activemq bin distribution from {amqversion} http://mirror.rise.ph/apache//activemq/5.14.3/apache-activemq-5.14.3-bin.tar.gz and transfer to server
  71. . Create user `activemq` in server
  72. +
  73. [subs="attributes"]
  74. [source,bash]
  75. ----
  76. $ sudo useradd -r activemq
  77. ----
  78. . Untar `apache-activemq-5.14.3-bin.tar.gz` to /var/lib/
  79. +
  80. [subs="attributes"]
  81. [source,bash]
  82. ----
  83. $ sudo tar -xzvf apache-activemq-5.14.3-bin.tar.gz -C /var/lib/
  84. $ sudo mv /var/lib/apache-activemq-5.14.3 /var/lib/activemq/
  85. ----
  86. . Edit `/var/lib/activemq/bin/env` and set
  87. +
  88. [subs="attributes"]
  89. [source,bash]
  90. ----
  91. ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS_MEMORY -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=$ACTIVEMQ_CONF/login.config -Dorg.apache.activemq.SERIALIZABLE_PACKAGES=java.lang,javax.security,java.util,org.apache.activemq,com.pbcom,org.springframework"
  92. ----
  93. . Create `activemq` link in `/etc/init.d/`
  94. +
  95. [subs="attributes"]
  96. [source,bash]
  97. ----
  98. $ sudo ln -s /var/lib/activemq/bin/linux-x86-64/activemq /etc/init.d/activemq
  99. ----
  100. . Add rc.d of activemq
  101. +
  102. [subs="attributes"]
  103. [source,bash]
  104. ----
  105. $ sudo update-rc.d activemq defaults
  106. ----
  107. . Start `activemq`
  108. +
  109. [subs="attributes"]
  110. [source,bash]
  111. ----
  112. $ sudo service activemq start
  113. ----
  114. . Check logfiles
  115. +
  116. [subs="attributes"]
  117. [source,bash]
  118. ----
  119. $ tail -f /var/lib/activemq/data/wrapper.log
  120. $ tail -f /var/lib/activemq/data/activemq.log
  121. ----
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement