Ramblings from MostlyChris

Tech stuff and a bit more

Browsing Posts published in December, 2009

Follow these simple steps to setup an NFS client/server. First, some housekeeping for this example. Server machine (server) = 192.168.1.1 Client machine (client) = 192.168.1.2 Exported directory /nfs/export ### The server steps ### 1. Create an entry in /etc/exports with the exported directory and client IP. /nfs/export 192.168.1.2(rw) The (rw) sets the directory to be [...]

Optimize Mysql

No comments

The following command will optimize all databases in mysql (excpect those that don't support it due to their storage engine). mysqlcheck -Aao You can throw the –auto-repair flag in if you are brave.

If you need to change the TTLs on all domains in Plesk at once, you can massage the database with the following command: mysql> UPDATE `dns_zone` SET `ttl` = '300', `ttl_unit` = '60' WHERE `id` >1; Substitute the TTL values for what you need. Since the flat files are still used by named to provide [...]