質問編集履歴
1
ターミナル全体のコードを追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -77,3 +77,133 @@
|
|
77
77
|
zsh: command not found: nmap
|
78
78
|
|
79
79
|
```
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
#### ターミナル全体のコード
|
84
|
+
|
85
|
+
```
|
86
|
+
|
87
|
+
ユーザー名 ~ % curl --version
|
88
|
+
|
89
|
+
curl 7.64.1 (x86_64-apple-darwin19.0) libcurl/7.64.1 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.39.2
|
90
|
+
|
91
|
+
Release-Date: 2019-03-27
|
92
|
+
|
93
|
+
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
|
94
|
+
|
95
|
+
Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL UnixSockets
|
96
|
+
|
97
|
+
ユーザー名 demo_db % curl localhost:8080/add -d name=First
|
98
|
+
|
99
|
+
curl: (7) Failed to connect to localhost port 8080: Connection refused
|
100
|
+
|
101
|
+
ユーザー名 demo_db % curl localhost:8080/add -d name=First
|
102
|
+
|
103
|
+
curl: (7) Failed to connect to localhost port 8080: Connection refused
|
104
|
+
|
105
|
+
ユーザー名 demo_db % curl localhost:8080/add -d name=First
|
106
|
+
|
107
|
+
curl: (7) Failed to connect to localhost port 8080: Connection refused
|
108
|
+
|
109
|
+
ユーザー名 demo_db % curl -I "localhost"
|
110
|
+
|
111
|
+
curl: (7) Failed to connect to localhost port 80: Connection refused
|
112
|
+
|
113
|
+
ユーザー名 demo_db % curl -I 127.0.0.1
|
114
|
+
|
115
|
+
curl: (7) Failed to connect to 127.0.0.1 port 80: Connection refused
|
116
|
+
|
117
|
+
ユーザー名 demo_db % curl -I 192.168.100.117
|
118
|
+
|
119
|
+
curl: (7) Failed to connect to 192.168.100.117 port 80: Connection refused
|
120
|
+
|
121
|
+
ユーザー名 demo_db % curl http: // localhost: 8080/add
|
122
|
+
|
123
|
+
curl: (6) Could not resolve host: http
|
124
|
+
|
125
|
+
curl: (3) URL using bad/illegal format or missing URL
|
126
|
+
|
127
|
+
curl: (7) Failed to connect to localhost port 80: Connection refused
|
128
|
+
|
129
|
+
curl: (7) Couldn't connect to server
|
130
|
+
|
131
|
+
ユーザー名 demo_db % curl http://localhost:8080/add
|
132
|
+
|
133
|
+
curl: (7) Failed to connect to localhost port 8080: Connection refused
|
134
|
+
|
135
|
+
ユーザー名 demo_db % curl http://localhost:8181/add
|
136
|
+
|
137
|
+
curl: (7) Failed to connect to localhost port 8181: Connection refused
|
138
|
+
|
139
|
+
ユーザー名 demo_db % curl http://localhost:8181/
|
140
|
+
|
141
|
+
curl: (7) Failed to connect to localhost port 8181: Connection refused
|
142
|
+
|
143
|
+
ユーザー名 demo_db % Sudo netstat -tulpn
|
144
|
+
|
145
|
+
Password:
|
146
|
+
|
147
|
+
netstat: n: unknown or uninstrumented protocol
|
148
|
+
|
149
|
+
ユーザー名 demo_db % netstat -ln | grep 8181
|
150
|
+
|
151
|
+
ユーザー名 demo_db % Sudo netstat -tulpn
|
152
|
+
|
153
|
+
netstat: n: unknown or uninstrumented protocol
|
154
|
+
|
155
|
+
ユーザー名 demo_db % -v
|
156
|
+
|
157
|
+
zsh: command not found: -v
|
158
|
+
|
159
|
+
ユーザー名 demo_db % sudo lsof -nPi -sTCP:LISTEN
|
160
|
+
|
161
|
+
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
|
162
|
+
|
163
|
+
postgres 584 ユーザー名 7u IPv6 0x84035d9170269c1d 0t0 TCP [::1]:5432 (LISTEN)
|
164
|
+
|
165
|
+
postgres 584 ユーザー名 8u IPv4 0x84035d917443140d 0t0 TCP 127.0.0.1:5432 (LISTEN)
|
166
|
+
|
167
|
+
postgres 584 ユーザー名 10u IPv6 0x84035d916b8a8bdd 0t0 UDP [::1]:65219->[::1]:65219
|
168
|
+
|
169
|
+
(長すぎるので一部省略)
|
170
|
+
|
171
|
+
Code\x20H 1577 ユーザー名 44u IPv6 0x84035d917e66cb1d 0t0 TCP *:45556 (LISTEN)
|
172
|
+
|
173
|
+
postgres 13060 postgres 4u IPv6 0x84035d9186fcc23d 0t0 TCP *:5434 (LISTEN)
|
174
|
+
|
175
|
+
postgres 13060 postgres 10u IPv6 0x84035d916efedbdd 0t0 UDP [::1]:64363->[::1]:64363
|
176
|
+
|
177
|
+
pgAdmin4 13275 ユーザー名 15u IPv4 0x84035d919355cded 0t0 TCP 127.0.0.1:60496 (LISTEN)
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
ユーザー名 demo_db % nmap localhost -p 8080
|
182
|
+
|
183
|
+
zsh: command not found: nmap
|
184
|
+
|
185
|
+
ユーザー名 demo_db % nmap localhost -p 8181
|
186
|
+
|
187
|
+
zsh: command not found: nmap
|
188
|
+
|
189
|
+
ユーザー名 demo_db % Sudo netstat -tulpn
|
190
|
+
|
191
|
+
Password:
|
192
|
+
|
193
|
+
netstat: n: unknown or uninstrumented protocol
|
194
|
+
|
195
|
+
ユーザー名 demo_db % curl http://localhost:8080/add
|
196
|
+
|
197
|
+
curl: (7) Failed to connect to localhost port 8080: Connection refused
|
198
|
+
|
199
|
+
ユーザー名 demo_db % netstat -ln | grep 8181
|
200
|
+
|
201
|
+
ユーザー名 demo_db % Sudo netstat -tulpn
|
202
|
+
|
203
|
+
netstat: n: unknown or uninstrumented protocol
|
204
|
+
|
205
|
+
ユーザー名 demo_db % nmap localhost -p 8181/add
|
206
|
+
|
207
|
+
zsh: command not found: nmap
|
208
|
+
|
209
|
+
```
|