我试图在Windows机器上设置Git,到目前为止所有似乎都在工作...除了这个:
net start sshd
得到错误 NETHELPSMG 3534
当我输入
cygrunsrv --start sshd
我明白了 QueryServiceStatus: Win32 error 1062
任何想法如何解决这一问题?
你可以在这里找到在cygwin下解决这个问题的步骤:
查看/var/log/sshd.log:
/var/empty
必须由root拥有,而不是group或world-writable.调整模式
/var/empty
并尝试启动sshd
:
$ chmod 700 /var/empty
更改/ var/empty的所有者:
20080217-144416 Administratora64x23800p /var $ chown root empty/ chown: invalid user: `root'
root不是有效的用户名.做一个有根据的猜测,然后再试一次:
20080217-151048 Administratora64x23800p /var $ chown SYSTEM empty 20080217-151056 Administrator a64x23800p /var $ ll -d empty/ drwx------+ 2 SYSTEM None 0 Feb 17 14:30 empty//
然后:
20080217-151108 Administratora64x23800p /var $ net start sshd The CYGWIN sshd service is starting. The CYGWIN sshd service was started successfully.
关于1062错误,它报告Windows服务尚未启动.
$ cygrunsrv --start sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. .. $ net start sshd The CYGWIN sshd service is starting. The CYGWIN sshd service could not be started. # only if the previous section was not solved
注意:请注意:
某些防病毒软件可能会干扰该服务.
看到这个帖子.
旧版本的版本也cygwin1.dll
可能会干扰该过程.
看到那个线程.