Skip to content

Latest commit

 

History

History
135 lines (98 loc) · 4.62 KB

installations_guide_centos.md

File metadata and controls

135 lines (98 loc) · 4.62 KB

Installation of httpd

  • yum install httpd -y
  • service httpd start
  • chkconfig httpd on
  • cd /var/www/html/

Terraform installation in Centos

Git installation in Centos

  • yum update -y
  • yum install git -y
  • To confirm: git --version

Maven installation in Centos

Gradle installation in Centos

Jenkins installation in Centos

Upgrading Centos java from 1.7 to 1.8 in centos

Installation of Docker in centos

  • yum update -y

  • sudo yum remove docker
    docker-client
    docker-client-latest
    docker-common
    docker-latest
    docker-latest-logrotate
    docker-logrotate
    docker-engine

  • sudo yum install -y yum-utils
    device-mapper-persistent-data
    lvm2

  • sudo yum install docker -y

  • service docker start

  • service docker status

    If you face below problem which is same as mentione below the you can refer this link
    
    https://stackoverflow.com/questions/25183063/docker-on-rhel-6-cgroup-mounting-failing
    
    Starting cgconfig service: Error: cannot create directory /cgroup/blkio
    /sbin/cgconfigparser; error loading /etc/cgconfig.conf: Cgroup, operation not allowed
    Failed to parse /etc/cgconfig.conf                         [FAILED]
    
     After doing this you need run all the commands with sudo concatenated to it.
    
    - To solve this issue we need to add current user to docker group , to do the same follow the below commands 
      sudo groupadd docker
      sudo usermod -aG docker $USER ( got a error while runing docker commands with the current user)
      sudo usermod -aG docker jenkins (got a error while runing docker commands with jenkins user )
      getent group <groupname> (to check the list of users in particular group)
      sudo passwd jenkins to change password of jenkins user
      
    - even after following the above commands if you face any issue in ruuning commands then run below command
      chmod 777 /var/run/docker.sock
    

Installation of Nginx in centos

  • yum update -y
  • yum install nginx
  • service nginx start

Tomcat installation in Centos

  • yum install -y tomcat7

  • which tomcat7

  • service tomcat7 start

  • cd /usr/share/tomcat7/

  • cd webapps/

  • netstat -tulnp ( To check ports is listning ports )

    Tomcat8 - sudo yum install tomcat8 tomcat8-webapps chkconfig tomcat8 on

Installation of Ansible in centos

  • yum update -y
  • sudo pip install ansible

https://medium.com/@khandelwal12nidhi/ansible-setup-on-aws-ec2-instance-d83fac41fcc8

Installation of Jfrog Artifactory