Putty, pure-ftpd, Set

Source: Internet
Author: User
Putty, pure-ftpd, set -- Linux Enterprise Application-Linux server application information. The following is a detailed description. Although there are not many linux-based commands, there are more than enough to solve one or two small problems. Recently, a friend's ftp server encountered an error and could not add more files. Please help me solve the problem.

After you log on to the host using putty, ps-e: lists all processes in the system. A pure-ftpd is found. From the name, it should be an ftp application.

Netstat-a: Check the current port number of the machine. a 5188 port is indeed the port number occupied by ftp.

Okay, so you can go to the pure-ftpd configuration file. Of course, this step refers to the online materials. Go
Vi/etc/pure-ftpd.conf file, carefully looked at the quota settings, found that this line was commented out. That is to say, the number of configuration files is not limited by this method, but by other methods.

On the Internet, I found that pure-ftpd information can be configured through mysql.

Therefore, go to the mysql configuration file in the related pure-ftpd and find that the configuration file clearly describes the settings corresponding to pure-ftpd. For example, ip, database, user, password, QuotaFile

Well, if you see this QuotaFile, it is basically a success.

Therefore, exit vi,: q
Go to mysql
Mysql-h 192.168.0.2-u ***-p
After entering the password, you will be taken to the mysql server.
Well, this is my world.

Mysql> show databases; displays all databases. It should be the ftpusers database.
Mysql> use ftpusers;
Mysql> show tables;
Mysql> select * from users;
Mysql> update users set QuotaFiles = 100000 where users. User = 'aaa ';

OK.
Restart pure-ftpd.

Mysql> exit;

/Etc/init. d/pure-ftpd restart.

Thanks to the network, I was able to find very detailed information. In addition, dormitory buddies are familiar with linux commands and help me.

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.