Tired from the autorun.inf virus from Removable disk and pen drives.
Here is the solution,
create a directory named "autorun.inf" in the root path of your removable disk,
so virus will never create that automatically and never executed automatically.....
enjoy !!!
be safe & keep others OS safe ;-)
Friday, October 10, 2008
Friday, October 03, 2008
How to change postgresql data directory
How to change postgresql data directory.
- vim /etc/postgresql/8.2/main/postgresql.conf
- set data directory path to the new directory path
- Create new Server Certificate
- openssl req -new -text -out server.req
- openssl rsa -in privkey.pem -out server.key
- rm privkey.pem
- openssl req -x509 -in server.req -text -key server.key -out server.crt
- chmod og-rwx server.key
- chown postgres:postgres server.key
- Stop and Restart Postgresql server
Labels:
change data directory,
PGDATA,
postgresql,
ubuntu
Subscribe to:
Posts (Atom)