阿里云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. ueditor上传服务器提示后端配置项没有正常加载,求助!!!!!2. vim - docker中新的ubuntu12.04镜像,运行vi提示,找不到命名.3. angular.js - angularjs 怎么封装 upload 上传4. python - 关于matplotlib的x轴显示的问题5. javascript - vue生成一维码?求助!!!!!急6. angular.js - 怎样在使用ng-repeat属性的标签里面监听单个事件,使其能够单个改变CSS。7. 绝对定位和fied定位,键盘弹起对布局的影响8. nginx英文文档的WebSocket proxying部分没看太明白,麻烦推荐一点中文文章9. angular.js - items.query is not a function这是怎么回事10. android 文件File删除问题
