zoukankan      html  css  js  c++  java
  • python service 服务没有及时响应启动或控制请求

    1053错误

    代码运行没有问题后,安装服务,然而start 的时候出现错误 1053:服务没有及时响应启动或控制请求(Error 1053: The service did not respond to the start or control request in a timely fashion)

    试了几个网上找到的代码,都是这个现象,所以应该不是代码的问题。

    后面找到解决方法:

    What you need to do is to add the Python27 to SYSTEM PATH, and not to USER PATH, since as a default the python service will get installed as a 'LocalSystem' and so when it attempts to start it uses the SYSTEM PATH variable - that's why you can run it from the command prompt, your USER PATH is right.

    python默认安装是作为LocalSystem,配置的是用户路径而不是环境变量,所以需要添加环境变量。

    在用户变量处去掉python路径,然后在环境变量加入python路径

    C:UserszhongjianhuiAppDataLocalProgramsPythonPython36Libsite-packagespywin32_system32;

    C:UserszhongjianhuiAppDataLocalProgramsPythonPython36Libsite-packageswin32;

    C:UserszhongjianhuiAppDataLocalProgramsPythonPython36Scripts;C:UserszhongjianhuiAppDataLocalProgramsPythonPython36

    start service成功。

  • 相关阅读:
    KETTLE:mongdb与mysql互传数据
    6.azkban的监控
    5.azkaban权限管理
    3.azkaban3.0测试
    2.azkaban3.0安装
    1.编译azkaban
    十六:The YARN Service Registry
    十四:Using CGroups with YARN
    十二:NodeManager
    十 Writing YARN Applications
  • 原文地址:https://www.cnblogs.com/gaara-zhang/p/10209995.html
Copyright © 2011-2022 走看看