Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
589
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.88 KB | None | 0 0
  1.  
  2.  
  3.  
  4. Server credentials:
  5. --------------------------
  6. username : root
  7. password : password
  8. ---------------------------
  9.  
  10. // useful for below command : https://superuser.com/questions/578293/linux-centos-how-to-permanent-inititate-dhcp-client-any-reboot
  11. dhclient -> enable network connection for minimal installation
  12.  
  13. yum install psmisc // contains killall
  14.  
  15. wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/x/xalan-c-1.11.0-4.el7.x86_64.rpm
  16. cdrpm -Uvh xalan-c-1.11.0-4.el7.x86_64.rpm
  17.  
  18. yum install libtool-ltdl // for libltdl7
  19.  
  20. yum install net-tools
  21. yum install subversion wget
  22. yum install samba samba-client samba-common
  23.  
  24. firewall-cmd --permanent --zone=public --add-service=samba
  25. firewall-cmd --permanent --zone=public --add-port=7777/tcp -> olap
  26. sudo firewall-cmd --zone=public --add-service=http --permanent
  27. firewall-cmd --reload
  28.  
  29. mkdir -p /home/qa/work/trunk
  30. mkdir -p /home/qa/bin/wss_trunk
  31.  
  32.  
  33. // 7 zip
  34. wget https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/Packages/p/p7zip-16.02-10.el7.x86_64.rpm
  35. wget https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/Packages/p/p7zip-plugins-16.02-10.el7.x86_64.rpm
  36.  
  37. sudo rpm -U --quiet p7zip-16.02-10.el7.x86_64.rpm
  38. sudo rpm -U --quiet p7zip-plugins-16.02-10.el7.x86_64.rpm
  39.  
  40.  
  41. // download java 11 ( link might not be relevant
  42. // you might need to search it yourself)
  43.  
  44. wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" \
  45. http://download.oracle.com/otn-pub/java/jdk/11.0.1+13/90cf5d8f270a4347a95050320eef3fb7/jdk-11.0.1_linux-x64_bin.tar.gz
  46.  
  47. tar xzf jdk-11_linux-x64_bin.tar.gz -C /usr/local
  48.  
  49. // simple rename
  50. mv /usr/local/jdk-11.0.1/ /usr/local/jdk-11/
  51.  
  52. // copy to /usr/java/latest
  53.  
  54. mkdir -p /usr/java/latest
  55. cp -r /usr/local/jdk-11/* /usr/java/latest
  56.  
  57. // set default java to 11
  58.  
  59. cd /usr/local/jdk-11/
  60. alternatives --install /usr/bin/java java /usr/local/jdk-11/bin/java 2
  61. alternatives --config java
  62.  
  63.  
  64. // set javac and jar default for java
  65.  
  66. alternatives --install /usr/bin/jar jar /usr/local/jdk-11/bin/jar 2
  67. alternatives --install /usr/bin/javac javac /usr/local/jdk-11/bin/javac 2
  68. alternatives --set jar /usr/local/jdk-11/bin/jar
  69. alternatives --set javac /usr/local/jdk-11/bin/javac
  70.  
  71.  
  72.  
  73. // give folders permissions ??
  74.  
  75. chmod -R 0777 /home/qa/
  76. chown -R nobody:nobody /home/qa/
  77. chcon -Rt samba_share_t /home/qa/
  78.  
  79. // same as above maybe ?
  80.  
  81.  
  82. // change samba config ..
  83.  
  84. [global]
  85. workgroup = WORKGROUP
  86. server string = Samba Server %v
  87. netbios name = centos
  88. security = user
  89. map to guest = bad user
  90. dns proxy = no
  91. #============================ Share Definitions ==============================
  92. [Anonymous]
  93. path = /home/qa/
  94. browsable =yes
  95. writable = yes
  96. guest ok = yes
  97. read only = no
  98. force create mode = 0755
  99. force directory mode = 0755
  100. force user = root
  101.  
  102.  
  103.  
  104. // test samba config
  105. testparm
  106.  
  107. // enable and start samba services
  108. systemctl enable smb.service
  109. systemctl enable nmb.service
  110. systemctl start smb.service
  111. systemctl start nmb.service
  112.  
  113.  
  114.  
  115. // checkout wss_trunk qa version
  116. svn co https://dev.develabs.com/svn/wss_bin/sparse/qa/trunk/lin_x64 /home/qa/bin/wss_trunk --username xxxx --password xxxxx -q
  117.  
  118. // checkout trunk/lin_x64 real version ( with all components bundeled)
  119. mkdir -p /home/qa/real_app
  120. svn co https://dev.develabs.com/svn/wss_bin/trunk/lin_x64/ /home/qa/real_app/ --username xxx --password xxxx -q
  121.  
  122.  
  123. //let test go one time (it will fail), so it creates app directory, then copy libs for olap and core into app/test_name/olap/lib app/test_name/core/lib, and copy real_app/lib -> /home/qa/bin/wss_trunk/lib/
  124.  
  125.  
  126. // for running services manually from /home/qa/bin/wss_trunk/startup/
  127.  
  128. ./httpd.sh -r /home/qa/work/app/wTch_sT_oT_l64/UI/docroot -k start
  129. ./core.sh start /home/qa/work/app/wTch_sT_oT_l64/
  130. ./olap.sh start /home/qa/work/app/wTch_sT_oT_l64 1> /dev/null 2>&1 &
  131. ./tomcat.sh start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement