1. 檢測FTP服務是否開啓安全
1.1. 經過查詢提供FTP服務的進程是否存在,並未找到任何包含ftp關鍵字的進程信息,可判斷服務未開啓。spa
root@lb-1 ~ # ps -ef | grep ftp root 13049 12905 0 23:50 pts/0 00:00:00 grep --color=auto ftp
1.2. 經過查詢是vsftpd服務是否存在,顯示Active: inactive (dead),表示未開啓code
root@lb-1 ~ # service vsftpd status Redirecting to /bin/systemctl status vsftpd.service ● vsftpd.service - Vsftpd ftp daemon Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled) Active: inactive (dead)
2. 開啓FTP服務blog
root@lb-1 ~ # service vsftpd start Redirecting to /bin/systemctl start vsftpd.service root@lb-1 ~ # service vsftpd status Redirecting to /bin/systemctl status vsftpd.service ● vsftpd.service - Vsftpd ftp daemon Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled) Active: active (running) since 四 2017-02-16 23:51:16 CST; 6s ago Process: 13084 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=0/SUCCESS) Main PID: 13085 (vsftpd) CGroup: /system.slice/vsftpd.service └─13085 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf 2月 16 23:51:16 lb-1 systemd[1]: Starting Vsftpd ftp daemon... 2月 16 23:51:16 lb-1 systemd[1]: Started Vsftpd ftp daemon.
成功開啓並顯示出pid(進主程ID)爲13085。再查下vsftpd開啓狀態已經顯示running。進程
vi vsftpd.conf anon_upload_enable=YES anonymous_enable=YES write_enable=YES Anon_mkdir_write_enable=yes