我想使用非根用户(https://machinIP)在端口443上运行tomcat。我得到下面的错误:
Error initializing endpoint java.net.BindException: Permission denied:443我肯定没有443端口在使用中。我在某处读到,我们不能使用端口443,一个非root用户&替代方案是使用iptables,但我不知道如何使用iptables。
如果有人能告诉我iptables的确切命令,我将不胜感激&我是否需要在server.xml中做任何更改?当前server.xml对http使用端口8080,对https使用端口8443。
谢谢!
发布于 2011-10-27 13:43:14
作为非root用户,您不能在端口443上绑定。server.xml包含ssl端口的绑定,您已经提到将该端口设置为8443。不知道443是从哪里来的。您有权访问conf文件夹吗?你能搜索443,看看有没有什么有用的东西?
发布于 2019-06-01 01:13:29
它对我很有效:-)
wget http://download.si-linux.co.jp/debian-mirror/squeeze_20120726/pool/main/a/authbind/authbind_1.2.0.tar.gz解压缩>光盘>制作>制作安装
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 "$@"https://stackoverflow.com/questions/7911969
复制相似问题