.LOG
Andy: mxtd114
"Building an FTP server under Linux"
0.root login
1. Install ftp
# yum -y install ftp
2. Install vsftpd
# yum -y install vsftpd
3. Start service
# service vsftpd start
4. Create user
# useradd test
# passwd test
5. Set selinux
# setsebool -P ftp_home_dir on
# service vsftpd restart
6. Modify the FTP access path
# mkdir /home/ftpPub
# touch /home/ftpPub/ftpTest.txt
# chmod 777 /home/ftpPub
# vim /etc/vsftpd/vsftpd.conf
Open the configuration file and add the following statement:
local_root=/home/ftpPub
save and exit and restart the service
#service vsftpd restart
7. Check IP: # ifconfig
find this record, followed by IP---->inet addr: 10.0.2.15
8. New terminal test
Ctrl+ALT+F2 Open a new command window to log in to
Linuxcast as user test login: test
Password:
$ touch test.txt
ftp server connection test
$ ftp 10.0.2.15
Enter the user name test and password
ftp>
9. Upload and download test
ftp >put test.txt
ftp>get test.txt savetest.txt
10.Good luck!
12:54 2018/5/8