Guest User

Jenkins Installation on Centos 7

a guest
Dec 7th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 55.07 KB | None | 0 0
  1. [user@shamanth1 ~]$ su -
  2. Password:
  3. You are required to change your password immediately (root enforced)
  4. Changing password for root.
  5. (current) UNIX password:
  6. su: Authentication token manipulation error
  7. [user@shamanth1 ~]$ 123456
  8. -bash: 123456: command not found
  9. [user@shamanth1 ~]$ sudo su -
  10. [sudo] password for user:
  11. Last failed login: Thu Dec  8 01:11:23 UTC 2016 on pts/0
  12. There were 105 failed login attempts since the last successful login.
  13. [root@shamanth1 ~]# passwd
  14. Changing password for user root.
  15. New password:
  16. Retype new password:
  17. passwd: all authentication tokens updated successfully.
  18. [root@shamanth1 ~]# exit
  19. logout
  20. [user@shamanth1 ~]$ passwd
  21. Changing password for user user.
  22. Changing password for user.
  23. (current) UNIX password:
  24. New password:
  25. Retype new password:
  26. passwd: all authentication tokens updated successfully.
  27. [user@shamanth1 ~]$ su -
  28. Password:
  29. Last login: Thu Dec  8 01:11:49 UTC 2016 on pts/0
  30. [root@shamanth1 ~]# clear
  31.  
  32. [root@shamanth1 ~]# sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
  33. --2016-12-08 01:17:09--  http://pkg.jenkins-ci.org/redhat/jenkins.repo
  34. Resolving pkg.jenkins-ci.org (pkg.jenkins-ci.org)... 52.202.51.185
  35. Connecting to pkg.jenkins-ci.org (pkg.jenkins-ci.org)|52.202.51.185|:80... connected.
  36. HTTP request sent, awaiting response... 200 OK
  37. Length: 71
  38. Saving to: ‘/etc/yum.repos.d/jenkins.repo’
  39.  
  40. 100%[===========================================================================================================================================>] 71          --.-K/s   in 0s      
  41.  
  42. 2016-12-08 01:17:09 (4.13 MB/s) - ‘/etc/yum.repos.d/jenkins.repo’ saved [71/71]
  43.  
  44. [root@shamanth1 ~]#  sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
  45. [root@shamanth1 ~]# yum update
  46. Loaded plugins: fastestmirror
  47. jenkins                                                                                              | 2.9 kB  00:00:00    
  48. jenkins/primary_db                                                                                   |  89 kB  00:00:00    
  49. Loading mirror speeds from cached hostfile
  50.  * base: centos.eecs.wsu.edu
  51.  * epel: mirrors.cat.pdx.edu
  52.  * extras: mirror.chpc.utah.edu
  53.  * nux-dextop: mirror.li.nux.ro
  54.  * updates: mirrors.usc.edu
  55. No packages marked for update
  56. [root@shamanth1 ~]# sudo yum install jenkins
  57. Loaded plugins: fastestmirror
  58. Loading mirror speeds from cached hostfile
  59.  * base: centos.eecs.wsu.edu
  60.  * epel: mirrors.kernel.org
  61.  * extras: mirror.chpc.utah.edu
  62.  * nux-dextop: mirror.li.nux.ro
  63.  * updates: mirrors.usc.edu
  64. Resolving Dependencies
  65. --> Running transaction check
  66. ---> Package jenkins.noarch 0:2.35-1.1 will be installed
  67. --> Finished Dependency Resolution
  68.  
  69. Dependencies Resolved
  70.  
  71. ============================================================================================================================
  72.  Package                      Arch                        Version                        Repository                    Size
  73. ============================================================================================================================
  74. Installing:
  75.  jenkins                      noarch                      2.35-1.1                       jenkins                       65 M
  76.  
  77. Transaction Summary
  78. ============================================================================================================================
  79. Install  1 Package
  80.  
  81. Total download size: 65 M
  82. Installed size: 66 M
  83. Is this ok [y/d/N]: y
  84. Downloading packages:
  85. jenkins-2.35-1.1.noarch.rpm                                                                          |  65 MB  00:00:03    
  86. Running transaction check
  87. Running transaction test
  88. Transaction test succeeded
  89. Running transaction
  90.   Installing : jenkins-2.35-1.1.noarch                                                                                  1/1
  91.   Verifying  : jenkins-2.35-1.1.noarch                                                                                  1/1
  92.  
  93. Installed:
  94.   jenkins.noarch 0:2.35-1.1                                                                                                
  95.  
  96. Complete!
  97. [root@shamanth1 ~]# yum install java-1.8.0-openjdk
  98. Loaded plugins: fastestmirror
  99. Loading mirror speeds from cached hostfile
  100.  * base: centos.eecs.wsu.edu
  101.  * epel: mirrors.cat.pdx.edu
  102.  * extras: mirror.chpc.utah.edu
  103.  * nux-dextop: mirror.li.nux.ro
  104.  * updates: mirrors.usc.edu
  105. Resolving Dependencies
  106. --> Running transaction check
  107. ---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.111-1.b15.el7_2 will be installed
  108. --> Processing Dependency: java-1.8.0-openjdk-headless = 1:1.8.0.111-1.b15.el7_2 for package: 1:java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64
  109. --> Processing Dependency: xorg-x11-fonts-Type1 for package: 1:java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64
  110. --> Processing Dependency: libjvm.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64
  111. --> Processing Dependency: libjli.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64
  112. --> Processing Dependency: libjava.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64
  113. --> Processing Dependency: libjvm.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64
  114. --> Processing Dependency: libjli.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64
  115. --> Processing Dependency: libjava.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64
  116. --> Processing Dependency: libawt.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64
  117. --> Running transaction check
  118. ---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.111-1.b15.el7_2 will be installed
  119. --> Processing Dependency: tzdata-java >= 2015d for package: 1:java-1.8.0-openjdk-headless-1.8.0.111-1.b15.el7_2.x86_64
  120. --> Processing Dependency: lksctp-tools for package: 1:java-1.8.0-openjdk-headless-1.8.0.111-1.b15.el7_2.x86_64
  121. --> Processing Dependency: jpackage-utils for package: 1:java-1.8.0-openjdk-headless-1.8.0.111-1.b15.el7_2.x86_64
  122. ---> Package xorg-x11-fonts-Type1.noarch 0:7.5-9.el7 will be installed
  123. --> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
  124. --> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
  125. --> Running transaction check
  126. ---> Package javapackages-tools.noarch 0:3.4.1-11.el7 will be installed
  127. --> Processing Dependency: python-javapackages = 3.4.1-11.el7 for package: javapackages-tools-3.4.1-11.el7.noarch
  128. ---> Package lksctp-tools.x86_64 0:1.0.13-3.el7 will be installed
  129. ---> Package ttmkfdir.x86_64 0:3.0.9-42.el7 will be installed
  130. ---> Package tzdata-java.noarch 0:2016h-1.el7 will be installed
  131. --> Running transaction check
  132. ---> Package python-javapackages.noarch 0:3.4.1-11.el7 will be installed
  133. --> Processing Dependency: python-lxml for package: python-javapackages-3.4.1-11.el7.noarch
  134. --> Running transaction check
  135. ---> Package python-lxml.x86_64 0:3.2.1-4.el7 will be installed
  136. --> Finished Dependency Resolution
  137.  
  138. Dependencies Resolved
  139.  
  140. ============================================================================================================================
  141.  Package                                 Arch               Version                               Repository           Size
  142. ============================================================================================================================
  143. Installing:
  144.  java-1.8.0-openjdk                      x86_64             1:1.8.0.111-1.b15.el7_2               updates             223 k
  145. Installing for dependencies:
  146.  java-1.8.0-openjdk-headless             x86_64             1:1.8.0.111-1.b15.el7_2               updates              31 M
  147.  javapackages-tools                      noarch             3.4.1-11.el7                          base                 73 k
  148.  lksctp-tools                            x86_64             1.0.13-3.el7                          base                 87 k
  149.  python-javapackages                     noarch             3.4.1-11.el7                          base                 31 k
  150.  python-lxml                             x86_64             3.2.1-4.el7                           base                758 k
  151.  ttmkfdir                                x86_64             3.0.9-42.el7                          base                 48 k
  152.  tzdata-java                             noarch             2016h-1.el7                           updates             180 k
  153.  xorg-x11-fonts-Type1                    noarch             7.5-9.el7                             base                521 k
  154.  
  155. Transaction Summary
  156. ============================================================================================================================
  157. Install  1 Package (+8 Dependent packages)
  158.  
  159. Total download size: 33 M
  160. Installed size: 107 M
  161. Is this ok [y/d/N]: y
  162. Downloading packages:
  163. (1/9): javapackages-tools-3.4.1-11.el7.noarch.rpm                                                    |  73 kB  00:00:00    
  164. (2/9): python-javapackages-3.4.1-11.el7.noarch.rpm                                                   |  31 kB  00:00:00    
  165. (3/9): lksctp-tools-1.0.13-3.el7.x86_64.rpm                                                          |  87 kB  00:00:00    
  166. (4/9): ttmkfdir-3.0.9-42.el7.x86_64.rpm                                                              |  48 kB  00:00:00    
  167. (5/9): python-lxml-3.2.1-4.el7.x86_64.rpm                                                            | 758 kB  00:00:00    
  168. (6/9): java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64.rpm                                           | 223 kB  00:00:00    
  169. (7/9): tzdata-java-2016h-1.el7.noarch.rpm                                                            | 180 kB  00:00:00    
  170. (8/9): xorg-x11-fonts-Type1-7.5-9.el7.noarch.rpm                                                     | 521 kB  00:00:00    
  171. (9/9): java-1.8.0-openjdk-headless-1.8.0.111-1.b15.el7_2.x86_64.rpm                                  |  31 MB  00:00:13    
  172. ----------------------------------------------------------------------------------------------------------------------------
  173. Total                                                                                       2.5 MB/s |  33 MB  00:00:13    
  174. Running transaction check
  175. Running transaction test
  176. Transaction test succeeded
  177. Running transaction
  178.   Installing : ttmkfdir-3.0.9-42.el7.x86_64                                                                             1/9
  179.   Installing : xorg-x11-fonts-Type1-7.5-9.el7.noarch                                                                    2/9
  180.   Installing : tzdata-java-2016h-1.el7.noarch                                                                           3/9
  181.   Installing : lksctp-tools-1.0.13-3.el7.x86_64                                                                         4/9
  182.   Installing : python-lxml-3.2.1-4.el7.x86_64                                                                           5/9
  183.   Installing : python-javapackages-3.4.1-11.el7.noarch                                                                  6/9
  184.   Installing : javapackages-tools-3.4.1-11.el7.noarch                                                                   7/9
  185.   Installing : 1:java-1.8.0-openjdk-headless-1.8.0.111-1.b15.el7_2.x86_64                                               8/9
  186.   Installing : 1:java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64                                                        9/9
  187.   Verifying  : xorg-x11-fonts-Type1-7.5-9.el7.noarch                                                                    1/9
  188.   Verifying  : python-javapackages-3.4.1-11.el7.noarch                                                                  2/9
  189.   Verifying  : python-lxml-3.2.1-4.el7.x86_64                                                                           3/9
  190.   Verifying  : 1:java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64                                                        4/9
  191.   Verifying  : lksctp-tools-1.0.13-3.el7.x86_64                                                                         5/9
  192.   Verifying  : javapackages-tools-3.4.1-11.el7.noarch                                                                   6/9
  193.   Verifying  : tzdata-java-2016h-1.el7.noarch                                                                           7/9
  194.   Verifying  : ttmkfdir-3.0.9-42.el7.x86_64                                                                             8/9
  195.   Verifying  : 1:java-1.8.0-openjdk-headless-1.8.0.111-1.b15.el7_2.x86_64                                               9/9
  196.  
  197. Installed:
  198.   java-1.8.0-openjdk.x86_64 1:1.8.0.111-1.b15.el7_2                                                                        
  199.  
  200. Dependency Installed:
  201.   java-1.8.0-openjdk-headless.x86_64 1:1.8.0.111-1.b15.el7_2            javapackages-tools.noarch 0:3.4.1-11.el7            
  202.   lksctp-tools.x86_64 0:1.0.13-3.el7                                    python-javapackages.noarch 0:3.4.1-11.el7          
  203.   python-lxml.x86_64 0:3.2.1-4.el7                                      ttmkfdir.x86_64 0:3.0.9-42.el7                      
  204.   tzdata-java.noarch 0:2016h-1.el7                                      xorg-x11-fonts-Type1.noarch 0:7.5-9.el7            
  205.  
  206. Complete!
  207. [root@shamanth1 ~]# systemctrl status firewalld
  208. -bash: systemctrl: command not found
  209. [root@shamanth1 ~]# systemctl status firewalld
  210. ● firewalld.service
  211.    Loaded: not-found (Reason: No such file or directory)
  212.    Active: inactive (dead)
  213. [root@shamanth1 ~]# systemctl status iptabels
  214. ● iptabels.service
  215.    Loaded: not-found (Reason: No such file or directory)
  216.    Active: inactive (dead)
  217. [root@shamanth1 ~]# systemctl enable jenkins
  218. jenkins.service is not a native service, redirecting to /sbin/chkconfig.
  219. Executing /sbin/chkconfig jenkins on
  220. [root@shamanth1 ~]# systemctl start jenkins
  221. [root@shamanth1 ~]# systemctl status jenkins
  222. ● jenkins.service - LSB: Jenkins Continuous Integration Server
  223.    Loaded: loaded (/etc/rc.d/init.d/jenkins)
  224.    Active: active (running) since Thu 2016-12-08 01:27:34 UTC; 22s ago
  225.      Docs: man:systemd-sysv-generator(8)
  226.   Process: 1652 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, status=0/SUCCESS)
  227.    CGroup: /system.slice/jenkins.service
  228.            └─1667 /etc/alternatives/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -DJENKINS_HOME=/var/l...
  229.  
  230. Dec 08 01:27:34 shamanth1.mylabserver.com systemd[1]: Starting LSB: Jenkins Continuous Integration Server...
  231. Dec 08 01:27:34 shamanth1.mylabserver.com runuser[1653]: pam_unix(runuser:session): session opened for user jenkins b...d=0)
  232. Dec 08 01:27:34 shamanth1.mylabserver.com jenkins[1652]: Starting Jenkins [  OK  ]
  233. Dec 08 01:27:34 shamanth1.mylabserver.com systemd[1]: Started LSB: Jenkins Continuous Integration Server.
  234. Hint: Some lines were ellipsized, use -l to show in full.
  235. [root@shamanth1 ~]# which telnet
  236. /usr/bin/which: no telnet in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
  237. [root@shamanth1 ~]# yum install telnet
  238. Loaded plugins: fastestmirror
  239. Loading mirror speeds from cached hostfile
  240.  * base: mirror.sesp.northwestern.edu
  241.  * epel: mirrors.cat.pdx.edu
  242.  * extras: mirror.chpc.utah.edu
  243.  * nux-dextop: mirror.li.nux.ro
  244.  * updates: mirror.san.fastserv.com
  245. Resolving Dependencies
  246. --> Running transaction check
  247. ---> Package telnet.x86_64 1:0.17-59.el7 will be installed
  248. --> Finished Dependency Resolution
  249.  
  250. Dependencies Resolved
  251.  
  252. ============================================================================================================================
  253.  Package                     Arch                        Version                            Repository                 Size
  254. ============================================================================================================================
  255. Installing:
  256.  telnet                      x86_64                      1:0.17-59.el7                      base                       63 k
  257.  
  258. Transaction Summary
  259. ============================================================================================================================
  260. Install  1 Package
  261.  
  262. Total download size: 63 k
  263. Installed size: 113 k
  264. Is this ok [y/d/N]: y
  265. Downloading packages:
  266. telnet-0.17-59.el7.x86_64.rpm                                                                        |  63 kB  00:00:00    
  267. Running transaction check
  268. Running transaction test
  269. Transaction test succeeded
  270. Running transaction
  271.   Installing : 1:telnet-0.17-59.el7.x86_64                                                                              1/1
  272.   Verifying  : 1:telnet-0.17-59.el7.x86_64                                                                              1/1
  273.  
  274. Installed:
  275.   telnet.x86_64 1:0.17-59.el7                                                                                              
  276.  
  277. Complete!
  278. [root@shamanth1 ~]# yum install nginex
  279. Loaded plugins: fastestmirror
  280. Loading mirror speeds from cached hostfile
  281.  * base: centos.eecs.wsu.edu
  282.  * epel: mirrors.kernel.org
  283.  * extras: mirror.chpc.utah.edu
  284.  * nux-dextop: mirror.li.nux.ro
  285.  * updates: mirrors.usc.edu
  286. No package nginex available.
  287. Error: Nothing to do
  288. [root@shamanth1 ~]# yum install nginx
  289. Loaded plugins: fastestmirror
  290. Loading mirror speeds from cached hostfile
  291.  * base: centos.eecs.wsu.edu
  292.  * epel: mirrors.cat.pdx.edu
  293.  * extras: mirror.chpc.utah.edu
  294.  * nux-dextop: mirror.li.nux.ro
  295.  * updates: mirrors.usc.edu
  296. Resolving Dependencies
  297. --> Running transaction check
  298. ---> Package nginx.x86_64 1:1.10.2-1.el7 will be installed
  299. --> Processing Dependency: nginx-filesystem = 1:1.10.2-1.el7 for package: 1:nginx-1.10.2-1.el7.x86_64
  300. --> Processing Dependency: nginx-all-modules = 1:1.10.2-1.el7 for package: 1:nginx-1.10.2-1.el7.x86_64
  301. --> Processing Dependency: nginx-filesystem for package: 1:nginx-1.10.2-1.el7.x86_64
  302. --> Processing Dependency: libprofiler.so.0()(64bit) for package: 1:nginx-1.10.2-1.el7.x86_64
  303. --> Running transaction check
  304. ---> Package gperftools-libs.x86_64 0:2.4-7.el7 will be installed
  305. --> Processing Dependency: libunwind.so.8()(64bit) for package: gperftools-libs-2.4-7.el7.x86_64
  306. ---> Package nginx-all-modules.noarch 1:1.10.2-1.el7 will be installed
  307. --> Processing Dependency: nginx-mod-stream = 1:1.10.2-1.el7 for package: 1:nginx-all-modules-1.10.2-1.el7.noarch
  308. --> Processing Dependency: nginx-mod-mail = 1:1.10.2-1.el7 for package: 1:nginx-all-modules-1.10.2-1.el7.noarch
  309. --> Processing Dependency: nginx-mod-http-xslt-filter = 1:1.10.2-1.el7 for package: 1:nginx-all-modules-1.10.2-1.el7.noarch
  310. --> Processing Dependency: nginx-mod-http-perl = 1:1.10.2-1.el7 for package: 1:nginx-all-modules-1.10.2-1.el7.noarch
  311. --> Processing Dependency: nginx-mod-http-image-filter = 1:1.10.2-1.el7 for package: 1:nginx-all-modules-1.10.2-1.el7.noarch
  312. --> Processing Dependency: nginx-mod-http-geoip = 1:1.10.2-1.el7 for package: 1:nginx-all-modules-1.10.2-1.el7.noarch
  313. ---> Package nginx-filesystem.noarch 1:1.10.2-1.el7 will be installed
  314. --> Running transaction check
  315. ---> Package libunwind.x86_64 2:1.1-5.el7_2.2 will be installed
  316. ---> Package nginx-mod-http-geoip.x86_64 1:1.10.2-1.el7 will be installed
  317. --> Processing Dependency: GeoIP for package: 1:nginx-mod-http-geoip-1.10.2-1.el7.x86_64
  318. --> Processing Dependency: libGeoIP.so.1()(64bit) for package: 1:nginx-mod-http-geoip-1.10.2-1.el7.x86_64
  319. ---> Package nginx-mod-http-image-filter.x86_64 1:1.10.2-1.el7 will be installed
  320. --> Processing Dependency: gd for package: 1:nginx-mod-http-image-filter-1.10.2-1.el7.x86_64
  321. --> Processing Dependency: libgd.so.2()(64bit) for package: 1:nginx-mod-http-image-filter-1.10.2-1.el7.x86_64
  322. ---> Package nginx-mod-http-perl.x86_64 1:1.10.2-1.el7 will be installed
  323. ---> Package nginx-mod-http-xslt-filter.x86_64 1:1.10.2-1.el7 will be installed
  324. ---> Package nginx-mod-mail.x86_64 1:1.10.2-1.el7 will be installed
  325. ---> Package nginx-mod-stream.x86_64 1:1.10.2-1.el7 will be installed
  326. --> Running transaction check
  327. ---> Package GeoIP.x86_64 0:1.5.0-9.el7 will be installed
  328. ---> Package gd.x86_64 0:2.0.35-26.el7 will be installed
  329. --> Processing Dependency: libXpm.so.4()(64bit) for package: gd-2.0.35-26.el7.x86_64
  330. --> Running transaction check
  331. ---> Package libXpm.x86_64 0:3.5.11-3.el7 will be installed
  332. --> Finished Dependency Resolution
  333.  
  334. Dependencies Resolved
  335.  
  336. =====================================================================================================================================================================================
  337.  Package                                                 Arch                               Version                                        Repository                           Size
  338. =====================================================================================================================================================================================
  339. Installing:
  340.  nginx                                                   x86_64                             1:1.10.2-1.el7                                 epel                                505 k
  341. Installing for dependencies:
  342.  GeoIP                                                   x86_64                             1.5.0-9.el7                                    base                                709 k
  343.  gd                                                      x86_64                             2.0.35-26.el7                                  base                                146 k
  344.  gperftools-libs                                         x86_64                             2.4-7.el7                                      base                                272 k
  345.  libXpm                                                  x86_64                             3.5.11-3.el7                                   base                                 54 k
  346.  libunwind                                               x86_64                             2:1.1-5.el7_2.2                                updates                              56 k
  347.  nginx-all-modules                                       noarch                             1:1.10.2-1.el7                                 epel                                 16 k
  348.  nginx-filesystem                                        noarch                             1:1.10.2-1.el7                                 epel                                 17 k
  349.  nginx-mod-http-geoip                                    x86_64                             1:1.10.2-1.el7                                 epel                                 23 k
  350.  nginx-mod-http-image-filter                             x86_64                             1:1.10.2-1.el7                                 epel                                 26 k
  351.  nginx-mod-http-perl                                     x86_64                             1:1.10.2-1.el7                                 epel                                 35 k
  352.  nginx-mod-http-xslt-filter                              x86_64                             1:1.10.2-1.el7                                 epel                                 25 k
  353.  nginx-mod-mail                                          x86_64                             1:1.10.2-1.el7                                 epel                                 53 k
  354.  nginx-mod-stream                                        x86_64                             1:1.10.2-1.el7                                 epel                                 46 k
  355.  
  356. Transaction Summary
  357. =====================================================================================================================================================================================
  358. Install  1 Package (+13 Dependent packages)
  359.  
  360. Total download size: 1.9 M
  361. Installed size: 5.5 M
  362. Is this ok [y/d/N]: y
  363. Downloading packages:
  364. (1/14): GeoIP-1.5.0-9.el7.x86_64.rpm                                                                                                                          | 709 kB  00:00:00    
  365. (2/14): gd-2.0.35-26.el7.x86_64.rpm                                                                                                                           | 146 kB  00:00:00    
  366. (3/14): gperftools-libs-2.4-7.el7.x86_64.rpm                                                                                                                  | 272 kB  00:00:00    
  367. (4/14): libXpm-3.5.11-3.el7.x86_64.rpm                                                                                                                        |  54 kB  00:00:00    
  368. (5/14): libunwind-1.1-5.el7_2.2.x86_64.rpm                                                                                                                    |  56 kB  00:00:00    
  369. (6/14): nginx-1.10.2-1.el7.x86_64.rpm                                                                                                                         | 505 kB  00:00:01    
  370. (7/14): nginx-all-modules-1.10.2-1.el7.noarch.rpm                                                                                                             |  16 kB  00:00:00    
  371. (8/14): nginx-filesystem-1.10.2-1.el7.noarch.rpm                                                                                                              |  17 kB  00:00:00    
  372. (9/14): nginx-mod-http-geoip-1.10.2-1.el7.x86_64.rpm                                                                                                          |  23 kB  00:00:00    
  373. (10/14): nginx-mod-http-image-filter-1.10.2-1.el7.x86_64.rpm                                                                                                  |  26 kB  00:00:00    
  374. (11/14): nginx-mod-http-perl-1.10.2-1.el7.x86_64.rpm                                                                                                          |  35 kB  00:00:00    
  375. (12/14): nginx-mod-http-xslt-filter-1.10.2-1.el7.x86_64.rpm                                                                                                   |  25 kB  00:00:00    
  376. (13/14): nginx-mod-mail-1.10.2-1.el7.x86_64.rpm                                                                                                               |  53 kB  00:00:00    
  377. (14/14): nginx-mod-stream-1.10.2-1.el7.x86_64.rpm                                                                                                             |  46 kB  00:00:00    
  378. -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  379. Total                                                                                                                                                839 kB/s | 1.9 MB  00:00:02    
  380. Running transaction check
  381. Running transaction test
  382. Transaction test succeeded
  383. Running transaction
  384.   Installing : 2:libunwind-1.1-5.el7_2.2.x86_64                                                                                                                                 1/14
  385.   Installing : gperftools-libs-2.4-7.el7.x86_64                                                                                                                                 2/14
  386.   Installing : 1:nginx-filesystem-1.10.2-1.el7.noarch                                                                                                                           3/14
  387.   Installing : libXpm-3.5.11-3.el7.x86_64                                                                                                                                       4/14
  388.   Installing : gd-2.0.35-26.el7.x86_64                                                                                                                                          5/14
  389.   Installing : GeoIP-1.5.0-9.el7.x86_64                                                                                                                                         6/14
  390.   Installing : 1:nginx-mod-http-perl-1.10.2-1.el7.x86_64                                                                                                                        7/14
  391.   Installing : 1:nginx-mod-mail-1.10.2-1.el7.x86_64                                                                                                                             8/14
  392.   Installing : 1:nginx-mod-stream-1.10.2-1.el7.x86_64                                                                                                                           9/14
  393.   Installing : 1:nginx-mod-http-geoip-1.10.2-1.el7.x86_64                                                                                                                      10/14
  394.   Installing : 1:nginx-mod-http-image-filter-1.10.2-1.el7.x86_64                                                                                                               11/14
  395.   Installing : 1:nginx-1.10.2-1.el7.x86_64                                                                                                                                     12/14
  396.   Installing : 1:nginx-mod-http-xslt-filter-1.10.2-1.el7.x86_64                                                                                                                13/14
  397.   Installing : 1:nginx-all-modules-1.10.2-1.el7.noarch                                                                                                                         14/14
  398.   Verifying  : 1:nginx-mod-http-xslt-filter-1.10.2-1.el7.x86_64                                                                                                                 1/14
  399.   Verifying  : GeoIP-1.5.0-9.el7.x86_64                                                                                                                                         2/14
  400.   Verifying  : 1:nginx-mod-http-perl-1.10.2-1.el7.x86_64                                                                                                                        3/14
  401.   Verifying  : 1:nginx-mod-mail-1.10.2-1.el7.x86_64                                                                                                                             4/14
  402.   Verifying  : 1:nginx-mod-stream-1.10.2-1.el7.x86_64                                                                                                                           5/14
  403.   Verifying  : 1:nginx-mod-http-geoip-1.10.2-1.el7.x86_64                                                                                                                       6/14
  404.   Verifying  : 1:nginx-mod-http-image-filter-1.10.2-1.el7.x86_64                                                                                                                7/14
  405.   Verifying  : libXpm-3.5.11-3.el7.x86_64                                                                                                                                       8/14
  406.   Verifying  : 1:nginx-all-modules-1.10.2-1.el7.noarch                                                                                                                          9/14
  407.   Verifying  : gd-2.0.35-26.el7.x86_64                                                                                                                                         10/14
  408.   Verifying  : 1:nginx-1.10.2-1.el7.x86_64                                                                                                                                     11/14
  409.   Verifying  : 1:nginx-filesystem-1.10.2-1.el7.noarch                                                                                                                          12/14
  410.   Verifying  : gperftools-libs-2.4-7.el7.x86_64                                                                                                                                13/14
  411.   Verifying  : 2:libunwind-1.1-5.el7_2.2.x86_64                                                                                                                                14/14
  412.  
  413. Installed:
  414.   nginx.x86_64 1:1.10.2-1.el7                                                                                                                                                        
  415.  
  416. Dependency Installed:
  417.   GeoIP.x86_64 0:1.5.0-9.el7                             gd.x86_64 0:2.0.35-26.el7                                     gperftools-libs.x86_64 0:2.4-7.el7                            
  418.   libXpm.x86_64 0:3.5.11-3.el7                           libunwind.x86_64 2:1.1-5.el7_2.2                              nginx-all-modules.noarch 1:1.10.2-1.el7                      
  419.   nginx-filesystem.noarch 1:1.10.2-1.el7                 nginx-mod-http-geoip.x86_64 1:1.10.2-1.el7                    nginx-mod-http-image-filter.x86_64 1:1.10.2-1.el7            
  420.   nginx-mod-http-perl.x86_64 1:1.10.2-1.el7              nginx-mod-http-xslt-filter.x86_64 1:1.10.2-1.el7              nginx-mod-mail.x86_64 1:1.10.2-1.el7                          
  421.   nginx-mod-stream.x86_64 1:1.10.2-1.el7                
  422.  
  423. Complete!
  424. [root@shamanth1 ~]# cd /etc//nginx
  425. [root@shamanth1 nginx]# vim ngnix.conf
  426. [root@shamanth1 nginx]# vim nginx.conf
  427. [root@shamanth1 nginx]# systemctl enable nginx
  428. Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /usr/lib/systemd/system/nginx.service.
  429. [root@shamanth1 nginx]# systemctl start nginx
  430. Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
  431. [root@shamanth1 nginx]# vim nginx.conf
  432. [root@shamanth1 nginx]# systemctl enable nginx
  433. [root@shamanth1 nginx]# systemctl start nginx
  434. [root@shamanth1 nginx]# systemctl status nginx
  435. ● nginx.service - The nginx HTTP and reverse proxy server
  436.    Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
  437.    Active: active (running) since Thu 2016-12-08 01:37:36 UTC; 15s ago
  438.   Process: 2049 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
  439.   Process: 2047 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
  440.   Process: 2045 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
  441.  Main PID: 2052 (nginx)
  442.    CGroup: /system.slice/nginx.service
  443.            ├─2052 nginx: master process /usr/sbin/nginx
  444.            └─2053 nginx: worker process
  445.  
  446. Dec 08 01:37:36 shamanth1.mylabserver.com systemd[1]: Starting The nginx HTTP and reverse proxy server...
  447. Dec 08 01:37:36 shamanth1.mylabserver.com nginx[2047]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  448. Dec 08 01:37:36 shamanth1.mylabserver.com nginx[2047]: nginx: configuration file /etc/nginx/nginx.conf test is successful
  449. Dec 08 01:37:36 shamanth1.mylabserver.com systemd[1]: Failed to read PID from file /run/nginx.pid: Invalid argument
  450. Dec 08 01:37:36 shamanth1.mylabserver.com systemd[1]: Started The nginx HTTP and reverse proxy server.
  451. [root@shamanth1 nginx]# yum install elinks
  452. Loaded plugins: fastestmirror
  453. Loading mirror speeds from cached hostfile
  454.  * base: centos.eecs.wsu.edu
  455.  * epel: mirrors.cat.pdx.edu
  456.  * extras: mirror.chpc.utah.edu
  457.  * nux-dextop: mirror.li.nux.ro
  458.  * updates: mirrors.usc.edu
  459. Resolving Dependencies
  460. --> Running transaction check
  461. ---> Package elinks.x86_64 0:0.12-0.36.pre6.el7 will be installed
  462. --> Processing Dependency: libnss_compat_ossl.so.0()(64bit) for package: elinks-0.12-0.36.pre6.el7.x86_64
  463. --> Running transaction check
  464. ---> Package nss_compat_ossl.x86_64 0:0.9.6-8.el7 will be installed
  465. --> Finished Dependency Resolution
  466.  
  467. Dependencies Resolved
  468.  
  469. =====================================================================================================================================================================================
  470.  Package                                        Arch                                  Version                                              Repository                           Size
  471. =====================================================================================================================================================================================
  472. Installing:
  473.  elinks                                         x86_64                                0.12-0.36.pre6.el7                                   base                                882 k
  474. Installing for dependencies:
  475.  nss_compat_ossl                                x86_64                                0.9.6-8.el7                                          base                                 37 k
  476.  
  477. Transaction Summary
  478. =====================================================================================================================================================================================
  479. Install  1 Package (+1 Dependent package)
  480.  
  481. Total download size: 919 k
  482. Installed size: 2.7 M
  483. Is this ok [y/d/N]: y
  484. Downloading packages:
  485. (1/2): elinks-0.12-0.36.pre6.el7.x86_64.rpm                                                                                                                   | 882 kB  00:00:00    
  486. (2/2): nss_compat_ossl-0.9.6-8.el7.x86_64.rpm                                                                                                                 |  37 kB  00:00:00    
  487. -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  488. Total                                                                                                                                                2.3 MB/s | 919 kB  00:00:00    
  489. Running transaction check
  490. Running transaction test
  491. Transaction test succeeded
  492. Running transaction
  493.   Installing : nss_compat_ossl-0.9.6-8.el7.x86_64                                                                                                                                1/2
  494.   Installing : elinks-0.12-0.36.pre6.el7.x86_64                                                                                                                                  2/2
  495.   Verifying  : elinks-0.12-0.36.pre6.el7.x86_64                                                                                                                                  1/2
  496.   Verifying  : nss_compat_ossl-0.9.6-8.el7.x86_64                                                                                                                                2/2
  497.  
  498. Installed:
  499.   elinks.x86_64 0:0.12-0.36.pre6.el7                                                                                                                                                
  500.  
  501. Dependency Installed:
  502.   nss_compat_ossl.x86_64 0:0.9.6-8.el7                                                                                                                                              
  503.  
  504. Complete!
  505. [root@shamanth1 nginx]# elinks http://localhost:8080
  506.  
  507. [root@shamanth1 nginx]# getenforce
  508. Enforcing
  509. [root@shamanth1 nginx]# setenforce 0
  510. [root@shamanth1 nginx]# getenforce
  511. Permissive
  512. [root@shamanth1 nginx]# systmctl restart nginx jenkins
  513. -bash: systmctl: command not found
  514. [root@shamanth1 nginx]# systemctl restart nginx jenkins
  515. [root@shamanth1 nginx]# yum install -y setroubleshoot-server selinx-policy-devel
  516. Loaded plugins: fastestmirror
  517. Loading mirror speeds from cached hostfile
  518.  * base: centos.eecs.wsu.edu
  519.  * epel: mirrors.cat.pdx.edu
  520.  * extras: mirror.chpc.utah.edu
  521.  * nux-dextop: mirror.li.nux.ro
  522.  * updates: mirrors.usc.edu
  523. No package selinx-policy-devel available.
  524. Resolving Dependencies
  525. --> Running transaction check
  526. ---> Package setroubleshoot-server.x86_64 0:3.2.24-4.el7_2 will be installed
  527. --> Processing Dependency: systemd-python >= 206-1 for package: setroubleshoot-server-3.2.24-4.el7_2.x86_64
  528. --> Processing Dependency: setroubleshoot-plugins >= 3.0.14 for package: setroubleshoot-server-3.2.24-4.el7_2.x86_64
  529. --> Processing Dependency: python-slip-dbus for package: setroubleshoot-server-3.2.24-4.el7_2.x86_64
  530. --> Processing Dependency: pygobject2 for package: setroubleshoot-server-3.2.24-4.el7_2.x86_64
  531. --> Processing Dependency: libxml2-python for package: setroubleshoot-server-3.2.24-4.el7_2.x86_64
  532. --> Running transaction check
  533. ---> Package libxml2-python.x86_64 0:2.9.1-6.el7_2.3 will be installed
  534. ---> Package pygobject2.x86_64 0:2.28.6-11.el7 will be installed
  535. ---> Package python-slip-dbus.noarch 0:0.4.0-2.el7 will be installed
  536. --> Processing Dependency: python-slip = 0.4.0-2.el7 for package: python-slip-dbus-0.4.0-2.el7.noarch
  537. ---> Package setroubleshoot-plugins.noarch 0:3.0.59-2.el7_2 will be installed
  538. ---> Package systemd-python.x86_64 0:219-19.el7_2.13 will be installed
  539. --> Running transaction check
  540. ---> Package python-slip.noarch 0:0.4.0-2.el7 will be installed
  541. --> Finished Dependency Resolution
  542.  
  543. Dependencies Resolved
  544.  
  545. ============================================================================================================================
  546.  Package                               Arch                  Version                           Repository              Size
  547. ============================================================================================================================
  548. Installing:
  549.  setroubleshoot-server                 x86_64                3.2.24-4.el7_2                    updates                345 k
  550. Installing for dependencies:
  551.  libxml2-python                        x86_64                2.9.1-6.el7_2.3                   updates                247 k
  552.  pygobject2                            x86_64                2.28.6-11.el7                     base                   226 k
  553.  python-slip                           noarch                0.4.0-2.el7                       base                    30 k
  554.  python-slip-dbus                      noarch                0.4.0-2.el7                       base                    31 k
  555.  setroubleshoot-plugins                noarch                3.0.59-2.el7_2                    updates                586 k
  556.  systemd-python                        x86_64                219-19.el7_2.13                   updates                100 k
  557.  
  558. Transaction Summary
  559. ============================================================================================================================
  560. Install  1 Package (+6 Dependent packages)
  561.  
  562. Total download size: 1.5 M
  563. Installed size: 9.0 M
  564. Downloading packages:
  565. (1/7): pygobject2-2.28.6-11.el7.x86_64.rpm                                                           | 226 kB  00:00:00    
  566. (2/7): python-slip-dbus-0.4.0-2.el7.noarch.rpm                                                       |  31 kB  00:00:00    
  567. (3/7): libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm                                                     | 247 kB  00:00:00    
  568. (4/7): setroubleshoot-plugins-3.0.59-2.el7_2.noarch.rpm                                              | 586 kB  00:00:00    
  569. (5/7): systemd-python-219-19.el7_2.13.x86_64.rpm                                                     | 100 kB  00:00:00    
  570. (6/7): setroubleshoot-server-3.2.24-4.el7_2.x86_64.rpm                                               | 345 kB  00:00:00    
  571. (7/7): python-slip-0.4.0-2.el7.noarch.rpm                                                            |  30 kB  00:00:01    
  572. ----------------------------------------------------------------------------------------------------------------------------
  573. Total                                                                                       822 kB/s | 1.5 MB  00:00:01    
  574. Running transaction check
  575. Running transaction test
  576. Transaction test succeeded
  577. Running transaction
  578.   Installing : pygobject2-2.28.6-11.el7.x86_64                                                                          1/7
  579.   Installing : systemd-python-219-19.el7_2.13.x86_64                                                                    2/7
  580.   Installing : python-slip-0.4.0-2.el7.noarch                                                                           3/7
  581.   Installing : python-slip-dbus-0.4.0-2.el7.noarch                                                                      4/7
  582.   Installing : libxml2-python-2.9.1-6.el7_2.3.x86_64                                                                    5/7
  583.   Installing : setroubleshoot-plugins-3.0.59-2.el7_2.noarch                                                             6/7
  584.   Installing : setroubleshoot-server-3.2.24-4.el7_2.x86_64                                                              7/7
  585.   Verifying  : libxml2-python-2.9.1-6.el7_2.3.x86_64                                                                    1/7
  586.   Verifying  : python-slip-dbus-0.4.0-2.el7.noarch                                                                      2/7
  587.   Verifying  : python-slip-0.4.0-2.el7.noarch                                                                           3/7
  588.   Verifying  : setroubleshoot-server-3.2.24-4.el7_2.x86_64                                                              4/7
  589.   Verifying  : systemd-python-219-19.el7_2.13.x86_64                                                                    5/7
  590.   Verifying  : pygobject2-2.28.6-11.el7.x86_64                                                                          6/7
  591.   Verifying  : setroubleshoot-plugins-3.0.59-2.el7_2.noarch                                                             7/7
  592.  
  593. Installed:
  594.   setroubleshoot-server.x86_64 0:3.2.24-4.el7_2                                                                            
  595.  
  596. Dependency Installed:
  597.   libxml2-python.x86_64 0:2.9.1-6.el7_2.3                          pygobject2.x86_64 0:2.28.6-11.el7                        
  598.   python-slip.noarch 0:0.4.0-2.el7                                 python-slip-dbus.noarch 0:0.4.0-2.el7                    
  599.   setroubleshoot-plugins.noarch 0:3.0.59-2.el7_2                   systemd-python.x86_64 0:219-19.el7_2.13                  
  600.  
  601. Complete!
  602. [root@shamanth1 nginx]# sepolicy network -t http_port_t
  603. -bash: sepolicy: command not found
  604. [root@shamanth1 nginx]# systmctl restart nginx jenkins
  605. -bash: systmctl: command not found
  606. [root@shamanth1 nginx]# systemctl restart nginx jenkins
  607. [root@shamanth1 nginx]#
  608. [root@shamanth1 nginx]#
  609. [root@shamanth1 nginx]#
  610. [root@shamanth1 nginx]#
  611. [root@shamanth1 nginx]#
  612. [root@shamanth1 nginx]# Connection to 54.214.202.44 closed by remote host.
  613. Connection to 54.214.202.44 closed.
  614. ShamanteddysMBP:~ shamanthreddyd$
  615. ShamanteddysMBP:~ shamanthreddyd$ ssh user@54.214.202.44
  616. user@54.214.202.44's password:
  617. Last login: Thu Dec  8 02:15:43 2016 from c-24-218-140-75.hsd1.ma.comcast.net
  618. [user@shamanth1 ~]$ su -
  619. Password:
  620. Last login: Thu Dec  8 02:14:33 UTC 2016 on pts/1
  621. [root@shamanth1 ~]# which nginx
  622. /sbin/nginx
  623. [root@shamanth1 ~]# systemctl enable jenkins
  624. jenkins.service is not a native service, redirecting to /sbin/chkconfig.
  625. Executing /sbin/chkconfig jenkins on
  626. [root@shamanth1 ~]# systemctl start jenkins
  627. [root@shamanth1 ~]# systemctl status jenkins
  628. ● jenkins.service - LSB: Jenkins Continuous Integration Server
  629.   Loaded: loaded (/etc/rc.d/init.d/jenkins)
  630.   Active: active (running) since Thu 2016-12-08 02:15:34 UTC; 3min 49s ago
  631.     Docs: man:systemd-sysv-generator(8)
  632.   CGroup: /system.slice/jenkins.service
  633.           └─1103 /etc/alternatives/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war...
  634.  
  635. Dec 08 02:15:30 shamanth1.mylabserver.com systemd[1]: Starting LSB: Jenkins Continuous Integration Server...
  636. Dec 08 02:15:30 shamanth1.mylabserver.com runuser[896]: pam_unix(runuser:session): session opened for user jenkins by (uid=0)
  637. Dec 08 02:15:34 shamanth1.mylabserver.com jenkins[887]: Starting Jenkins [  OK  ]
  638. Dec 08 02:15:34 shamanth1.mylabserver.com systemd[1]: Started LSB: Jenkins Continuous Integration Server.
  639. Dec 08 02:19:12 shamanth1.mylabserver.com systemd[1]: Started LSB: Jenkins Continuous Integration Server.
  640. [root@shamanth1 ~]# cd /etc/nginx
  641. [root@shamanth1 nginx]# systemctl restart nginx jenkins
  642. [root@shamanth1 nginx]# systemctl status nginx jenkins
  643. ● nginx.service - The nginx HTTP and reverse proxy server
  644.   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
  645.   Active: active (running) since Thu 2016-12-08 02:20:11 UTC; 25s ago
  646.  Process: 1706 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
  647.  Process: 1698 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
  648.  Process: 1695 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
  649. Main PID: 1709 (nginx)
  650.   CGroup: /system.slice/nginx.service
  651.           ├─1709 nginx: master process /usr/sbin/nginx
  652.           └─1710 nginx: worker process
  653.  
  654. Dec 08 02:20:10 shamanth1.mylabserver.com systemd[1]: Starting The nginx HTTP and reverse proxy server...
  655. Dec 08 02:20:11 shamanth1.mylabserver.com nginx[1698]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  656. Dec 08 02:20:11 shamanth1.mylabserver.com nginx[1698]: nginx: configuration file /etc/nginx/nginx.conf test is successful
  657. Dec 08 02:20:11 shamanth1.mylabserver.com systemd[1]: Failed to read PID from file /run/nginx.pid: Invalid argument
  658. Dec 08 02:20:11 shamanth1.mylabserver.com systemd[1]: Started The nginx HTTP and reverse proxy server.
  659.  
  660. ● jenkins.service - LSB: Jenkins Continuous Integration Server
  661.   Loaded: loaded (/etc/rc.d/init.d/jenkins)
  662.   Active: active (running) since Thu 2016-12-08 02:20:12 UTC; 23s ago
  663.     Docs: man:systemd-sysv-generator(8)
  664.  Process: 1691 ExecStop=/etc/rc.d/init.d/jenkins stop (code=exited, status=0/SUCCESS)
  665.  Process: 1712 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, status=0/SUCCESS)
  666.   CGroup: /system.slice/jenkins.service
  667.           └─1728 /etc/alternatives/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war...
  668.  
  669. Dec 08 02:20:12 shamanth1.mylabserver.com systemd[1]: Starting LSB: Jenkins Continuous Integration Server...
  670. Dec 08 02:20:12 shamanth1.mylabserver.com runuser[1714]: pam_unix(runuser:session): session opened for user jenkins by (uid=0)
  671. Dec 08 02:20:12 shamanth1.mylabserver.com jenkins[1712]: Starting Jenkins [  OK  ]
  672. Dec 08 02:20:12 shamanth1.mylabserver.com systemd[1]: Started LSB: Jenkins Continuous Integration Server.
  673. [root@shamanth1 nginx]# yum install firefox
  674. Loaded plugins: fastestmirror
  675. Loading mirror speeds from cached hostfile
  676. * base: centos.eecs.wsu.edu
  677. * epel: mirrors.cat.pdx.edu
  678. * extras: mirror.chpc.utah.edu
  679. * nux-dextop: mirror.li.nux.ro
  680. * updates: mirrors.usc.edu
  681. Resolving Dependencies
  682. --> Running transaction check
  683. ---> Package firefox.x86_64 0:45.4.0-1.el7.centos will be installed
  684. --> Processing Dependency: redhat-indexhtml for package: firefox-45.4.0-1.el7.centos.x86_64
  685. --> Processing Dependency: liberation-sans-fonts for package: firefox-45.4.0-1.el7.centos.x86_64
  686. --> Running transaction check
  687. ---> Package centos-indexhtml.noarch 0:7-9.el7.centos will be installed
  688. ---> Package liberation-sans-fonts.noarch 1:1.07.2-15.el7 will be installed
  689. --> Finished Dependency Resolution
  690.  
  691. Dependencies Resolved
  692.  
  693. ========================================================================================================================================================================
  694. Package                                         Arch                             Version                                       Repository                         Size
  695. ========================================================================================================================================================================
  696. Installing:
  697. firefox                                         x86_64                           45.4.0-1.el7.centos                           updates                            76 M
  698. Installing for dependencies:
  699. centos-indexhtml                                noarch                           7-9.el7.centos                                base                               92 k
  700. liberation-sans-fonts                           noarch                           1:1.07.2-15.el7                               base                              279 k
  701.  
  702. Transaction Summary
  703. ========================================================================================================================================================================
  704. Install  1 Package (+2 Dependent packages)
  705.  
  706. Total download size: 77 M
  707. Installed size: 143 M
  708. Is this ok [y/d/N]: y
  709. Downloading packages:
  710. (1/3): centos-indexhtml-7-9.el7.centos.noarch.rpm                                                                                                |  92 kB  00:00:00    
  711. (2/3): liberation-sans-fonts-1.07.2-15.el7.noarch.rpm                                                                                            | 279 kB  00:00:00    
  712. (3/3): firefox-45.4.0-1.el7.centos.x86_64.rpm                                                                                                    |  76 MB  00:00:22    
  713. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  714. Total                                                                                                                                   3.4 MB/s |  77 MB  00:00:22    
  715. Running transaction check
  716. Running transaction test
  717. Transaction test succeeded
  718. Running transaction
  719.  Installing : centos-indexhtml-7-9.el7.centos.noarch                                                                                                               1/3
  720.  Installing : 1:liberation-sans-fonts-1.07.2-15.el7.noarch                                                                                                         2/3
  721.  Installing : firefox-45.4.0-1.el7.centos.x86_64                                                                                                                   3/3
  722.  Verifying  : 1:liberation-sans-fonts-1.07.2-15.el7.noarch                                                                                                         1/3
  723.  Verifying  : centos-indexhtml-7-9.el7.centos.noarch                                                                                                               2/3
  724.  Verifying  : firefox-45.4.0-1.el7.centos.x86_64                                                                                                                   3/3
  725.  
  726. Installed:
  727.  firefox.x86_64 0:45.4.0-1.el7.centos                                                                                                                                  
  728.  
  729. Dependency Installed:
  730.  centos-indexhtml.noarch 0:7-9.el7.centos                                         liberation-sans-fonts.noarch 1:1.07.2-15.el7                                        
  731.  
  732. Complete!
  733. [root@shamanth1 nginx]# setenforce 1
  734. [root@shamanth1 nginx]# getenforce
  735. Enforcing
  736. [root@shamanth1 nginx]# systemctl restart nginx jenkins
  737. [root@shamanth1 nginx]#
  738. [root@shamanth1 nginx]#
  739. [root@shamanth1 nginx]#
  740. [root@shamanth1 nginx]# cd /var/lib/jenkins/secrets
  741. [root@shamanth1 secrets]# ll
  742. total 28
  743. drwxr-xr-x. 2 jenkins jenkins  28 Dec  8 01:27 filepath-filters.d
  744. -rw-r--r--. 1 jenkins jenkins 272 Dec  8 01:27 hudson.util.Secret
  745. -rw-r-----. 1 jenkins jenkins  33 Dec  8 01:27 initialAdminPassword
  746. -rw-r--r--. 1 jenkins jenkins  32 Dec  8 01:27 jenkins.model.Jenkins.crumbSalt
  747. -rw-r--r--. 1 jenkins jenkins  48 Dec  8 01:27 jenkins.security.ApiTokenProperty.seed
  748. -rw-r--r--. 1 jenkins jenkins 256 Dec  8 01:27 master.key
  749. -rw-r--r--. 1 jenkins jenkins 272 Dec  8 01:27 org.jenkinsci.main.modules.instance_identity.InstanceIdentity.KEY
  750. -rw-r--r--. 1 jenkins jenkins   5 Dec  8 01:27 slave-to-master-security-kill-switch
  751. drwxr-xr-x. 2 jenkins jenkins  25 Dec  8 01:27 whitelisted-callables.d
  752. [root@shamanth1 secrets]# cat initialAdminPassword
  753. f563dcbfae484a59a8b71c9d2d24ab04
Add Comment
Please, Sign In to add comment