The Linux VPS tutorial of Weieis Blog uses the military brother lnmp1.3 version, and the command is different from the previous version. The FTP server needs to be created by the user himself. lnmp has already prepared the program for us, so we don't need to see how to create it.
First, use the Xshell to connect to the VPS interface and enter the directory after lnmp decompression. The command is as follows:
cd lnmp1.3-full
Then install the FTP server. The command is as follows:
./pureftpd.sh
When you see the prompt Press any key to install... or Press Ctrl+c to cancel, you can press a key at random to start the installation. After a while, the installation will succeed.
Next, we add the ftp account password.
Note that you need to use the cd command to enter the website folder you created earlier, and then create the ftp account password.
For example, the following command enters the folder of the vpsss website.
cd /home/wwwroot/vpsss/
Enter the command to add an ftp account:
lnmp ftp add
Enter the ftp account, password and directory corresponding to the ftp account to be created according to the prompts. The directory must be an absolute directory starting with/, that is, the website directory when the virtual host was created earlier.
Finally, it displays that the ftp account was created successfully.
The ftp account and password you just entered must be recorded for backup.
Summary: The ftp command of the military brother lnmp version 1.3 is very simple. Use the command lnmp ftp {add | del | edit} for management, including adding, deleting, and modifying. It is also very simple to use. Run these three commands yourself and follow the prompts.