deepin如何开放8080端口供外部访问
Tofloor
poster avatar
a1154321515
deepin
2017-07-06 04:27
Author
如标题:deepin如何开放8080端口供外部访问
Reply Favorite View the author
All Replies
avatar
billy123456
deepin
2017-07-06 05:01
#1
具体一点,http还是ftp之类的
Reply View the author
avatar
jhkwei
deepin
2017-07-06 05:03
#2
deepin 是没有防火墙的,你安装什么 Apache 之类,你去网上找找就知道怎么改 Apache 的监听端口。
Reply View the author
avatar
A·S·M·X·T 😏😜
deepin
2017-07-06 05:55
#3
有路由器要路由器中绑定pc的mac和ip并加条端口转发规则  ,没静态ip的注册个ddns绑定
Reply View the author
avatar
8***8@qq.com
deepin
2017-07-06 06:44
#4
8080是tomcat吧,直接访问就可以了
Reply View the author
avatar
wuwenrui
deepin
2017-11-19 00:11
#5
8080可以直接访问的,貌似是100以下端口需要手动去开放。
Reply View the author
avatar
duanyao
deepin
2017-11-19 01:41
#6
https://bbs.deepin.org/post/142086
8080可以直接访问的,貌似是100以下端口需要手动去开放。

是只有 root 用户的进程能监听 1024 以下的端口,防火墙规则与此无关。
Reply View the author
avatar
134******40
deepin
2017-11-19 02:59
#7
从来没有配置过就可以访问啊,当然了想公网访问就需要在路由器里面做端口映射了。
Reply View the author
avatar
wuwenrui
deepin
2017-11-20 04:01
#8
https://bbs.deepin.org/post/142086
是只有 root 用户的进程能监听 1024 以下的端口,防火墙规则与此无关。

那么只有root的进程的话,那我的项目需要89端口咋办呢?
Reply View the author
avatar
duanyao
deepin
2017-11-20 04:26
#9
https://bbs.deepin.org/post/142086
那么只有root的进程的话,那我的项目需要89端口咋办呢?

你如果用现成的服务器软件的话(apache、ngnix、tomcat 等),它们已经处理了这个问题,无需担心。

如果你要自己开发服务器软件的话,通常的做法是先以 root 用户启动服务器进程,开始监听小于 1024 的端口,然后降级为普通用户的进程。参考: https://linux-audit.com/how-and- ... ns-drop-privileges/
Reply View the author
avatar
wuwenrui
deepin
2017-11-20 04:37
#10
https://bbs.deepin.org/post/142086
你如果用现成的服务器软件的话(apache、ngnix、tomcat 等),它们已经处理了这个问题,无需担心。

如果 ...

好的,我研究下,谢谢啊。谢谢你们。
Reply View the author