Run the following command to know the current MPM apache using. root@ip-172-31-93-7:/home/ubuntu# apachectl -V | grep -i mpm Server MPM: event The current MPM is apache using is an event module. Available MPM are listed over here. ls /etc/apache2/mods-available/mpm* /etc/apache2/mods-available/mpm_event.conf…
Author: Arunlal
How to check hard disk is ssd or hdd in windows 10
Press windows key + R then type dfrgui ( Disk Defragmenter ) then enter or open the powershell as administrator then type “Get-Phyiscaldisk”
Entries in FSTAB
Fstab files resides in /etc/fstab entries be like the following ones. UUID=1172gfe1-3d7c-44g8-9ad5-0d0b6e0485dd /mnt/test xfs defaults 1 1 First field: has the info about the device name (/dev/sda) either as device name or UUID You will get the UUID by running…
Docker File
FROM: It defines the build image to start the build process. It’s the fist command declared inside the Dockerfile. FROM ubuntu MAINTAINER: Author details of the docker file RUN: It takes the command as argument and runs it from the…
Ansible playbook for file transfer
Docker Swarm
Run the following command to initialize docker swarm. root@ip-172-31-91-97:/home/ubuntu# docker swarm init –advertise-addr 52.203.29.219 Swarm initialized: current node (zhqxor0uw79okh8thcm6boj0o) is now a manager. To add a worker to this swarm, run the following command: docker swarm join –token SWMTKN-1-105nukjje4l0yys14czxrpma8a2cxy1xx2y2n09u490pw1ve4i-4faqsr4p0hrjofywizcp04c6r 52.203.29.219:2377…
SSH notification mail alert in Centos
Open the “bash_profile” vi ~/.bash_profile Add the following content and replace the ” youremailaccount@yourdomain.com” with your email account that you wish to recieve email alerts. # Email admin when user logs in as rootrootalert() { echo ‘ALERT – Root Shell…
How to check disk health in Windows10
open Start menu >> Command Prompt Access WMIC or Windows Management Instrumentation Command-line by typing wmic.Then run the following command “diskdrive health status”
git commands
Some important git commands. git initgit add name-of-filegit add -aGit commit stores the changes made to the file in the local repositorygit commit -m “message” git status git config –global user.name “Arunlal”git config –global user.email emailaddress@gmail.com git branchgit branch newbranchgit checkout…
Nginx installation using Ansible Playbook
—- hosts: test-server gather_facts: yes connection: ssh tasks: – name: install nginx yum: name: nginx state: latest – name: enable and start the nginx service service: …