Wednesday, April 14, 2010

LISTENER ISSUE, Can't start listener

PROBLEM:

{vis1.nrgc.co.za:}/oracle/product/102_64/network/log ->lsnrctl start LISTENER_DGP

LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 14-APR-2010 11:38:48

Copyright (c) 1991, 2007, Oracle. All rights reserved.

Starting /oracle/product/102_64/bin/tnslsnr: please wait...

TNS-12537: TNS:connection closed
TNS-12560: TNS:protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek

SOLUTION:

I added 127.0.0.1 localhost to /etc/hosts

Tuesday, April 13, 2010

How to configure FTP on RedHat Advanced Server

1. Install vsftpd package - (i used vsftpd-2.0.5-10.el5.x86_64.rpm )

2. How to get vsftpd started /stoped
[root@vis1 tmp]# /etc/init.d/vsftpd start
[root@vis1 tmp]# /etc/init.d/vsftpd stop
[root@vis1 tmp]# /etc/init.d/vsftpd restart

3. configure VSFTPD to start at boot
[root@vis1 tmp]# chkconfig vsftpd on

4. Testing the Status of VSFTPD
[root@vis1 rpm_pack]# netstat -a | grep ftp
tcp 0 0 *:ftp *:* LISTEN
If VSFTPD wasn't running, there would be no output at all.

5. How to enable a user like root to log on using ftp
edit the files by removing a user from these 2 files (root)
/etc/vsftpd/ftpusers
/etc/vsftpd/user_list