阿里云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. 在mac下出現了兩個docker環境2. javascript - jQuery中live事件在移動微信端下沒有效果;代碼如下3. python 如何實現PHP替換圖片 鏈接4. <tr valign="top"> 看不懂5. css - 如何使用 vue transition 實現 ios 按鈕一樣的平滑切換效果6. java - 關于柱狀圖表展示高度的問題。7. java 隨機延遲執行8. angular.js - 在終端中用yeoman啟用angular-generator報錯,求解?9. 更新mysql中被別人鎖定的行, 能不能快速失敗直接報錯, 而不是一直等待10. mysql - 數據庫多表聯合查詢插入其他庫
