Tìm hiểu về FTP
Số trang: 6
Loại file: pdf
Dung lượng: 174.20 KB
Lượt xem: 9
Lượt tải: 0
Xem trước 2 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Tìm hiểu về FTP1. Giới thiệu FTPlàchữviếttắccủaFileTransferProtocolGiaothứctruyềnfile.FTPlàmột giaothứctruyềnfiletrênmạngdựatrênchuẩnTCPnênrấtđángtincậy! 2. Một số lệnh phổ biến của FTP Sauđâylàdanhsáchmộtsốlệnhthườngdùngkèmtheohướngdẫnmàbạncần biết! asciichuyểnsangchếđộtruyềnfiletheodạngvănbản binarychuyểnsangchếđộtruyềnfiletheodạngnhịphân cd[directory]chuyểnvàothưmụcdirectory closengắtkếtnốivớimáychủ del[remotefile]xóa1filetrênmáychủ dir[remotedirectory|file]liệtkênộidungcủathưmụchoặcdanhsáchcácfiletrên máychủ help[command]chobiếthướngdẫnvềlệnhcommand...
Nội dung trích xuất từ tài liệu:
Tìm hiểu về FTP Tìm hiểu về FTP1. Giới thiệuFTPlàchữviếttắccủaFileTransferProtocolGiaothứctruyềnfile.FTPlàmộtgiaothứctruyềnfiletrênmạngdựatrênchuẩnTCPnênrấtđángtincậy!2. Một số lệnh phổ biến của FTPSauđâylàdanhsáchmộtsốlệnhthườngdùngkèmtheohướngdẫnmàbạncầnbiết!asciichuyểnsangchếđộtruyềnfiletheodạngvănbảnbinarychuyểnsangchếđộtruyềnfiletheodạngnhịphâncd[directory]chuyểnvàothưmụcdirectoryclosengắtkếtnốivớimáychủdel[remotefile]xóa1filetrênmáychủdir[remotedirectory|file]liệtkênộidungcủathưmụchoặcdanhsáchcácfiletrênmáychủhelp[command]chobiếthướngdẫnvềlệnhcommandlcd[localdirectory]đặtlạithưmụclàmviệctrênclientlàlocaldirectoryls[remotedirectory|file][la]liệtkênộidungcủathưmụchoặcdanhsáchcácfiletrênmáychủ;thamsốlasẽliệtkêtấtcảcókèmtheomôtảvềquyềnmdelete[remotefiles]xóanhiềufiletrênmáychủmget[remotefiles]downloadcácfilestrênmáychủvềmkdirtạothưmụccótêndirectoryname 1mput[localfiles]uploadcácfileslênmáychủopenhost[port]kếtnốiđếnmáychủFTPcóhostnamelàhostvàđangchạydịchvụFTPởcổngportput[remotefile]uploadlocalfilelênmáychủvớitênmớilàremotefilenếuđượcpwdchobiếtthưmụcđanglàmviệchiệnthờiquitthoátrecv[localfile]nhậnremotefiletrênmáychủvàlưutrênmáytínhvớitênlocalfilenếuđượcrename[from][to]đổitênfilehoặcthưmụcfromthànhtormdirdirectorynamexóathưmụccótêndirectorynamesendlocalfile[remotefile]gởilocalfiletừmáytínhlênmáychủvớitênmớilàremotefilenếuđượcstatuschobiếttrạngtháicủaphiênlàmviệchiệntạisystemchobiếthệđiềuhànhcủamáychủuserusername[password][account]loginvàovớitênlàusername,mậtkhẩulàpassword,tàikhoảnlàaccount?gọihướngdẫn3. Các ví dụĐểdễhiểu,cácbạnhãyxemcácvídụsau:(tôisửdụngcácnàyđểuploadmấyfilelênwebsiteđó,khôngcầndùngcácchươngtrìnhFTPmạnhnhưWS_FTPPro,FTPNet,CuteFTP,AbsoluteFTP,...!)Tôilưutrangwebcầntảilênservertrongc:website!Bâygiờtôisẽtảinólên!C:website>ftp myftpsrv // kết nối đến máy chủ myftpsrvConnected to myftpsrv.User (ftpsrv:(none)): dt331 User name okay, need password. 2Password:230 User logged in, proceed.ftp> pwd // cho biết thư mục hiện tại đang làm việc!257 /home/dt is current directory.ftp> status // xem trạng thái hiện tạiType: ascii; Verbose: On ; Bell: Off ; Prompting: On ;Globbing: OnDebugging: Off ; Hash mark printing: Off . // ascii=1ftp> cd www // chuyển vào thư mục www250 Directory changed to /home/dt/wwwftp> put index.html // upload file index.html lên server200 PORT Command successful.150 Opening ASCII mode data connection for index.html.226 Transfer complete.ftp: 2095 bytes sent in 0.00Seconds 2095000.00Kbytes/sec.ftp> mkdir tools // tạo thư mục /home/dt/www/tools257 /home/dt/www/tools directory created.ftp> cd tools // chuyển vào thư mục tools250 Directory changed to /home/dt/www/toolsftp> lcd c:website ools // thay đổi lại local directory =c:website oolsLocal directory now C:website ools.ftp> bin // chuyển sang chế độ truyền file nhị phân200 Type set to I.ftp> mput *.* // upload tất cả các file trongc:website ools lên server, vào /home/www/tools/mput test.zip? y200 PORT Command successful.150 Opening BINARY mode data connection for test.zip.226 Transfer complete.ftp: 10168 bytes sent in 0.06Seconds 169.47Kbytes/sec.mput test.exe? y200 PORT Command successful.150 Opening BINARY mode data connection for test.exe.226 Transfer complete.ftp: 54625 bytes sent in 0.11Seconds 496.59Kbytes/sec.ftp> ls -la // liệt kê nội dung của /home/www/tools200 PORT Command successful.150 Opening ASCII mode data connection for /bin/ls.drwxr--r-- 1 dt group 0 Sep 30 14:13 .drwxr--r-- 1 dt group 0 Sep 30 14:13 ..-rwxr--r-- 1 dt group 54625 Sep 30 14:14test.exe-rwxr--r-- 1 dt group 10168 Sep 30 14:14test.zip226 Transfer complete.ftp: 247 bytes received in 0.00Seconds 247000.00Kbytes/sec. 3ftp> del test.exe // tôi lỡ tay upload lên file test.exe,bây giờ tôi cần phải xóa nó250 DELE command successful.ftp> cd .. // chuyển lên thư mục cấp trên250 Directory changed to /home/dt/wwwftp> mkdir cgi-bin2 // tạo thư mục mới257 /home/dt/www/cgi-bin2 directory created.ftp> rename cgi-bin2 cgi-bin // tôi đã nhập vào sai mấtrồi, bây giờ phải đổi tên lại thôi!350 File or directory exists, ready for ...
Nội dung trích xuất từ tài liệu:
Tìm hiểu về FTP Tìm hiểu về FTP1. Giới thiệuFTPlàchữviếttắccủaFileTransferProtocolGiaothứctruyềnfile.FTPlàmộtgiaothứctruyềnfiletrênmạngdựatrênchuẩnTCPnênrấtđángtincậy!2. Một số lệnh phổ biến của FTPSauđâylàdanhsáchmộtsốlệnhthườngdùngkèmtheohướngdẫnmàbạncầnbiết!asciichuyểnsangchếđộtruyềnfiletheodạngvănbảnbinarychuyểnsangchếđộtruyềnfiletheodạngnhịphâncd[directory]chuyểnvàothưmụcdirectoryclosengắtkếtnốivớimáychủdel[remotefile]xóa1filetrênmáychủdir[remotedirectory|file]liệtkênộidungcủathưmụchoặcdanhsáchcácfiletrênmáychủhelp[command]chobiếthướngdẫnvềlệnhcommandlcd[localdirectory]đặtlạithưmụclàmviệctrênclientlàlocaldirectoryls[remotedirectory|file][la]liệtkênộidungcủathưmụchoặcdanhsáchcácfiletrênmáychủ;thamsốlasẽliệtkêtấtcảcókèmtheomôtảvềquyềnmdelete[remotefiles]xóanhiềufiletrênmáychủmget[remotefiles]downloadcácfilestrênmáychủvềmkdirtạothưmụccótêndirectoryname 1mput[localfiles]uploadcácfileslênmáychủopenhost[port]kếtnốiđếnmáychủFTPcóhostnamelàhostvàđangchạydịchvụFTPởcổngportput[remotefile]uploadlocalfilelênmáychủvớitênmớilàremotefilenếuđượcpwdchobiếtthưmụcđanglàmviệchiệnthờiquitthoátrecv[localfile]nhậnremotefiletrênmáychủvàlưutrênmáytínhvớitênlocalfilenếuđượcrename[from][to]đổitênfilehoặcthưmụcfromthànhtormdirdirectorynamexóathưmụccótêndirectorynamesendlocalfile[remotefile]gởilocalfiletừmáytínhlênmáychủvớitênmớilàremotefilenếuđượcstatuschobiếttrạngtháicủaphiênlàmviệchiệntạisystemchobiếthệđiềuhànhcủamáychủuserusername[password][account]loginvàovớitênlàusername,mậtkhẩulàpassword,tàikhoảnlàaccount?gọihướngdẫn3. Các ví dụĐểdễhiểu,cácbạnhãyxemcácvídụsau:(tôisửdụngcácnàyđểuploadmấyfilelênwebsiteđó,khôngcầndùngcácchươngtrìnhFTPmạnhnhưWS_FTPPro,FTPNet,CuteFTP,AbsoluteFTP,...!)Tôilưutrangwebcầntảilênservertrongc:website!Bâygiờtôisẽtảinólên!C:website>ftp myftpsrv // kết nối đến máy chủ myftpsrvConnected to myftpsrv.User (ftpsrv:(none)): dt331 User name okay, need password. 2Password:230 User logged in, proceed.ftp> pwd // cho biết thư mục hiện tại đang làm việc!257 /home/dt is current directory.ftp> status // xem trạng thái hiện tạiType: ascii; Verbose: On ; Bell: Off ; Prompting: On ;Globbing: OnDebugging: Off ; Hash mark printing: Off . // ascii=1ftp> cd www // chuyển vào thư mục www250 Directory changed to /home/dt/wwwftp> put index.html // upload file index.html lên server200 PORT Command successful.150 Opening ASCII mode data connection for index.html.226 Transfer complete.ftp: 2095 bytes sent in 0.00Seconds 2095000.00Kbytes/sec.ftp> mkdir tools // tạo thư mục /home/dt/www/tools257 /home/dt/www/tools directory created.ftp> cd tools // chuyển vào thư mục tools250 Directory changed to /home/dt/www/toolsftp> lcd c:website ools // thay đổi lại local directory =c:website oolsLocal directory now C:website ools.ftp> bin // chuyển sang chế độ truyền file nhị phân200 Type set to I.ftp> mput *.* // upload tất cả các file trongc:website ools lên server, vào /home/www/tools/mput test.zip? y200 PORT Command successful.150 Opening BINARY mode data connection for test.zip.226 Transfer complete.ftp: 10168 bytes sent in 0.06Seconds 169.47Kbytes/sec.mput test.exe? y200 PORT Command successful.150 Opening BINARY mode data connection for test.exe.226 Transfer complete.ftp: 54625 bytes sent in 0.11Seconds 496.59Kbytes/sec.ftp> ls -la // liệt kê nội dung của /home/www/tools200 PORT Command successful.150 Opening ASCII mode data connection for /bin/ls.drwxr--r-- 1 dt group 0 Sep 30 14:13 .drwxr--r-- 1 dt group 0 Sep 30 14:13 ..-rwxr--r-- 1 dt group 54625 Sep 30 14:14test.exe-rwxr--r-- 1 dt group 10168 Sep 30 14:14test.zip226 Transfer complete.ftp: 247 bytes received in 0.00Seconds 247000.00Kbytes/sec. 3ftp> del test.exe // tôi lỡ tay upload lên file test.exe,bây giờ tôi cần phải xóa nó250 DELE command successful.ftp> cd .. // chuyển lên thư mục cấp trên250 Directory changed to /home/dt/wwwftp> mkdir cgi-bin2 // tạo thư mục mới257 /home/dt/www/cgi-bin2 directory created.ftp> rename cgi-bin2 cgi-bin // tôi đã nhập vào sai mấtrồi, bây giờ phải đổi tên lại thôi!350 File or directory exists, ready for ...
Tìm kiếm theo từ khóa liên quan:
Công nghệ thông tin quản trị mạng tìm hiểu về FTP tin học ứng dụng chuẩn ethernet 10 GigabitGợi ý tài liệu liên quan:
-
52 trang 429 1 0
-
24 trang 353 1 0
-
Top 10 mẹo 'đơn giản nhưng hữu ích' trong nhiếp ảnh
11 trang 312 0 0 -
74 trang 294 0 0
-
96 trang 291 0 0
-
Báo cáo thực tập thực tế: Nghiên cứu và xây dựng website bằng Wordpress
24 trang 288 0 0 -
Đồ án tốt nghiệp: Xây dựng ứng dụng di động android quản lý khách hàng cắt tóc
81 trang 278 0 0 -
EBay - Internet và câu chuyện thần kỳ: Phần 1
143 trang 274 0 0 -
Tài liệu dạy học môn Tin học trong chương trình đào tạo trình độ cao đẳng
348 trang 269 1 0 -
Tài liệu hướng dẫn sử dụng thư điện tử tài nguyên và môi trường
72 trang 262 0 0