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?

More than 5 years have passed since last update.

ぽーととか開放★めも

Posted at

Port80はnginxのもの!

# lsof -i:80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nginx 22927 root 6u IPv4 429940 0t0 TCP *:http (LISTEN)
nginx 22928 nginx 6u IPv4 429940 0t0 TCP *:http (LISTEN)

ファイアウォール起動と自動起動

# systemctl start firewalld
# systemctl enable firewalld

http開放

# firewall-cmd --zone=public --add-service=http --permanent

適応

# firewall-cmd --reload
success

確認

# firewall-cmd --list-services
dhcpv6-client http https ssh

そしたらどっかーのが接続できんくなった…

ポート指定で許可

# firewall-cmd --zone=public --add-port=1818/tcp --permanent
# firewall-cmd --reload
success

確認

# firewall-cmd --list-ports
1818/tcp

# firewall-cmd --list-all

因みに削除

# firewall-cmd --zone=public --remove-port=1818/tcp --permanent

ヒャッハーヾ(´∀`)ノ

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?