[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
Month: February 2017
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
Protected: Interview Questions
There is no excerpt because this is a protected post.
vmware dumps
Click below two links for vmware related dumps vcp-510_veera dump_vcp550
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
puppetdb query
[mshaik@puppetdb ~]$ curl -X GET http://localhost:8080/v3/facts/swapsize --data-urlencode 'query=["=", "value", "0.00 MB"]' [ { "value" : "0.00 MB", "name" : "swapsize", "certname" : "elk.c.rich-operand-154505.internal" } ] [root@puppetdb ~]# curl -X GET http://localhost:8080/v3/facts/role/puppetdb [ { "value" : "puppetdb", "name" : "role", "certname" : "puppetdb.puppethub.in" } ] [root@puppetdb ~]# curl -X GET http://localhost:8080/v3/facts/role --data-urlencode 'query=["=", "value", "puppetdb"]' [ … Continue reading puppetdb query
puppetdb(postgres)
[root@puppetdb ~]# sudo -u postgres psql postgres=# \l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges -----------+----------+----------+---------+-------+----------------------- postgres | postgres | UTF8 | en_IN | en_IN | puppetdb | postgres | UTF8 | en_IN | en_IN | =T/postgres + | | | | | postgres=CTc/postgres+ | | | … Continue reading puppetdb(postgres)
