网络启动固态硬盘 HELPMSG 3534

发布于 2024-08-05 06:56:00 字数 263 浏览 4 评论 0原文

我正在尝试在 Windows 机器上设置 Git,到目前为止,一切似乎都在工作......除了这个:

net start sshd 收到错误 NETHELPSMG 3534

当我输入

< code>cygrunsrv --start sshd 我收到 QueryServiceStatus: Win32 error 1062

有什么想法可以解决这个问题吗?

I am trying to setup Git on a Windows box and so far all appears to be working ... except this:

net start sshd gets the error NETHELPSMG 3534

When I type

cygrunsrv --start sshd I get QueryServiceStatus: Win32 error 1062

Any ideas how to fix this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

陈独秀 2024-08-12 06:56:00

您可以在此处找到在 cygwin 下解决此问题所采取的步骤:

  • 查看/var/log/sshd.log:
    /var/empty 必须由 root 所有,且不可组写入或全局写入。

  • 调整/var/empty模式并尝试启动sshd

$ chmod 700 /var/empty
  • 更改 /var/empty 的所有者:
20080217-144416 Administrator <at> a64x23800p /var
$ chown root empty/
chown: invalid user: `root'
  • root 不是有效的用户名。做出有根据的猜测并重试:
20080217-151048 Administrator <at> a64x23800p /var
$ chown SYSTEM empty

20080217-151056 Administrator <at> a64x23800p /var
$ ll -d empty/
drwx------+ 2 SYSTEM None 0 Feb 17 14:30 empty//

那么:

20080217-151108 Administrator <at> a64x23800p /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 也可能会干扰该过程。
    请参阅该线程

You can find here the steps taken to solve this issue under cygwin:

  • Look at /var/log/sshd.log:
    /var/empty must be owned by root and not group or world-writable.

  • Adjust mode of /var/empty and attempt to start sshd:

$ chmod 700 /var/empty
  • Change owner of /var/empty:
20080217-144416 Administrator <at> a64x23800p /var
$ chown root empty/
chown: invalid user: `root'
  • root is not a valid user name. Make an educated guess and try again:
20080217-151048 Administrator <at> a64x23800p /var
$ chown SYSTEM empty

20080217-151056 Administrator <at> a64x23800p /var
$ ll -d empty/
drwx------+ 2 SYSTEM None 0 Feb 17 14:30 empty//

Then:

20080217-151108 Administrator <at> a64x23800p /var
$ net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service was started successfully.

Regarding the 1062 error, it reports that the windows service has not been started.

$ 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

Note: be aware that:

  • some anti-virus might interfere with that service.
    See this thread.
  • older version of cygwin1.dll might also interfere with the process.
    See that thread.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文