mac os x 下在80端口启动grails项目失败

今天在os x下启动grails项目,想在80端口中启动,可是报出了错误:    java.net.SocketException: Permission denied.

原因主要是:   on a Unix system, all ports below 1024 can only be used by root.

解决办法是先启动ssh(系统偏好-共享-远程登陆),

可以用端口转向来解决,即             ssh -L 80:localhost:8080 king@localhost

 

     how about ssh port forwarding
http://www.ssh.com/support/documentation/online/ssh/adminguide/32/Port_Forwarding.html

 

你可能感兴趣的:(.net,unix,OS,ssh,grails)