English 中文(简体)
Tomcat with https a non-rootuser - Bind special 443
原标题:Tomcat with https a non-root user - Bind exception 443
  • 时间:2011-10-27 05:19:28
  •  标签:
  • tomcat
  • bind

我想用非专用用户(https:///61/6nIP)在443号港口进行游览。 页: 1

Error initializing endpoint java.net.BindException: Permission denied:443

我没有443号港口可以肯定使用。 我读到了某些地方,我们无法使用443港口作为非专用用户和营地;替代办法是使用管道,但我不知道如何使用管道。

I ll appreciate if someone can give me the exact command of iptables & whether I need to make any changes in server.xml a well? Current server.xml uses port 8080 for http & port 8443 for https.

感谢!

问题回答

作为非专用用户,你不能对港口443进行约束。 服务器xml载有对萨尔港的约束力,你已经提到,该港口为8443个。 无法确定从哪里获得443份。 你们是否可接触到“会议”。 你们能否寻找443个,看看这是否显示有任何用处?

Its works for me :-)

 wget http://download.si-linux.co.jp/debian-mirror/squeeze_20120726/pool/main/a/authbind/authbind_1.2.0.tar.gz

a. 安装

    sudo touch /etc/authbind/byport/443
    sudo chmod 500 /etc/authbind/byport/443
    sudo chown <non_root_user> /etc/authbind/byport/443

    vim tomcat/bin/startup.sh
    exec authbind --deep "$PRGDIR"/"$EXECUTABLE" start "$@"




相关问题
Tomcat´s server.xml dynamic configuration

My web application uses the same database configuration as the application XYZ. I have a resource declaration for a context in server.xml, so I have a duplicated configuration (once for web ...

session transfer issue from Tomcat to ASP.Net

I am using Tomcat to host JSP and using IIS 7.0 to host aspx (C# + .Net 3.5 + VSTS 2008), and I have some session transfer issue from JSP page to ASPX page. JSP page is in one domain and all other ...

JSP exception - class not found (tomcat)

I m setting up an existing application on a new Tomcat 5.5 server connecting to a Postgres database (running on Debian Lenny). When I access it I get a series of stack traces with the following root ...

热门标签