3 node core-os cluster

mohammedrafi@NOC-RAFI:~$ sudo apt-get install git mohammedrafi@NOC-RAFI:~$ git --version git version 1.9.1 mohammedrafi@NOC-RAFI:~$ vagrant --version Vagrant 1.4.3 mohammedrafi@NOC-RAFI:~$ VBoxManage --version 4.3.36_Ubuntur105129 mohammedrafi@NOC-RAFI:~$ mkdir gitdata && cd gitdata mohammedrafi@NOC-RAFI:~/gitdata$ git clone https://github.com/coreos/coreos-vagrant.git Cloning into 'coreos-vagrant'... remote: Counting objects: 448, done. remote: Total 448 (delta 0), reused 0 (delta 0), pack-reused 448 Receiving objects: 100% (448/448), 110.64 KiB … Continue reading 3 node core-os cluster

coreos Container-Runtime,etcdctl,fleet

Working with coreos Download iso from below path https://stable.release.core-os.net/amd64-usr/current/coreos_production_iso_image.iso mohammedrafi@NOC-RAFI:~$ ssh core@192.168.183.133 Password: Last login: Thu Mar 30 12:47:59 UTC 2017 on tty1 Container Linux by CoreOS stable (1298.6.0) Update Strategy: No Reboots core@localhost ~ $ core@localhost ~ $ uname -a Linux localhost 4.9.9-coreos-r1 #1 SMP Tue Mar 14 21:09:42 UTC 2017 x86_64 Intel(R) Core(TM) … Continue reading coreos Container-Runtime,etcdctl,fleet

Dubug in ansible

------------------------------- [mohammedrafi@ansible ~]$ touch shaik ------------------------------- [mohammedrafi@ansible ~]$ vim reg.yml --- - hosts: localhost tasks: - command: stat shaik register: one - debug: var=one ------------------------------- [mohammedrafi@ansible ~]$ ansible-playbook reg.yml PLAY [localhost] *************************************************************** TASK [setup] ******************************************************************* ok: [localhost] TASK [command] ***************************************************************** changed: [localhost] TASK [debug] ******************************************************************* ok: [localhost] => { "one": { "changed": true, "cmd": [ … Continue reading Dubug in ansible

WordPress hosting in centos-7

[root@wordpress ~]# yum install httpd mariadb mariadb-server php php-common php-mysql php-gd php-xml php-mbstring php-mcrypt [root@wordpress ~]# mysql_secure_installation [root@wordpress ~]# systemctl start mariadb [root@wordpress ~]# systemctl enable mariadb [root@wordpress ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 10 Server version: 5.5.52-MariaDB … Continue reading WordPress hosting in centos-7

sed cut awk

[root@ansible1 ~]# vim example I want to learn java. Learn java. Learn java java is the best java forever Replacing string [root@ansible1 ~]# sed 's/java/guava/' example.txt I want to learn guava. Learn java. Learn java guava is the best guava forever Replacing the nth occurrence of a pattern in a line [root@ansible1 ~]# sed 's/java/guava/2' … Continue reading sed cut awk

List block device information

[root@ansible1 ~]# sar -d Linux 3.10.0-514.6.1.el7.x86_64 (ansible1) Monday 13 February 2017 _x86_64_ (1 CPU) 09:10:02 UTC DEV tps rd_sec/s wr_sec/s avgrq-sz avgqu-sz await svctm %util 09:20:01 UTC dev8-0 0.30 0.33 3.66 13.36 0.00 14.01 2.31 0.07 Average: dev8-0 0.30 0.33 3.66 13.36 0.00 14.01 2.31 0.07 List block device information [root@ansible1 ~]# lsblk NAME MAJ:MIN … Continue reading List block device information

Directives and contexts

A beneficial part of nginx being a reverse proxy is that it fits into a large number of server setups, and can handle many things that other web servers simply aren't designed for.A popular question is "Why even bother with nginx when Apache httpd is available?" The answer lies in the way the two programs … Continue reading Directives and contexts

Nginx core concepts

Nginx configuration files are simply sequences of directives that can take up to eight space-separated arguments, for example: gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript In the configuration file, the directives are delimited by a semicolon ( ; ) from one another. Some of the directives may have a block instead of a semicolon. … Continue reading Nginx core concepts