How to setup an FTP server in Windows using IIS如何設置一個FTP服務器在Windows用IIS

Posted on February 19, 2008 at 6:56 am發布於2008年2月19日在上午06時56分

Earlier, I had written a post on此前,我曾寫了一哨所 how to turn your computer into a Windows file sharing server 如何把你的電腦變成一個Windows文件共享服務器 using a program called HFS.用一個程序,稱為氫化。 If you’re looking for a quick way to share the files on your local computer with friends or family, this is an easy way to do so.如果您正在尋找一種快速的方法來共享文件在您的本地計算機上與家人或朋友,這是一種簡單的方法來這樣做。

However, if you’re looking to setup your own FTP server in Windows using IIS, you can do so, but it requires more technical knowledge.然而,如果您也想設置自己的FTP伺服器在Windows用 IIS ,你可以這樣做,但是這需要更多的技術知識。 Of course, it also gives your more granular control over sharing and security, so it’s better for anyone who has a little computer know-how.當然,它也給你的更細化的控制,共享和安全,所以它的更好的人,有一個小計算機技術訣竅等。

How to setup and configure an FTP server in IIS如何設置和配置一個FTP服務器,在非法入境者

The first thing you’ll need to setup your own FTP server in Windows is to make sure you have Internet Information Services (IIS) installed.第一件事,你需要把它設置自己的FTP服務器和Windows是要確保你有Internet信息服務( IIS )的安裝。 Remember, this only comes with Windows XP Professional or Windows Vista Business or higher.請記住,這只是附帶Windows XP Professional或Windows Vista商業版或更高。

Click on Start , Control Panel and go to Add/Remove Programs .點擊開始控制面板及去添加/刪除程序 Then click on Add/Remove Windows Components .然後點擊添加/刪除Windows組件

添加刪除程序

In the components wizard, scroll down until you see IIS in the list and check it off.在組件嚮導,向下滾動,直到你看到,在非法入境者的名單,並檢查它關閉。 Before you click Next though, make sure you click on Details and then check off File Transfer Protocol (FTP) Service .然後按一下未來 ,雖然時,要確保你點擊詳情,然後再檢查過的文件傳輸協議( FTP )服務

非法入境者

文件傳輸協議

Click OK and then click Next .單擊確定 ,然後單擊下一步 Windows will go ahead and install the necessary IIS files along with the FTP service. Windows將繼續進行,並安裝必要者檔案隨FTP服務。 You may be asked to insert your Windows XP or Windows Vista disk at this point.你可能會被要求插入你的Windows XP或Windows Vista磁盤在這一點上。

Setup and configure IIS for FTP安裝和配置為非法入境者的FTP

Once IIS has been installed, you may have to restart your computer.一旦非法入境者已被安裝,你可能需要重新啟動計算機。 Now we want to go ahead and open the IIS configuration panel to setup our FTP server.現在,我們想去做,並打開IIS的小組設置我們的FTP伺服器。 So go to Start , then Control Panel and click on Administrative Tools .所以要開始 ,然後控制面板 ,點擊管理工具 You should now see an icon for Internet Information Services .你現在應該看到一個圖標, Internet信息服務

非法入境者[ 6 ]

When you open IIS for the first time, you’ll only see your computer name in the left hand menu.當你打開者,為第一次,你會只看到你的電腦名稱,在左手菜單。 Go ahead and click the + symbol next to the computer name and you’ll see a couple of options like Web Sites, FTP Sites, etc. We’re interested in FTP Sites, so expand that out also.繼續進行,並點擊+符號旁邊的電腦名稱,你會看到一對夫婦的選擇,例如網站, FTP的地盤,等我們感興趣的FTP網站,所以擴展出也。 You should see Default FTP Site , click on it.你應該可以看到默認FTP站點 ,點擊它。

FTP站點

You’ll notice after you click on the default FTP site that there are a couple of buttons at the top that look like VCR buttons: Play, Stop, and Pause.您會發現,當你點擊默認FTP站點,有一對夫婦的按鈕,在最上面看起來就像VCR的按鈕:發揮,停止和暫停。 If the Play button is greyed out, that means the FTP server is active.如果播放按鈕是灰色,指的FTP服務器是活躍。 Your FTP server is now up and running!你的FTP服務器是現在啟動和運行! You can actually connect to it via your FTP client software.你真正可以連接它通過你的FTP客戶端軟件。 I use Smart FTP, but you can use whatever you like best.我用智能FTP的,但你可以用你最喜歡的。

Open your FTP client software and type in localhost as the host name and choose Anonymous for the login.打開你的FTP客戶端軟件和類型,在本地主機作為主機名稱,並選擇無名氏為登錄。 Connect and you should now see an empty folder.連接和你現在應該看到一個空的文件夾。

本地主機

Ok, so that’s step 1!好吧,我們就這樣說的第1步! Now where the heck is this folder that you are currently viewing?現在那裡heck是這個文件夾,你現在觀看? Well the default FTP site is actually located in C:\Inetpub\ftproot .以及默認FTP站點實際上是設在C : \ inetpub \ ftproot Open this directory and dump some files into it.打開這個目錄和泥頭部分檔案進行調查。

FTP的檔案

Now refresh on your FTP client and you should now see your files listed!現在刷新你的FTP客戶端和你現在應該看到你的檔案上市!

FTP的地盤

So you now have an up and running FTP server on your local computer.所以你現在有一個啟動和運行FTP服務器在您的本地計算機上。 Before I show you how you can create separate folders that are stored in a different directory other than the default Inetpub folder, let’s first connect to our FTP server from another computer on the network.之前,我向您展示如何,你可以創建單獨的文件夾都存放在不同目錄以外的默認inetpub文件夾,讓我們第一次連接到我們的FTP伺服器從另一個網絡中的計算機。

In order to do this, you’ll have to open up the Windows Firewall to allow FTP connections to your computer, otherwise all external computers will be blocked.為了做到這一點,您都必須打開Windows防火牆,以允許FTP連接到您的計算機,否則所有外部計算機將被封鎖。 You can do this by going to Start , Control Panel and then clicking on Windows Firewall .你可以做到這一點,就會開始控制面板 ,然後點擊Windows防火牆 Click on the Advanced Tab.點擊高級標籤。

Windows防火牆

Under the Network Connection Settings section, make sure all of the connections are checked in the left list and then click on the Settings button.根據網絡連接設置組時,要確保所有的連接是檢查在左名單,然後點擊設置按鈕。 You’ll now be able to open certain ports on your computer based on the service your computer is providing.你現在可以打開某些端口,你的電腦的基礎上,服務您的電腦提供。 Since we are hosting our own FTP server, we want to check off FTP Server .既然我們是東道主,我們自己的FTP服務器,我們要檢查的小康FTP服務器

FTP的服務

A little popup window will appear with some settings that you can change, just leave it as it is and click OK.小彈出窗口中會出現一些設置,你可以改變,剛剛離開,因為它是和點擊OK 。 Click OK again at the main Windows Firewall window.單擊確定再次在主Windows防火牆窗口。 You have now opened up the firewall for FTP connections.現在你打開了防火牆,為FTP連接。 Now try to connect to your FTP site from a different computer on your network.現在嘗試連接到您的FTP網站,從不同的電腦上你的網絡。 You’ll need to get the IP address of the computer first before you can connect into it from a different computer.你將需要獲得IP地址的電腦先你可以連接到它從一個不同的電腦。

Go to Start , click Run and type in CMD .開始 ,單擊運行 ,並鍵入CMD公司 Type IPCONFIG and jot down the number for IP Address:類型ipconfig ,並記下電話號碼IP地址:

IP地址

In your FTP client on the other computer, type in the IP Address you just wrote down and connect anonymously.在你的FTP客戶端對其他計算機,輸入IP地址,你剛才寫下,並接連匿名的。 You should now be able to see all of your files just like you did on the FTP client that was on the local computer.你現在應該能夠看到你的全部檔案,就好像你對FTP客戶端,這是對本地電腦。

Now that the FTP site is working, you can create as many folders as you like for FTP purposes.現在該FTP站點是工作,你可以建立多個文件夾,如你所願實現FTP的目的。 In this way, when a user connects, they specify a path that will connect to one specific folder.這樣,當一個用戶連接,他們指明道路,將連接到一個特定的文件夾。

Back in IIS, right click on Default FTP Site and choose New , and then Virtual Directory .早在非法入境者,右擊默認FTP站點,並選擇新的 ,然後在虛擬目錄

虛擬目錄

When you create a virtual directory in IIS, you’re basically going to create an alias that points to a folder on the local hard drive.當您創建一個虛擬目錄,在非法入境者,你就基本上是去創造一個別名點,以一個文件夾,對本地硬盤驅動器。 So in the wizard, the first thing you’ll be asked is for a alias name.因此,在嚮導,第一件事,你要問的是:一個別名。 Make is something simple and useful like “WordDocs” or “FreeMovies”, etc.提出的是一些簡單實用的" worddocs "或" freemovies "等。

虛擬目錄別名

Click Next and now browse to the path where you want the alias to refer to.點擊下一步,現在瀏覽到路徑您想要的別名,以作參考。 So if you have a bunch of movies you want to share, browse to that folder.因此,如果你有一大堆的電影,你想分享,瀏覽到該文件夾中。

FTP服務器

Click Next and choose whether you want it as Read access only or Read and Write access.點擊下一步選擇是否要為訪問的唯一或讀寫訪問。 If you simply want to share files, check Read.如果您只是想分享檔案,檢查閱讀。 If you want people to be able to upload files to your computer, choose Read and Write.如果你希望人們能夠將文件上載到你的計算機中,選擇閱讀和寫字。

讀寫

Click Next and then click Finish!點擊下一步,然後按一下完成! Now you’ll see your new virtual directory below the default FTP site.現在,你會看到你的新的虛擬目錄下面的默認FTP站點。 You can connect to you using your FTP client by putting in the Path field “/Test” or “/NameOfFolder”.你可以連接到你用你的FTP客戶端放到該路徑場" /測試"或" / nameoffolder " 。

FTP連接

Now you’ll only see the files that are in the folder we had browsed to.現在您只看到檔案是在文件夾中,我們曾瀏覽。

anonymouse

And that’s about it!這就是它! You can create as many folder as you like!你可以創建許多文件夾,如你所願! The only thing other thing that you would need to do is to give out your public IP address to anyone who is connecting from outside of your internal network.只是其他的東西,你所需要做的是給了你的公共IP地址給任何人,他們是連接外,從你的內部網絡。 If you want users to connect from anywhere in the world, you’ll have to give them your public IP address, which you can find out by going to如果你想要用戶能夠從任何地點連接,在世界上,你必須給他們上你的公共IP地址,你可以看看去 http://whatismyipaddress.com/ http://whatismyipaddress.com/ .

Finally, you’ll need to forward the FTP port on your router to your local computer that is hosting the FTP server.最後,你需要把它前進的FTP端口,你的路由器到您的本地計算機是主辦FTP服務器。 Port Forward 港口前進 is a great site to show you how to forward ports on your router to computers on your home network.是一個偉大的網站,以向您展示如何推進口岸對你的路由器,電腦上你的家庭網絡。

Any questions, post a comment!任何問題,張貼一條評論! Enjoy!享受!

Technorati Tags: Technorati標記: , , , , ,

If you enjoyed this post, make sure you 如果你喜歡這個職位,請務必 subscribe to my RSS feed 訂閱我的RSS饋送 !

» Filed Under »提起下 Computer Tips電腦竅門

Related Posts相關職位

Please post your comments/suggestions!請您評論/建議!