Ubuntu 20.04にTomcat9をインストールする

操作方法
1.パッケージをアップデート
# sudo apt update

2.Tomcatをインストール
# sudo apt install tomcat9 tomcat9-admin

3.自動起動設定
# sudo systemctl enable tomcat9

4.ファイアウォールポートを設定

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo ufw allow from any to any port 8080 proto tcp
ルールをアップデートしました
ルールをアップデートしました(v6)
# sudo ufw allow from any to any port 8080 proto tcp ルールをアップデートしました ルールをアップデートしました(v6)
# sudo ufw allow from any to any port 8080 proto tcp
ルールをアップデートしました
ルールをアップデートしました(v6)

5.Tomcat起動確認
http://192.168.71.132:8080/

Ubuntu 20.04

Posted by arkgame