0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Linux ポート開放 手順

Last updated at Posted at 2024-05-28

firewalldの状態確認
sudo firewall-cmd --state
現在のファイアウォール設定を確認する:
sudo firewall-cmd --list-all
ポート5000を開放
sudo firewall-cmd --zone=public --add-port=5000/tcp --permanent
ァイアウォールの設定を再読み込みする
sudo firewall-cmd --reload
再度ファイアウォール設定を確認し、ポート5000が開放されていることを確認する:
sudo firewall-cmd --list-all

上 過去にやったポート番号を開く設定

現在のファイアウォールの状態を確認

sudo firewall-cmd --state

現在の設定を確認

sudo firewall-cmd --list-all

ポート5000を許可

sudo firewall-cmd --zone=public --add-port=5000/tcp --permanent

設定を再読み込み

sudo firewall-cmd --reload

設定を再度確認

sudo firewall-cmd --list-all

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?