2015-05-20 nfs/ftp Service Configuration

Source: Internet
Author: User
Tags file transfer protocol what is ftp

One. NFS
1. Introduction to NFS
The NFS full name is the network file system
NFS allows a system to share directories and files with others on the network. By using NFS, users and programs can access files on the remote system as if they were accessing local files.
If there are three machines A, B, C, they need to access the same directory, the directory is a picture, the traditional practice is to put these pictures in a, B, C. But using NFS only needs to be placed on a, then a is shared with B and C. At the time of the visit, B and C go through the network to access the directory on a.
2. Installing and configuring NFS Services

Server-side Configuration NFS

[email protected] ~]# Yum install-y nfs-utils

The first is to modify the configuration file, the default file is empty, and now edit it:

[Email protected] ~]# Vim/etc/exports

Write the following content:

/SD/111.47.123.0/24 (rw,sync,all_squash,anonuid=501,anongid=501)
[[email protected] ~]#/etc/init.d/rpcbind start;  /etc/init.d/nfs start

Mount NFS on the client

[email protected] ~]# Yum install-y nfs-utils

Now you can see which directories are shared on the server side:

[[email protected] ~]# showmount-e 111.47.123.66Export list for 111.47.123.66:
/SD 111.47.123.0/24

[[email protected]~]# mount-t NFS 111.47.123.66:/sd//mnt/
[[email protected]~]# df-h
Filesystem Size used Avail use% mounted on
/dev/mapper/vg_wuhan68-lv_root
12G 2.8G 8.1G 26%/
Tmpfs 939M 0 939M 0%/dev/shm
/DEV/SDA1 485M 32M 428M 7%/boot
111.47.123.66:/sd/12g 2.4G 8.5G 22%/mnt
[[email protected]~]# cd/mnt
[[email protected]mnt]# LL
Total 0
-rw-r--r--1 root root 0 9 1.txt
-rw-r--r--1 root root 0 9 2.txt
-rw-r--r--1 root root 0 9 3.txt
-rw-r--r--1 root root 0 9 4.txt
-rw-r--r--1 root root 0 9 5.txt

Two. FTP
1. What is FTP
FTP is the abbreviation for the file Transfer Protocol (document Transfer Protocol), which is known as the "Interfax protocol" for two-way transmission of control files on the Internet.
The primary role of FTP is to have users connect to a remote computer (which is running an FTP server program) to see what files are available on the remote computer, then copy the files from the remote computer to the local computer, or send the local computer's files to the remote computer.
The FTP software that comes with CentOS or Redhat Linux is called VSFTPD
2. Using PURE-FTPD to build FTP service
PURE-FTPD official website http://www.pureftpd.org/project/pure-ftpd
Yum Install-y epel-release
Yum Install-y pure-ftpd
3. VSFTP Configuring the FTP service
Yum install-y vsftpd Db4-utils

Install VSFTPD under Linux

http://my.oschina.net/hanzhankang/blog/205411

Extended reading section:

Configuring the FTP Service

Http://www.apelearn.com/study_v2/chapter21.html

Vsftp use MySQL to store virtual users and verify http://www.aminglinux.com/bbs/thread-342-1-1.html

FTP Active and Passive mode http://www.aminglinux.com/bbs/thread-961-1-1.html

Production

Environment PURE-FTP Server Installation Deployment documentation

http://blog.163.com/jesse_linux/blog/static/171647142201222964134876/

2015-05-20 nfs/ftp Service Configuration

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.