web页面通过ws获取已安装列表,部署在国产麒麟linux系统下的bug记录:
1. A start job is running for /etc/rc.local Compatibility (no limit)
ws服务开机启动会一直开着,所以在 /etc/rc.d/rc.local 中websocket服务应该后台启动。
(cd /home/T/dist/;./app_linux) &
2. LookupError: no codec search functions registered: can't find encoding
websocket服务端使用的是 python websocket_server,启动错误如上,解决办法:
from encodings import ascii
from encodings import idna