(hadoop學習)Win10下安裝Cygwin


安裝程序建議到官網下載:http://www.cygwin.com/,找到自己系統對應的版本

安裝目錄無要求,一路next,到“choos download site”下時,建議選擇國內的鏡像站點,很多站點都會出現錯誤,多嘗試幾次一般會正確開始下載

由於安裝cygwin是為了hadoop,在“Select Packages”是,務必保證“net category”下的“OpenSSL”被安裝

如果還打算在 eclipse 上編譯 Hadoop,則還必須安裝“Base Category”下的“sed”(默認是選中的)

另外建議安裝“Editors Category”下的 vim 

 

sshd服務安裝、配置

sshd服務安裝、配置是容易出問題的

以管理員模式運行Cygwin,執行

ssh-host-config

關鍵在於讓cygwin創建兩個特殊用戶sshd和cyg_server,其中sshd服務在cyg_server用戶下運行,cyg_server有相應的權限(在/usr/share/doc/Cygwin/openssh.README 中也有說明)。

*** Info: This script plans to use 'cyg_server'.
*** Info: 'cyg_server' will only be used by registered services.
*** Query: Do you want to use a different name? (yes/no) no
*** Query: Create new privileged user account 'cyg_server'? (yes/no) yes
*** Info: Please enter a password for new user cyg_server.  Please be sure
*** Info: that this password matches the password rules given on your system.
*** Info: Entering no password will exit the configuration.
*** Query: Please enter the password:
*** Query: Reenter

之后執行ssh-keygen生成密鑰文件,並生成authorized_keys文件:

cd ~/.ssh/

cp id_rsa.pub authorized_keys

重新運行 Cygwin,執行 ssh localhost 命令,登錄localhost


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM