小伙看你根骨奇佳,潜力无限,来学PHP伐。
要配置。
1、yum -y install vsftpd.i* 2、增加使用者群組groupadd wwwroot增加使用者useradd -g wwwroot -M -d /var/www -s /sbin/nologin ftpflashgou設定密碼passwd ftpflashgouwd ftpflashgou
mkdir /var/www mkdir /var/www/logs
user_config_dir=/etc/vsf+ /vsftpd/chroot_list xferlog_file=/var/www/logs/vsftpd.log ftpd_banner=welcome to flashgou vsftpd. max_clients=4 max_per_ip=2時5、建立檔案vi /etc/vsftpd/chroot_list,新增ftpflashgou使用者 6、權限,直接輸入:chown -R ftpflashgou.wwwroot /var/www chmod -R 755 /var/www
最後重啟linux就可以了,why。 。 。我一直以為linux不用重啟的
要配置。
1、yum -y install vsftpd.i*
3、建立資料夾:2、增加使用者群組groupadd wwwroot
增加使用者useradd -g wwwroot -M -d /var/www -s /sbin/nologin ftpflashgou
設定密碼passwd ftpflashgouwd ftpflashgou
mkdir /var/www
4、編輯vi /etc/vsftpd/vsftpd.conf文件,按i編輯,將anonymous_enable=yes改為no,並在其後增加:mkdir /var/www/logs
user_config_dir=/etc/vsf+ /vsftpd/chroot_list
xferlog_file=/var/www/logs/vsftpd.log
ftpd_banner=welcome to flashgou vsftpd.
max_clients=4
max_per_ip=2時
5、建立檔案vi /etc/vsftpd/chroot_list,新增ftpflashgou使用者
6、權限,直接輸入:chown -R ftpflashgou.wwwroot /var/www
chmod -R 755 /var/www
最後重啟linux就可以了,why。 。 。我一直以為linux不用重啟的