Sometimes we need to set local ip under rescue mode Centos because we need to reinstall kernel. It is basically the same as this article, just this time I create a simple bash script in toort directory. This is only for my note.
nano -w localip.sh
#!/bin/bash
route -n
ip addr add dev enp6s0 192.168.0.22/24
ip route replace default via 192.168.0.1
I wrote the simple script loop for cpanel backup with –skiphomedir option. This is useful for my own note.
The script is very simple. It just does loop cpanel backup with –skiphomedir option. It is very useful to back up cpanel account configuration with MySQL databases. If you want to just back up databases, head over to this link here.
This shell script is to check weekly and monthly backup date. I use it to check backup status for cpanel account. It can also be used to check daily backup. Combine with cronjob, you can create an email report. As for me, I have created cronjob to generate a report every Tuesday.
The shell script as below, and it is a …
I have plan to create MySQL cluster with 2 management nodes. If you read my article before regarding MySQL cluster, we are just using one management node. How about if we require more management node in case the primary management node require maintenance or shutdown.
The configuration is different this time. It is because, there are two management nodes. And also …
HAProxy is a free Open Source software act as a load balancer and proxy for TCP and HTTP application such as Apache. HAProxy was written in 2000 by Willy Tarreau,a core contributor to the Linux kernel, who still maintains the project. In this article we will setup HAProxy on a Centos 7. Previously we have setup MySQL clustering on Centos …