[songjy@localhost ~]$ service vsftpd start
bash: service: command not found
[songjy@localhost ~]$ su
Password:
# service vsftpd start
bash: service: command not found
# su - root
# service vsftpd start
Starting vsftpd for vsftpd: [ OK ]
# su - songjy
[songjy@localhost ~]$ ftp 127.0.0.1
Connected to 127.0.0.1.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (127.0.0.1:songjy): songjy
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> exit
?Invalid command
ftp> bye
221 Goodbye.
[songjy@localhost ~]$
备注:停止FTP命令“service vsftpd stop”,注意命令要小写,不可大写。
bash: service: command not found
[songjy@localhost ~]$ su
Password:
# service vsftpd start
bash: service: command not found
# su - root
# service vsftpd start
Starting vsftpd for vsftpd: [ OK ]
# su - songjy
[songjy@localhost ~]$ ftp 127.0.0.1
Connected to 127.0.0.1.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (127.0.0.1:songjy): songjy
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> exit
?Invalid command
ftp> bye
221 Goodbye.
[songjy@localhost ~]$
备注:停止FTP命令“service vsftpd stop”,注意命令要小写,不可大写。