Está en la página 1de 2

##### TO CONFIGURE THE FTP SERVER ####

Step 1
#### TO INSTALL THE PACKAGE #####
rpm -q vsftpd ( To query the pkg )
yum install vsftpd ( to install the pkg )
rpm -q vsftpd ( to query the pkg )
#### Step 2 #### TO ENTER THE DIR ####
cd /var/ftp/pub
touch file.exe file.mp3 file.avi file.iso ( to create the files )
ls ( to check the files )
#### Step 3 #### TO START THE SERVICE #####
service vsftpd restart
#### Step 4 ### THEN CHECK FROM CLIENT SIDE ####
ftp 192.168.0.110 ( to connect )
ftp ( to assign the username )
press enter
ls ( to check )
cd pub ( to enter the dir )
ls ( to check the files )
get file.exe ( To download the files )
mget file.iso file.mp3 ( to download multiple file
bye ( to quit )
ls ( to check the files )
#### Step 5 #### TO UPLOAD THE FILES ####
on ftp server
vi /etc/vsftpd/vsftpd.conf ( to open the m.c.f )
go to line 29 & remove the #
:wq ( save & quit )
cd /var/ftp ( to enter the dir )
mkdir upload ( to create the dir )
ls ( to check )
chmod 777 upload ( to provide the permission )
ll upload ( to check )
service vsftpd restart ( to start the service )
#### Step 6 #### THEN CHECK FROM CLIENT SIDE ####
touch f1 f2 f3 f4 f5 ( to create the files )
ftp 192.168.0.110 ( to connect )
ftp ( to assign the username )
press enter
ls ( to check )
cd upload ( to enter the dir )
put f1 ( to upload the file )
mput f2 f3 f4 f5 ( to upload the multiple files )
bye ( to quit )
#### Step 7 #### TO CHECK THE FILES FROM FTP SERVER #
on ftp server
cd /var/ftp/upload ( to enter the dir )
ls ( to check the upload files )
#### Step 8 #### TO CHECK THE LOG FILES ###
tail /var/log/xferlog

También podría gustarte