配置LANMP环境(9)-- 安装Git与vsftp

一、安装Git

检查是否已经安装

git --version

安装

yum -y install git

二、安装vsftp

检查是否已经安装

yum list installed vsftpd

安装

yum -y install vsftpd

启动并配置开机自启动

systemctl start vsftpd

systemctl enable vsftpd

配置vsftpd用户,启用root用户

cd /etc/vsftpd

vim ftpusers
注析掉root:
#root
vim user_list
注析掉root:
#root

永久开放ftp服务器

firewall-cmd --zone=public --add-service=ftp --permanent

此时上传文件,如果出现553 could not create file 的错误提示,则表明该文件夹没有上传的权限,此时利用chmod 777 filename来更改该文件夹的权限

原文地址:https://www.cnblogs.com/shifu204/p/6360381.html