Action Note: Install FTP under Linux

Source: Internet
Author: User

1, install FTP

[email protected] ~]# Yum install vsftpd

Information for successful installation:

[[Email protected] ~]# yum Install vsftpd loaded plugin: Langpacksrepodata is over2 weeks old. Install Yum-cron?Or Run:yum Makecache fastbase| 3.6 KB 00:00Epel| 4.3 KB 00:00Extras| 3.4 KB 00:00Updates| 3.4 KB 00:00     (1/3): extras/7/x86_64/primary_db | KB 00:00     (2/3): Epel/x86_64/updateinfo | 425 KB 00:00     (3/3): epel/x86_64/primary_db | 3.7 MB 00:04Resolving Dependencies-Checking Transactions---> Package vsftpd.x86_64.0.3.0.2-9. EL7 will be installed-resolve dependencies to complete dependency relationships================================================================================Package schema version source size================================================================================Installing: vsftpd x86_643.0.2-9.EL7 Base 165k Transaction Summary================================================================================installation1Total Package Downloads:165k installation Size:343KIs ThisOK [y/d/N]: ydownloading packages:vsftpd-3.0.2-9.el7.x86_64.rpm | 165 KB 00:00Running Transaction checkrunning transaction testtransaction test succeededrunning transaction Warning: RPM database has been non-Yum path  Modification of the sequence. Installing: VSFTPD-3.0.2-9.el7.x86_64 1/1error:couldn' t fork%post (VSFTPD-3.0.2-9.EL7.X86_64): Cannot allocate memorynon-fatal Postin scriptlet failure in rpm PackageVsftpd-3.0.2-9. el7.x86_64 verified in: vsftpd-3.0.2-9.el7.x86_64 1/1installed: vsftpd.x86_640:3.0.2-9. EL7 finished! 

Installed directory:

[Email protected] ~]# cd/etc/vsftpd/[[email protected] vsftpd]# lsftpusers  user_list  vsftpd.conf  Vsftpd_conf_migrate.sh

The use of these four documents can be referred to:

Http://www.cnblogs.com/hnrainll/archive/2011/02/16/1956538.html

2, Start:

Online wrong startup Shell

[Email protected] ~/bin/systemctl start  vsftpd.service

At this point you need to switch to the/bin directory to execute:

[Email protected] bin]#/bin/systemctl start Vsftpd.service
[Email protected] bin]# systemctl status Vsftpd.service
VSFTPD.SERVICE-VSFTPD FTP Daemon
loaded:loaded (/usr/lib/systemd/system/vsftpd.service; disabled)
Active:active (running) since four 2015-12-10 08:51:55 CST; 15min ago
process:16486 execstart=/usr/sbin/vsftpd/etc/vsftpd/vsftpd.conf (code=exited, status=0/success)
Main pid:16487 (VSFTPD)
CGroup:/system.slice/vsftpd.service
└─16487/usr/sbin/vsftpd/etc/vsftpd/vsftpd.conf

December 08:51:55 Iz945sgm0ugz systemd[1]: Starting Vsftpd FTP daemon ...
December 08:51:55 Iz945sgm0ugz systemd[1]: Started Vsftpd FTP daemon.
December 08:56:32 Iz945sgm0ugz systemd[1]: Started Vsftpd FTP daemon.
December 08:57:17 Iz945sgm0ugz systemd[1]: Started Vsftpd FTP daemon.
December 09:01:11 Iz945sgm0ugz systemd[1]: Started Vsftpd FTP daemon.
December 09:02:03 Iz945sgm0ugz systemd[1]: Started Vsftpd FTP daemon.
December 09:04:11 Iz945sgm0ugz systemd[1]: Started Vsftpd FTP daemon.

Start successfully! Similarly, the shell that stops the service is:

[Email protected] bin]#/bin/systemctl stop Vsftpd.service

To this, FTP can be used, but with the connection tool only:/var/ftp/pub this directory, others can not see. Then look

3, configure FTP

3.1 Connect all directories under Linux

[Email protected] etc]# vim passwd

Modify the/etc/passwd file

root:x:0:0:root:/root:/bin/bashbin:x:1:1:bin:/bin:/sbin/nologindaemon:x:2:2:daemon:/sbin:/sbin/nologinadm:x:3:4:adm:/var/adm:/sbin/nologinlp:x:4:7:lp:/var/spool/lpd:/sbin/nologinsync:x:5:0:sync:/sbin:/bin/syncshutdown:x:6:0:shutdown:/sbin:/sbin/shutdownhalt:x:7:0:halt:/sbin:/sbin/haltmail:x:8:12:mail:/var/spool/mail:/sbin/nologinoperator:x:11:0:operator:/root:/sbin/nologingames:x:12:100:games:/usr/games:/sbin/nologinftp:x: 14:50:ftp User:/:/sbin/nologin//change User: "/xxx/xx" to "/"

Connect again to see all directories

3.2 Create a login user.

Not to be continued,

Action Note: Install FTP under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.