(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 besure
*** 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> 重新运行 Cygwin,执行 ssh localhost 命令,登录localhost
页:
[1]