Archive for Maggio 2008
Bind address in my-sql
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.
Static routes Ubuntu
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
Analisi access_log apache
awk ‘{print $1}’ access_log|sort|uniq -c|sort -nr