centos 安装 vsftp

# 使用yum安装
yum -y install vsftpd
# 查看版本
rpm  -qa | grep vsftpd
# 启动服务
service vsftpd start

# 添加 ftp 账号
adduser -g ftp -s /sbin/nologin -d /home/wwwroot/lellansin.com lellansin
# 为账号设置密码
passwd lellansin
# 设置网站目录所有者(这样ftp账号才能有权限修改这上面的文件)
chown –R lellansin /home/wwwroot/lellansin.com
# 设置目录权限(根据各自需要设置吧)
chmod -R 765 /home/wwwroot/lellansin.com
Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s