Linux 14 week two lessons (May 10) Notes

Source: Internet
Author: User

14 weeks two sessions (May 10)
14.4 Exportfs Command
14.5 NFS Client Issues
15.1 FTP Introduction
15.2/15.3 using VSFTPD to build FTP

14.4 Exportfs Command

If the remote client is using the NFS service, it is being mounted. If the service side stops the NFS service, the remote client hangs.


A share a directory, b to write or read the file. If A is stopped, nfs,b cannot read and write. If B reads and writes frequently, it can result in the process of reading and writing shared files, such as PHP hangs. Causes the process to become abnormal and even kills the machine. A can not be restarted randomly, you need to mount the B and C directories first uninstall.

Unmount the mounted directory to restart the command as follows:

If you are mounting dozens of machines, use the following command:

Join a row

Edit the file and verify

Join content

The new file, the user is root,root.

The user is also root,root because of the use of No_root_squash.

The client is as unrestricted as the root user locally.

14.5 NFS Client Issues

Belong to the master, group display nobody. Specifies that its version is 3

15.1 FTP Introduction

15.2 using VSFTPD to build FTP service (top)

Install the VSFTPD software package, the command is as follows;

Create a virtual user with the following command:

Edit the file virtual user's password file.

Write content, odd behavior user command, even behavior password.

Need security, not everyone can read, set permissions, command as follows:

Go to Directory

To the first user, create the first configuration file. The configuration file and user name are the same.

Copy the following:

Paste into the configuration file

Define virtual user plus directory

Without this permission, no way to upload and download

Paste underneath the #%pam-1.0



Read as follows:

Copy

Paste at the bottom and change to the following:

The listening port is 21.

15.3 using VSFTPD to build FTP (next)
You can download FileZilla clietn test in Windows

For easy testing, install the client lftp on Linux with the following command:

After entering the password, you can see the file you just created

See what you have to use

Get to current directory

Linux 14 week two lessons (May 10) Notes

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.