liunx下如何用weblogic部署程序使用80端口。。在线等。。

RotKang 2010-03-08 04:16:23
我查了liunx下的80端口看有没有使用。没有找到80端口在使用。但是我用weblogic10部署的时候出错了。
<Mar 8, 2010 3:57:28 PM CST> <Emergency> <Security> <BEA-090087> <Server failed to bind to the configured Admin port. The port may already be used by another process.>
<Mar 8, 2010 3:57:28 PM CST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default[1]". The address 127.0.0.1 might be incorrect or another process is using port 80: java.net.BindException: Permission denied.>
<Mar 8, 2010 3:57:28 PM CST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default". The address 10.0.2.11 might be incorrect or another process is using port 80: java.net.BindException: Permission denied.>
<Mar 8, 2010 3:57:28 PM CST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: Server failed to bind to any usable port. See preceeding log message for details.>
<Mar 8, 2010 3:57:28 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Mar 8, 2010 3:57:28 PM CST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Mar 8, 2010 3:57:28 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
请问哪位大哥用过liunx下的80端口。。能详细解说 一下吗?
是不是要给权限。还是其它原因。
我登录LIUNX的时候不是用root登录进去的。。。
...全文
987 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
RotKang 2010-03-08
  • 打赏
  • 举报
回复
哦。谢谢了。。。。。。。。。。
steptodream 2010-03-08
  • 打赏
  • 举报
回复
不知道这样可不可以 你可以写段代码试试

用root权限绑定端口后调用setuid切换为普通用户
RotKang 2010-03-08
  • 打赏
  • 举报
回复
哦。。。谢谢你了。如何用root用户开放这个80端口。其它用户用。不知道行不行。。
steptodream 2010-03-08
  • 打赏
  • 举报
回复
我看了几个linux的内核在include/net/sock.h都有如下的的代码
/* Sockets 0-1023 can't be bound to unless you are superuser */
#define PROT_SOCK 1024
RotKang 2010-03-08
  • 打赏
  • 举报
回复
引用 7 楼 rainsome 的回复:
http://www.phpchina.com/index.php?action-viewnews-itemid-34355


这个网站打不开。。
RotKang 2010-03-08
  • 打赏
  • 举报
回复
哦。。谢谢大家了。。。结贴吃饭
rainsome 2010-03-08
  • 打赏
  • 举报
回复
http://www.phpchina.com/index.php?action-viewnews-itemid-34355
rainsome 2010-03-08
  • 打赏
  • 举报
回复
weblogic应该是要用apache做前端的吧?
steptodream 2010-03-08
  • 打赏
  • 举报
回复
这个限制好像是在内核里限制的 我不知道如何解决

include/net/sock.h:
608 /* Sockets 0-1023 can't be bound to unless you are superuser */
609 #define PROT_SOCK 1024
RotKang 2010-03-08
  • 打赏
  • 举报
回复
还就就是如何开放这个80端口号。。谢谢了。。。
rainsome 2010-03-08
  • 打赏
  • 举报
回复
看看文件夹的权限。
还有Selinux的context设置。

weblogic有相关的部署文档的。
RotKang 2010-03-08
  • 打赏
  • 举报
回复
一定要用root权限吗?没有其它的方法了?
steptodream 2010-03-08
  • 打赏
  • 举报
回复
在linux下 1024以下的端口只有root用户才有权限使用

23,121

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧