阿里云centos6.9使用yum安装vsftpd启动失败
问题描述
请问我还要通过哪里寻找问题呢?
问题解答
回答1:要配置。
1、yum -y install vsftpd.i* 2、增加用户组groupadd wwwroot增加用户useradd -g wwwroot -M -d /var/www -s /sbin/nologin ftpflashgou设置密码passwd ftpflashgou
3、创建文件夹:mkdir /var/www mkdir /var/www/logs
4、编辑vi /etc/vsftpd/vsftpd.conf文件,按i进行编辑,将anonymous_enable=yes改为no,并在其后增加:user_config_dir=/etc/vsftpd chroot_list_enable=YES chroot_list_file=/etc/vsftpd/chroot_list xferlog_file=/var/www/logs/vsftpd.log ftpd_banner=welcome to flashgou vsftpd. max_clients=4 max_per_ip=2 use_localtime=YES按esc,再按:wq退出。5、创建文件vi /etc/vsftpd/chroot_list,新增ftpflashgou用户
6、权限,直接输入:chown -R ftpflashgou.wwwroot /var/www chmod -R 755 /var/www
回答2:最后重启linux就可以了,why。。。我一直以为linux不用重启的
相关文章:
1. docker images显示的镜像过多,狗眼被亮瞎了,怎么办?2. docker-compose 为何找不到配置文件?3. docker pull 错误?4. macos - mac下docker如何设置代理5. mac里的docker如何命令行开启呢?6. docker start -a dockername 老是卡住,什么情况?7. 在windows下安装docker Toolbox 启动Docker Quickstart Terminal 失败!8. nginx+uwsgi部署django,8000端口正常,80端口4049. html5 - 移动端UC浏览器兼容问题10. mac连接阿里云docker集群,已经卡了2天了,求问?