python写的windows服务,启动显示错误:服务没有及时响应启动或控制请求
个人也遇到这个问题,先确定服务:可执行文件的路径:'xxxxxPython36libsite-packageswin32PythonService.exe'PythonService.exe是否能运行,若能说明没有xxx.dll动态库问题。配置python path不能设置在user下,应该设置在system path下就可以了,参考下面的说明:https://stackoverflow.com/questions/8943371/cant-start-windows-service-written-in-python-win32serviceutilWhat 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.个人的这个问题是这样解决的。
赞1
踩0