add docs/windows下运行myems-api服务.

pull/135/head
gjl 2022-03-21 07:45:40 +00:00 committed by Gitee
parent 37fa888b7a
commit 6892981249
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 19 additions and 0 deletions

View File

@ -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