Posts
How to configure rsyslog Some records of resent works. The point is to test rsyslog's file size limit and log format. 1. Create log format: Next is to add a …
In shell scripts, symbols are very usefull to handle strings in variables. Next list some frequently used methods of getting specified strings from variables. ${var##*str} …
Records of commanly used svn commands. 1. Create SVN server: a. Install package. yum install subversion b. Create directory: mkdir /var/svn c. Create repository: svnadmin create /var/svn/test0 d. Edit /var/svn/conf/{passwd, …
Original site: http://blog.redbranch.net/2015/07/30/centos-7-as-nat-gateway-for-private-network/ The scenario is a small private network connected via a switch and using 192.168.0. addresses. One of the machines (let’s call it RTR001) on the network has two …
When we are doing some tests on linux that take very long time, and we have to monitor its status at every moment, in this case, we can set the …
Mark my first little spider about scrapy. Motivation: Recent days, I was busy with testing the VMServer 4.3 (a virtualization software of PUHUA). The beta2 version is just released last …
Original link: https://stackoverflow.com/questions/231767/what-does-the-yield-keyword-do To understand what yield does, you must understand what generators are. And before generators come iterables. Iterables When you create a list, you can read its items one by one. Reading its …
In linux bash, and django ./manage.py shell, double click TAB key would get auto completion. However, the default python interpreter has no such function, but fortunately, this could be added …
A logic volum snapshot could restore the filesystem on ur logical volum. Here's how to do: lvcreate --size 100M --snapshot --name snaptest /dev/test-vg/lvol0 This would create a snapshot snaptest of …
original link: http://linux.math.tifr.res.in/sysadmin/High-Availability-HOWTO-8.html http://linux.math.tifr.res.in/sysadmin/High-Availability-HOWTO.html#toc8 8. Setting Up Redundant Networking 8.1 IP Address Takeover (IPAT) Client machines and applications usually cannot choose on the fly between several IP …