LoginSignup
0
1

More than 5 years have passed since last update.

Tomcatを80番ポートで動かす

Last updated at Posted at 2018-08-07

tomcatを80番ポートで起動しようとすると権限エラーになる。
これは1024番以下がルート権限でしか使えないから。

iptableを設定することで8080番ポートで動かしているtomcatを80番で公開することが可能

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1