Monthly Archives: August 2008

//August
­
31 08, 2008

Install Nagios

By |August 31st, 2008|Nagios|0 Comments

How to install nagios In the nagios server 1)Download the tarball of nagios (Here I use nagios-1.0b5 version) #wget http://heanet.dl.sourceforge.net/sourceforge/nagios/nagios-1.0b5.tar.gz 2)Extract the tarball # tar zxvf nagios-1.0b5.tar.gz 3) Create a folder named nagios under /usr/local # mkdir /usr/local/nagios 4)Create a user and group named nagios. In many of the linux flavours, a corresponding group will [...]

31 08, 2008

mysql error = cant connect to mysql socket via /var/lib/mysql

By |August 31st, 2008|Mysql|0 Comments

cd /var/lib/mysql touch mysql.sock chown mysql:mysql mysql.sock chmod 777 mysql.sock ln -s /var/lib/mysql/mysql.sock /tmp chmod 777 /tmp /scripts/mysqlup --force /etc/rc.d/init.d/mysql restart

31 08, 2008

Mysql database restore

By |August 31st, 2008|Mysql|0 Comments

mysql backup: var/lib/mysql#mysqldump xx > xx.sql mysql restore: var/lib/mysql#mysql xx < xx.sql

31 08, 2008

Exim mail queue clear

By |August 31st, 2008|Mail, Scripts|0 Comments

To clear SPAMS and unwanted mails from the mail queue exim -bp | awk '$6~"frozen" {print $3 }' | xargs exim -Mrm grep -lr 'nobody@' /var/spool/exim/input/ | sed -e 's/^.*/([a-zA-Z0-9-]*)-[DH]$/1/g' | xargs exim -Mrm grep -rl 'From: Mail Delivery System' /var/spool/exim/input/ | sed -e 's/^.*/([a-zA-Z0-9-]*)-[DH]$/1/g' | xargs exim -Mrm grep -rl 'X-Spam-Status: Yes' /var/spool/exim/input/ | [...]

31 08, 2008

Kernel Compilation

By |August 31st, 2008|Server Setup|0 Comments

Kernel compilation Go to the /usr/src directory Unpack the source code with tar -xvzf linux-2.x.x.tag.gz. Move to the /usr/src/linux sub-directory. make mrproper make menuconfig make all --    make vmlinux --    make modules --    make bzimage make modules_install make install cp /usr/src/linux/arch/i386/boot/zImage /zImage Making an initrd Image An initrd image is needed for loading your SCSI [...]

Load More Posts