cygwin安装

cygwin安装:
privilege 特权 separation 分离 registered 注册的
需要安装的组件有:
net :openssl openssh ;
editors:vim;
devel:subversion
环境变量:
CYGWIN  ntsec
c:/cygwin/bin;c:/cygwin/usr/bin

配置:参考http://wangsheng2008love.blog.163.com/blog/static/78201689201121494032310/

chmod +r /etc/group
  chmod +r /etc/passwd
  chmod +rwx /var
ssh-host-config
*** Query: Should privilege separation be used? (yes/no) yes #输入yes
*** Query: Do you want to install sshd as a service?
  
  *** Query: (Say "no" if it is already installed as a service) (yes/no) yes #输入yes
*** Query: Enter the value of CYGWIN for the daemon: [ntsec] ntsec #输入ntsec
*** Query: Do you want to use a different name? (yes/no) no #输入no,不指定启动用户
  
  *** Query: Create new privileged user account cyg_server? (yes/no) no #输入no,不指定启动用户
*** Query: Do you want to proceed anyway? (yes/no) yes #输入yes
启动ssh服务:
# Start sshd service
    cygrunsrv --start sshd
    net start sshd
    cygrunsrv -S sshd

services.msc 查看sshd服务启动

net user 查看组用户

使用 windows 用户本地认证

mkpasswd -l > /etc/passwd 使用windows 用户的密码
mkgroup -l > /etc/group 使用windows 用户组

crywin在hadoop中的作用:
use ssh in order to start and stop the various daemons
在hadoop中不是必须的。

crywin 卸载步骤:
删除sshd服务  删除sshd用户  注册表删除software中的crywin

# Remove sshd service
    cygrunsrv --stop sshd
    cygrunsrv -R sshd
    cygrunsrv --remove sshd
# Delete any sshd or relaged users (such as cyg_server) from the system
    net user
    net user sshd /delete
    net user cyg_server /delete

注册表:regedit


错误类型:
Win32 error 1062: The service has not been started.

Win32 error 1057: The account name is invalid or does not exist




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值