Posts

Showing posts from October, 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