centos7防火牆開port無效 - Linux

By Caitlin
at 2019-11-13T21:47
at 2019-11-13T21:47
Table of Contents
前情提要
最近在azure上開了一個虛機,想要做web server的前端(前後端分離)
在用nginx反向代理時,一直失敗,同樣的conf放在自己PC是可以正常跑的
後來想到可能是port沒開的問題,所以就先做檢測
發現連telnet localhost port都不過...
所以GOOGLE了一下方法,但是怎樣都還是沒用...
以下是操作的指令
sudo firewall-cmd --zone=public --add-port=9701/tcp --permanent
sudo firewall-cmd --reload
以上success
sudo firewall-cmd --list-port
9701/tcp
到這邊都是正常,可是telnet還是失敗
telnet localhost 9701
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
sudo netstat -tnlp | grep :9701
用這個查了監聽的port,結果沒有返回
有人遇過這個狀況嗎...這個要怎麼解決
--
Tags:
Linux
All Comments

By Bennie
at 2019-11-14T19:51
at 2019-11-14T19:51

By Kumar
at 2019-11-15T02:52
at 2019-11-15T02:52

By Tom
at 2019-11-15T13:31
at 2019-11-15T13:31

By Lauren
at 2019-11-20T10:31
at 2019-11-20T10:31

By Mason
at 2019-11-23T18:14
at 2019-11-23T18:14

By Annie
at 2019-11-27T01:40
at 2019-11-27T01:40

By Hamiltion
at 2019-11-28T15:09
at 2019-11-28T15:09

By Tom
at 2019-11-28T19:33
at 2019-11-28T19:33

By Erin
at 2019-11-30T13:06
at 2019-11-30T13:06

By Wallis
at 2019-12-05T09:35
at 2019-12-05T09:35

By Iris
at 2019-12-08T07:50
at 2019-12-08T07:50

By Caitlin
at 2019-12-09T23:49
at 2019-12-09T23:49

By Sarah
at 2019-12-14T09:25
at 2019-12-14T09:25

By Jack
at 2019-12-19T08:53
at 2019-12-19T08:53

By Ivy
at 2019-12-21T11:55
at 2019-12-21T11:55

By Dora
at 2019-12-25T18:49
at 2019-12-25T18:49

By Ursula
at 2019-12-26T23:04
at 2019-12-26T23:04

By Edward Lewis
at 2019-12-30T05:45
at 2019-12-30T05:45

By Belly
at 2019-12-31T22:05
at 2019-12-31T22:05

By Iris
at 2020-01-05T08:42
at 2020-01-05T08:42

By Kyle
at 2020-01-07T08:11
at 2020-01-07T08:11

By Rosalind
at 2020-01-11T17:53
at 2020-01-11T17:53

By Poppy
at 2020-01-15T13:03
at 2020-01-15T13:03

By Megan
at 2020-01-19T10:30
at 2020-01-19T10:30

By Ethan
at 2020-01-24T03:33
at 2020-01-24T03:33

By Oliver
at 2020-01-28T01:44
at 2020-01-28T01:44

By Liam
at 2020-01-28T04:57
at 2020-01-28T04:57

By Mason
at 2020-01-30T01:04
at 2020-01-30T01:04

By Agatha
at 2020-01-30T11:57
at 2020-01-30T11:57

By Zora
at 2020-02-03T22:10
at 2020-02-03T22:10

By Emily
at 2020-02-08T09:51
at 2020-02-08T09:51
Related Posts
Archlinux下battery capacity下降速度快

By Sandy
at 2019-11-11T21:32
at 2019-11-11T21:32
公司如何管理Linus電腦資安 ?

By Skylar DavisLinda
at 2019-11-11T12:24
at 2019-11-11T12:24
KVM 與 virtualbox 的選擇

By Sandy
at 2019-11-09T16:55
at 2019-11-09T16:55
Cadence安裝問題Centos7

By Sandy
at 2019-11-07T16:17
at 2019-11-07T16:17
Cadence安裝問題Centos7

By Jack
at 2019-11-07T14:59
at 2019-11-07T14:59