Home » Archive

Articles in the Linux tips Category

Linux tips »

[29 Nov 2021 | No Comment | ]

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

route -n

Articles, Headline, Linux tips, Tutorial »

[4 Sep 2019 | One Comment | ]
Bash script to backing up and restore MySQL, InnoDB database

If you want to dump a few database the command ‘mysqldump’ is sufficient. How about the server that have several hundred databases inside. It is easier if we create Shell scripts to do the task. There are 2 version of scripts I normally use. One is to backup whole MySQL database, the other is to backup InnoDB database only.
The databases will be dumped in the folder that we created first and dumped as *.sql.

Linux tips »

[16 Mar 2019 | No Comment | ]
UDP flood causing SNMP false alarm

Sometimes monitoring server that use SNMP to monitor the service will show service down even though the service is not down. This is because of UDP flood to SNMP service triggering the false alarm. The port flooding causing monitoring server failed to retrieve information from the problem server.

Linux tips »

[15 Mar 2019 | 4 Comments | ]
Clusterssh Windows setup to manage multiple SSH

The only purpose for me to install the program is to install Clusterssh to manage multiple ssh session in one time.
In this simple guide I assume that Xming server have been installed and running.
For those who don’t know what is Xming server please refer Xming project website.
It actually X server implementation for Windows.

Linux tips »

[14 Mar 2019 | No Comment | ]
Silly me

One of the server have problem with MySQL. The MySQL table cannot edit at all. Restart the MySQL does not resolve the issue.

It turn out that the problem come from tmp folder.

So stop the MySQL first.

Linux tips »

[12 Mar 2019 | 3 Comments | ]
Cpanel server infected with mining software

Recently one of server under my control infected with mining software. It cause unnecessary load and waste of server resource.
Since the server is using Cpanel, I must use WHM to track down the source. I check WHM ‘Process Manager’ and ‘Daily process log’ and found something similar like :
impxxxx impxxxxketing.com 98.5 -bash -a cryptonight -o stratum+tcp://xx.xx.xx.xx:14444 -u