Error JDBC Connection (Error Connecting: jdbcpostgresql:/ ....)

4:15 PM / Diposting oleh Sharing IT / komentar (2)

This a problem ;


It's a solution...

1. [root@pwmpku /]# cd /home/postgres/Adempiere/postgresql/8.2.0/pgdata/
Edit this statement =
host all all {your subnet/netmask} in pg_hba.conf
[root@pwmpku pgdata]# nano pg_hba.conf

TYPE DATABASE USER CIDR-ADDRESS METHOD

# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
host all all 192.168.0.0/24 trust

2. cd /home/postgres/Adempiere/postgresql/8.2.0

3. [root@pwmpku 8.2.0]# . ./PGSQL.env

4. [root@pwmpku 8.2.0]# cd bin/

5. [root@pwmpku bin]# ./pg_ctl restart

6. [root@pwmpku ~]# su - postgres

7. cd /home/postgres/Adempiere/postgresql/8.2.0/bin

8. [postgres@pwmpku bin]$ ./pg_ctl restart

waiting for server to shut down.... done
server stopped
server starting
[postgres@pwmpku bin]$ LOG: database system was shut down at 2011-01-18 11:59:00 WIT
LOG: checkpoint record is at 0/3E96498
LOG: redo record is at 0/3E96498; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 0/5552; next OID: 108939
LOG: next MultiXactId: 1; next MultiXactOffset: 0
LOG: database system is ready

[postgres@pwmpku bin]$

And then you can continue test process connection :



good luck ! :)

Label:

Shutting Down Alsa very long at Ubuntu 8.10,.. a "Solution"

3:34 PM / Diposting oleh Sharing IT / komentar (0)

Actually, I found a "solution" too. It works in my case:

In /etc/init.d/alsa-utils
search comment the line "mute_and_zero_levels "$TARGET_CARD" || EXITSTATUS=1"
and give mark #,
"#mute_and_zero_levels "$TARGET_CARD" || EXITSTATUS=1".

The mute_and_zero_levels call waits a very long time.

Have nice day.. :)

Label:

Configure DNS Server Fedora 7 & 8

11:09 AM / Diposting oleh Sharing IT / komentar (0)

[root@brainwash /]# rpm -qa|grep bind
bind-libs-9.4.0-6.fc7
rpcbind-0.1.4-6.fc7
bind-9.4.0-6.fc7
ypbind-1.19-9.fc7
bind-utils-9.4.0-6.fc7
bind-chroot-9.4.0-6.fc7

[root@brainwash /]# nano /var/named/chroot/etc/named.conf
options {
listen-on port 53 { 127.0.0.1; 192.167.10.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; 192.167.10.0/24; };
recursion yes;
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "." IN {
type hint;
file "named.ca";
};

#include "/etc/named.rfc1912.zones";


#### Edit by bafrin ####

zone "tester.net" IN {
type master;
file "tester.net.db";
};

zone "10.167.192.in-addr.arpa" IN {
type master;
file "tester.net.rev";
};

Make shorcut link file to /etc/
[root@brainwash /]# ln -sf /var/named/chroot/etc/named.conf /etc/

[root@brainwash /]# nano /var/named/chroot/var/named/tester.net.db
$TTL 86400
@ IN SOA brainwash.tester.net. test.tester.net.(
2010080200;
86400;
3600;
360000;
86400;
)
IN NS brainwash.tester.net.

brainwash.tester.net. IN A 192.167.10.1

[root@brainwash /]# nano /var/named/chroot/var/named/teseter.net.rev
$TTL 86400
@ IN SOA brainwash.tester.net. pwm.tester.net.(
2010080200;
86400;
3600;
360000;
86400;
)
IN NS brainwash.tester.net.
1 IN PTR brainwash.tester.net.

Make shortcut link file to /var/named/
[root@brainwash /]# ln -sf /var/named/chroot/var/named/tester.net.db /var/named/
[root@brainwash /]# ln -sf /var/named/chroot/var/named/tester.net.rev /var/named/

Edit file resolv.conf
[root@brainwash /]# nano /etc/resolv.conf
search tester.net
nameserver 192.167.10.1
nameserver 208.67.220.220
nameserver 208.67.222.222

Edit and Input file hosts
[root@brainwash /]# nano /etc/hosts
127.0.0.1 brainwash.tester brainwash localhost.localdomain localhost
192.167.10.1 brainwash.tester.net brainwash

Edit and Input file host.conf
[root@brainwash /]# nano /etc/host.conf
#order hosts,bind
order bin,host
multi on

Make your DNS Server automaticaly run after restart your system
[root@brainwash /]# chkconfig named on

Cek Your Service
[root@brainwash /]# netstat -an|grep 53
tcp 0 0 192.167.10.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
tcp 0 0 ::1:53 :::* LISTEN
tcp 0 0 ::1:953 :::* LISTEN
udp 0 0 192.167.10.1:53 0.0.0.0:*
udp 0 0 127.0.0.1:53 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 ::1:53 :::*
udp 0 0 :::5353 :::*

Cek Your DNS Server
[root@brainwash /]# nslookup brainwash.tester.net
Server: 192.167.10.1
Address: 192.167.10.1#53

Name: brainwash.tester.net
Address: 192.168.10.1

If output messages from your server that's above, Your DNS server is complete.

Label: