当前位置: 技术问答>linux和unix
jboss用户无权限打开80端口?
来源: 互联网 发布时间:2015-02-24
本文导语: 我在redhat7.1上配置web服务器的端口为80,使用用户jboss启动web服务器时报错,察看日志如下: Apr 22, 2003 10:42:55 PM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.BindException: Permission denied:80 ...
我在redhat7.1上配置web服务器的端口为80,使用用户jboss启动web服务器时报错,察看日志如下:
Apr 22, 2003 10:42:55 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Permission denied:80
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:280)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1117)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:579)
.......
使用root用户启动web服务器则没有任何问题,请问怎样用jboss用户有权打开80端口?
Apr 22, 2003 10:42:55 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Permission denied:80
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:280)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1117)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:579)
.......
使用root用户启动web服务器则没有任何问题,请问怎样用jboss用户有权打开80端口?
|
sudo(8) MAINTENANCE COMMANDS sudo(8)
NAME
sudo - execute a command as another user
SYNOPSIS
sudo -V | -h | -l | -L | -v | -k | -K | -s | [ -H ] [-P ] [-S ] [ -b ]
| [ -p prompt ] [ -c class|- ] [ -a auth_type ] [ -u username|#uid ]
command
DESCRIPTION
sudo allows a permitted user to execute a command as the superuser or
another user, as specified in the sudoers file.
...
sudoers(5) MAINTENANCE COMMANDS sudoers(5)
NAME
sudoers - list of which users may execute what
DESCRIPTION
The sudoers file is composed of two types of entries: aliases (basi-
cally variables) and user specifications (which specify who may run
what). The grammar of sudoers will be described below in Extended
Backus-Naur Form (EBNF). Don't despair if you don't know what EBNF is;
it is fairly simple, and the definitions below are annotated.
具体讲就是往/etc/sudoers里加一行:
jboss ALL=/path/to/your/script
然后jboss执行:
# sudo
NAME
sudo - execute a command as another user
SYNOPSIS
sudo -V | -h | -l | -L | -v | -k | -K | -s | [ -H ] [-P ] [-S ] [ -b ]
| [ -p prompt ] [ -c class|- ] [ -a auth_type ] [ -u username|#uid ]
command
DESCRIPTION
sudo allows a permitted user to execute a command as the superuser or
another user, as specified in the sudoers file.
...
sudoers(5) MAINTENANCE COMMANDS sudoers(5)
NAME
sudoers - list of which users may execute what
DESCRIPTION
The sudoers file is composed of two types of entries: aliases (basi-
cally variables) and user specifications (which specify who may run
what). The grammar of sudoers will be described below in Extended
Backus-Naur Form (EBNF). Don't despair if you don't know what EBNF is;
it is fairly simple, and the definitions below are annotated.
具体讲就是往/etc/sudoers里加一行:
jboss ALL=/path/to/your/script
然后jboss执行:
# sudo
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。