add docs/windows下运行myems-api服务.
parent
37fa888b7a
commit
6892981249
|
@ -0,0 +1,19 @@
|
|||
1、Windows下运行myems-api服务需要安装依赖waitress,命令是: pip install waitress;
|
||||
2、运行服务命令:waitress-serve --port=8000 app:api
|
||||
3、可能遇到的问题(在这卡了很久):No module named 'fcntl'和No module named 'pwd',实际解决方法很简单:在python目录的lib目录下新建fcntl.py和pwd.py,fcntl里内容如下,pwd里空着就行;
|
||||
|
||||
|
||||
def fcntl(fd, op, arg=0):
|
||||
return 0
|
||||
|
||||
def ioctl(fd, op, arg=0, mutable_flag=True):
|
||||
if mutable_flag:
|
||||
return 0
|
||||
else:
|
||||
return ""
|
||||
|
||||
def flock(fd, op):
|
||||
return
|
||||
|
||||
def lockf(fd, operation, length=0, start=0, whence=0):
|
||||
return
|
Loading…
Reference in New Issue