Ftp – Pure-FTPD error: Unable to start a standalone server: Address already in use

ftppureftpd

I just installed Pure-FTPD to give it a test run, I added a group and a user

groupadd test1

useradd -g test1 -d /var/www/html -s /etc testuser

then tried to run the server using

/usr/sbin/pure-ftpd -S <ip>,21 -c 30 -C 1 -l puredb:/etc/pureftpd.pdb -x -E -j -R

and receive this error

Unable to start a standalone server: Address already in use

I took a look at what was running that may already be using port 21

grep ftp /etc/services

and see this

21 is registered to ftp, but also used by fsp

ftp 21/tcp

ftp 21/udp fsp fspd

then i took a closer look at port 21

lsof -i :21

and got this

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

pure-ftpd 3709 root 4u IPv4 12920 0t0 TCP *:ftp (LISTEN)

pure-ftpd 3709 root 5u IPv6 12922 0t0 TCP *:ftp (LISTEN)

any clues?

Best Answer

it's already running, kill the pid and try again...

Related Topic