CtenOS ftp服务

查看是否安装ftp服务

rpm -qa|grep vsftpd

 

全新安装(如果不存在请先安装)

rpm -ivh vsftpd-3.0.2-21.e17.x86_64.rpm

 

启动停止

service vsftpd start

service vsftpd stop

service vsftpd restart

 

查看服务是否启动

netstat -npl | grep :21

 

创建ftp用户

useradd -d /home/guohe/ -s /sbin/nologin guohe

passwd guohe

ghpcap

ghpcap

 

配置文件

vim /etc/vsftpd/vsftpd.conf

anonymous_enable=NO

local_enable=YES

local_umask=022

write_enable=YES

userlist_enable=YES

 

ftp命令

wget -q --ftp-user=ftp1 --ftp-password=ftp1 ftp://0.0.0.0/test

 

centos7 搭建ftp服务器错误,Job for vsftpd.service failed because the control process exited with error code

问题描述

启动vsftpd服务,报错:Job for vsftpd.service failed because the control process exited with error code. See “systemctl status vsftpd.service” and “journalctl -xe” for details

解决方法:仔细检查你每一行配置后面是否多加了空格,每一行配置后面都不能有空格

 

posted @ 2022-09-16 11:35  操作工  阅读(20)  评论(0)    收藏  举报