阿里云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. node.js - node 客戶端socket一直報錯Error: read ECONNRESET,用php的socket沒問題哈。。2. django - 后臺返回的json數據經過Base64加密,獲取時用python如何解密~!3. 老哥們求助啊4. angular.js - 如何通俗易懂的解釋“依賴注入”?5. 我在centos容器里安裝docker,也就是在容器里安裝容器,報錯了?6. html5 - angularjs中外部模版加載無法使用7. 我的html頁面一提交,網頁便顯示出了我的php代碼,求問是什么原因?8. tp6表單令牌9. css3 - 請問一下在移動端CSS布局布局中通常需要用到哪些元素,屬性?10. ubuntu PPA 更新老是不成功該怎么辦
