Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

桌面端内核进程使用随机端口 #4952

Closed
88250 opened this issue May 19, 2022 · 11 comments
Closed

桌面端内核进程使用随机端口 #4952

88250 opened this issue May 19, 2022 · 11 comments
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented May 19, 2022

桌面端环境 6806 容易被其他进程占用或者是其他程序的保留端口,应该改进为使用随机端口拉起内核。

可在 设置 - 关于 - 使用固定端口 中开启固定使用 6806,不允许手动指定,主要是防止普通用户误输入后下次无法启动。

@88250 88250 added this to the 2.0.12 milestone May 19, 2022
@88250 88250 self-assigned this May 19, 2022
@88250 88250 changed the title 桌面端使用随机端口 桌面端内核进程使用随机端口 May 19, 2022
@Zuoqiu-Yingyi
Copy link
Contributor

Zuoqiu-Yingyi commented May 19, 2022

强烈建议在使用随机端口的同时支持用户自定义固定的端口
docker 必须能够自定义端口以进行端口映射,而且我把思源当本地 Web 静态文件服务器与图床使用了😂

@UltramarineSky
Copy link

强烈建议在使用随机端口的同时支持用户自定义固定的端口 docker 必须能够自定义端口以进行端口映射,而且我把思源当本地 Web 静态文件服务器与图床使用了😂

希望允许自定义端口

@leolee9086
Copy link

还是建议保留自定义端口……

@mdzz2048
Copy link
Contributor

建议保留自定义端口,目前社区很多Supermemo用户将思源当做本地图床使用:
思源作为本地图床导入材料至 SuperMemo,以网页为例
如何排除剪藏内容对搜索的影响?
如果端口设置为随机端口将失去这个功能,对于Supermemo用户来说是难以接受的……

@netdog2019
Copy link

建议保留自定义端口,也可以选择自定义,默认随机,有需要的可以定义是不是更好?类似于加密密码。

@Danielypzhang
Copy link

希望允许自定义端口

@CleinBlue
Copy link

确实有的用户不知道怎么设置端口,有阻塞的情况。建议是默认随机,可选自定义

@88250 88250 removed the Enhancement label May 20, 2022
@88250 88250 removed this from the 2.0.12 milestone May 20, 2022
@88250
Copy link
Member Author

88250 commented May 20, 2022

完全随机不可取,需要允许自定义,但是自定义以后可能会引入新问题,非程序员用户估计难以理解 监听端口 的含义。

从目前收到的端口占用问题来看,基本是由于 Hyper-V 保留端口所致,Hyper-V 一般来说非程序员用户不会安装,所以碰到端口占用的概率较低。

我们改一下那个报错弹框吧,把处理方案加进去:

net stop winnat
netsh interface ipv4 add excludedportrange protocol=tcp startport=6806 numberofports=1
net start winnat

@88250 88250 closed this as completed May 20, 2022
@88250
Copy link
Member Author

88250 commented May 20, 2022

#4957

@UltramarineSky
Copy link

手机上有时候也会出现端口被占用,能否允许自定义

@88250
Copy link
Member Author

88250 commented May 24, 2022

@UltramarineSky 都不允许了,不然可能太过复杂。

@88250 88250 closed this as completed Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants