How to disable ipv6 at tomcat
-Djava.net.preferIPv4Stack=true
Category Archives: Uncategorized - Page 2
Tomcat issues
My mysq server databases backup script with Percona
Simple, but working o.k.
BDIR="/home/backup/mysql"
#DATAPATH=`date +%m%d%Y%H%M%S`
# Run backup
/usr/bin/innobackupex --user=root --password=MEGASECUREPASSWORD --slave-info $BDIR
LASTBACKUP=`ls -1 -t $BDIR | head -n 1`
/usr/bin/innobackupex --user=root --password=MEGASECUREPASSWORD --apply-log $BDIR/$LASTBACKUP
Some mysql howto
This topic was done to skip googling in some cases.
How to get mysql database size:
Source: http://eddnet.org/?p=1765
How to set mysql to read only mode:
Attention! root can do r/w regardless of read_only!
edit config
[mysqld]
server-id = 18
innodb_buffer_pool_size = 200MB
read_only = true
How to drop user
How to find duplicate rows.
How to delete duplicated Rows
I am not SQL guru, maybe there is another perfect way how to do it, but it`s works:
How to solve long queue qmail.
Damn, I hate mail administration… And I really like google apps (gmail) or appriver mail hosting.
Today we have issue with our corporate qmail server, mail stalled.
To be clear – I change job a week ago and just 5 days as I take care of new infrastructure.
Corporate mail server powered by qmail. Thay have zabbix as monitoring software, but not enough configured, without queue monitorind and SMS escalation. Due to great number of urgent tasks, I really have no enough hands to fix all at once…
So Monday begins with great fuckup… 180 000 messages in queue…
First diagnostic steps:
Read more »
Find CPU and memory information FreeBSD and Linux
At Linux I use
at FreeBSD
hw.machine: amd64
hw.model: Intel(R) Xeon(R) CPU E5520 @ 2.27GHz
hw.ncpu: 16
hw.machine_arch: amd64
Recent Comments