【求助】tomcat,把8080映射到80结果权限不够怎么办?
linux吧
全部回复
仅看楼主
level 10
西门_吹雪pj
楼主
如图
-------众人皆醒而我独醉 @( ̄- ̄)@
2014年11月04日 13点11分
1
level 11
认不倒你
root权限才能操纵1024以下的端口
2014年11月04日 14点11分
2
西门_吹雪pj
我的是centos,那么必须root登陆才行吗?
2014年11月04日 14点11分
认不倒你
回复 西门_吹雪pj :至少tomcat运行是root权限,或者
http://serverfault.com/questions/112795/how-can-i-run-a-server-on-linux-on-port-80-as-a-normal-user
2014年11月04日 14点11分
西门_吹雪pj
回复 认不倒你 :# iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 80 -j REDIRECT --to-ports 8080这个明天试试
2014年11月04日 14点11分
1