Tomcat7 on Ubuntu

우분투에서 tomcat7을 수동으로 설치하든 apt-get으로 설치하든 포트를 1024 이하의 것을 사용하게 되면 보안에 걸려 실행되지 않는다.

이를 회피하는 정상적인 방법을 찾았는데 아래 사이트에서 정보를 볼 수 있다. 요지는 authbind를 이용하면 된다는 것인데 자세한 내용은 참고하도록 하자.

http://case.bradysoftware.com/blog/2012/03/14/1331779080000.html

요약하면 /etc/default/tomcat7에서 AUTHBIND=yes 해주고

touch /etc/authbind/byport/80
touch /etc/authbind/byport/443
chmod 0755 /etc/authbind/byport/80
chmod 0755 /etc/authbind/byport/443
chown tomcat7:tomcat7 /etc/authbind/byport/80
chown tomcat7:tomcat7 /etc/authbind/byport/443

이런 내용만 잘 처리해준 다음 재기동해주면 된다는 거다.

아주 좋다.