Posts

Showing posts from 2018

elasticsearch logstash kibana (ELK)

                                            elasticsearch logstash kibana DOC Install elasticsearch (ON BOTH NODE ) [root@localhost ~] # wget -c  https://artifacts.elastic.co/ downloads/elasticsearch/ elasticsearch-6.4.1.rpm [root@localhost ~] # rpm -ivh elasticsearch-6.4.1.rpm [root@localhost ~] # vim /etc/elasticsearch/ elasticsearch.yml  ( change  some lines ) cluster.name : esearch node.name :  node1 (Change as a Node2) network.host: 192.168.1.2  (Change as a Node2 ip) http.port: 9200 discovery.zen.ping.unicast. hosts: ["192.168.1.2", "192.168.1.3"] [root@localhost ~] # systemctl  restart elasticsearch [root@localhost ~] # systemctl  enable elasticsearch [root@localhost ~] # firewall-cmd --add-port=9200/tcp --permanent [root@localhost ~] # firewall-cmd --add-port=9300/tcp --permanent [root@localhost ~] # firewall-cmd --reload [root@localhost ~] # firewall-cmd --list-all [root@localhost ~] # curl 'http://192.168.1.2

Git Server and Client

                            Server Side # yum install git*  (Install Git RPMS) # git --version (check your git version ) # mkdir /git_repo (Create folder for code) # useradd git ; echo redhat@123 | passwd --stdin git (Create user with password ) # chowm git:git /git_repo  ( set the user permission ) # su - git ( Login in git User) # cd /git_repo ( go to code folder ) # git init --bare test.git ( Create Empty Project)                               Client Side # yum install git (Install Git RPMS) # mkdir test ( Create Project) # cd test (go to Project Folder ) # touch file{1..5}.txt  (Create Project Files) # git init ( Create git repo ) # git add . (add files in Project) # git config --global  user.name  rajeev  ( set global User Name ) # git config --global user.email  rajeev@example.com   ( set global Email ID ) # git commit -m "my 1st code" ( Commit the Project ) # git remote add origin git@your_git_ServerIP:/git_ code/rajute

How to configure JBoosFuse Fabric in Centos and RHEL Server

======================================================================== [root@Centos6 ~]# vim /etc/hosts (edit in All Nodes for Name Resolution) 172.16.201.200  node1.example.com node1 172.16.201.201  node2.example.com node2 172.16.201.202  node3.example.com node3 172.16.201.203  nfs.example.com nfs Stop All Firewall and selinux policy ( on All Nodes) [root@nfs ~]# iptables -F [root@nfs ~]# iptables -F -t nat [root@nfs ~]# /etc/init.d/iptables save [root@nfs ~]# /etc/init.d/iptables stop [root@nfs ~]# chkconfig iptables off [root@nfs ~]# vim /etc/sysconfig/selinux SELINUX=enforcing [TO]  SELINUX=disabled [root@nfs ~]# init 6 ======================================================================== Create NFS For shareing Maven [root@nfs ~]# mkdir /opt/MAVEN [root@nfs ~]# chmod -R 777 /opt/MAVEN [root@nfs ~]# vim /etc/exports /opt/MAVEN    172.16.201.0/16(rw,sync) [root@nfs ~]# /etc/init.d/nfs restart ===========================================================

Docker in RHEL-7 or Higher Versions

Hardware and software requirements Linux kernel version 3.10 or higher CS Docker Engine version 1.10 or higher. Learn about the  operating systems supported by CS Docker Engine . 2.00 GB of RAM 3.00 GB of available disk space A static IP address Install Docker Container # wget –c https://download.docker.com/linux/centos/docker-ce.repo # cp docker-ce.repo /etc/yum.repos.d/ # yum install docker* -y Start/Stop/Restart/ Docker Service # systemctl start docker.service # systemctl stop docker.service # systemctl restart docker.service # systemctl status docker.service # systemctl enable docker.service Docker Command for Help # docker images ## List images ## # docker ps ## List containers ## # docker run -it –name “Name” centos ## Run a command in a new container ## # docker exec –it “Name” /bin//bash ## Run a command in a running container ## # docker