Giuseppe’s Weblog

Just another WordPress.com weblog

Archive for Maggio 2008

Bind address in my-sql

con un commento

Nel seguente file:
/etc/mysql/my.cnf

sostituire:

bind-address = 127.0.0.1

con:

bind-address = 0.0.0.0

Nel primo caso mysql in ascolto solo da localhost nel secondo da ogni indirizzo.

Written by gfiorito

Maggio 16, 2008 alle 2:12 pm

Pubblicato in HowTo, MySQL

Static routes Ubuntu

nessun commento

Creare un file eseguibile nella cartella:
/etc/network/if-up.d/

con le rotte statiche da aggiungere come nell’esempio:

#!/bin/sh
# Set static routes
#
/sbin/route add -net 10.10.22.0/24 gw 10.10.20.254 dev eth0
/sbin/route add -host 10.10.10.50 gw 10.10.20.254 dev eth0

Written by gfiorito

Maggio 14, 2008 alle 10:04 am

Pubblicato in HowTo, Linux, Ubuntu

Analisi access_log apache

nessun commento

awk ‘{print $1}’ access_log|sort|uniq -c|sort -nr

Written by gfiorito

Maggio 13, 2008 alle 1:50 pm

Pubblicato in Apache, HowTo