Solutionist's Blog

Tech | Health | Life | Travel

MySQL Master Master Repliction Tutorial

    This tutorial describes how to set up MySQL master-master replication. We need to replicate MySQL servers to achieve high-availability (HA). In my case I need two masters that are synchronized with each other so that if one of them drops down, other could take over and no data is lost. Similarly when the […]

enable passive mode in VSFTP

FTP hangs or throws these error after a successful login. Vsftp – ftp: connect: No route to host This is because the FTP-data port is blocked by a firewall. 1. Make sure that passive mode is enabled (vsftp enables it by default). Check the file /etc/vsftpd/vsftpd.conf, for the following lines  pasv_enable=YES 2. Also check whether […]

While Loop bash / shell example

I really like to use this as the bash while loop is a control flow statement that allows code or commands to be executed repeatedly based on a given condition. while [ condition ] do command1 done i run this loop to show my EXIM mailq count every minute while true; do date && echo […]

Skip or Bypass a Fsck on boot

  method 1: Temp: on boot from GRUB Menu selecy kernel line and press e  then add fast boot at the end of the line , press ENTER and Press b  to boot Permanent: /boot/grub/grub.conf Find kernel line and put fastboot at the end of the kernel line. In the end it should look as follow: kernel […]

setup multi default gateway under linux

If you need to configure a linux in different network with different gteway this howto is for you. I present you a solution to do the multi default gateway under linux based on iproute2 commande line. Schema example : Step 1 : Creation of the table definition in iproute2: root# cat /etc/iproute2/rt_tables # reserved values […]

Secured By miniOrange