LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how would I check to see if vsftpd is running? (https://www.linuxquestions.org/questions/linux-newbie-8/how-would-i-check-to-see-if-vsftpd-is-running-101258/)

mehesque 10-07-2003 11:16 AM

how would I check to see if vsftpd is running?
 
I'm quite the newbie here, but I thought I could figure this out.

I did the ps -A and it isn't listed. It seems that vsftpd doesn't have a restart command. I did do the "ftpwho" command and it gave "standalone FTP daemon [2999]: no users connected"

So, i did ps -p 2999 and it just returned the standard line "PID TTY TIME CMD"

I'm doing this because I think my ftpd is down as I can't ftp in. How would I check this and better yet, how would I fix this?


Thanks

ocularbob 10-07-2003 11:30 AM

couple of things

# pidof vsftpd (assuming that is the process name)

or you can use "top" which you probably have

# top

there are of course other ways...

mehesque 10-07-2003 11:56 AM

I still don't see it
 
It doesn't show with "top" and with the other command it gives me a blank line underneath it.

I am running rh8.0 with a GNOME desktop.

ocularbob 10-07-2003 01:13 PM

but top works?

if so then it is not running.
try running it.

# vsftpd (im not sure if it needs to be run with options to go daemon or not, try vsftpd --help to find out how to run it properly)

if you get no errors, then

# pidof vsftpd

if you get a response from pidof then it is running.
you can stop it by doing

#kill 1234 2345 (replace with whatever pidof said)

ocularbob 10-07-2003 01:19 PM

you should also look through the redhat docs to find out how to start and stop services. this is how you will normally want to start vsftpd.
it will also want to be started at boot so you will need to configure your boot scripts. it's all very simple i promise.
but i'm not too sure how redhat has all that stuff setup. check the docs

ntloser 10-07-2003 08:49 PM

I am running vsftpd and I am logged in and downloading right now but when I do top, it is not listed?

ocularbob 10-07-2003 09:12 PM

sometimes there are more are more processes than top can show in one window, try sorting the list to make sure. also use pidof to double check. if still nothing. then perhaps vsftpd's process is not called vsftpd.

another good way to check on your services is to nmap yourself.

nmap 122.234.456.7 (replace with your server's IP)

nmap is a port scanner that will show what ports are open on your machine.
you may have to download and install nmap.


All times are GMT -5. The time now is 04:08 AM.