cygwin安装

来源:互联网 发布:json定义二维数组 编辑:程序博客网 时间:2024/04/19 10:06
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




原创粉丝点击