質問編集履歴
1
ターミナル全体のコードを追記しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -37,4 +37,69 @@
|
|
37
37
|
```
|
38
38
|
ユーザー名 demo_db % nmap localhost -p 8181/add
|
39
39
|
zsh: command not found: nmap
|
40
|
+
```
|
41
|
+
|
42
|
+
#### ターミナル全体のコード
|
43
|
+
```
|
44
|
+
ユーザー名 ~ % curl --version
|
45
|
+
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
|
46
|
+
Release-Date: 2019-03-27
|
47
|
+
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
|
48
|
+
Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL UnixSockets
|
49
|
+
ユーザー名 demo_db % curl localhost:8080/add -d name=First
|
50
|
+
curl: (7) Failed to connect to localhost port 8080: Connection refused
|
51
|
+
ユーザー名 demo_db % curl localhost:8080/add -d name=First
|
52
|
+
curl: (7) Failed to connect to localhost port 8080: Connection refused
|
53
|
+
ユーザー名 demo_db % curl localhost:8080/add -d name=First
|
54
|
+
curl: (7) Failed to connect to localhost port 8080: Connection refused
|
55
|
+
ユーザー名 demo_db % curl -I "localhost"
|
56
|
+
curl: (7) Failed to connect to localhost port 80: Connection refused
|
57
|
+
ユーザー名 demo_db % curl -I 127.0.0.1
|
58
|
+
curl: (7) Failed to connect to 127.0.0.1 port 80: Connection refused
|
59
|
+
ユーザー名 demo_db % curl -I 192.168.100.117
|
60
|
+
curl: (7) Failed to connect to 192.168.100.117 port 80: Connection refused
|
61
|
+
ユーザー名 demo_db % curl http: // localhost: 8080/add
|
62
|
+
curl: (6) Could not resolve host: http
|
63
|
+
curl: (3) URL using bad/illegal format or missing URL
|
64
|
+
curl: (7) Failed to connect to localhost port 80: Connection refused
|
65
|
+
curl: (7) Couldn't connect to server
|
66
|
+
ユーザー名 demo_db % curl http://localhost:8080/add
|
67
|
+
curl: (7) Failed to connect to localhost port 8080: Connection refused
|
68
|
+
ユーザー名 demo_db % curl http://localhost:8181/add
|
69
|
+
curl: (7) Failed to connect to localhost port 8181: Connection refused
|
70
|
+
ユーザー名 demo_db % curl http://localhost:8181/
|
71
|
+
curl: (7) Failed to connect to localhost port 8181: Connection refused
|
72
|
+
ユーザー名 demo_db % Sudo netstat -tulpn
|
73
|
+
Password:
|
74
|
+
netstat: n: unknown or uninstrumented protocol
|
75
|
+
ユーザー名 demo_db % netstat -ln | grep 8181
|
76
|
+
ユーザー名 demo_db % Sudo netstat -tulpn
|
77
|
+
netstat: n: unknown or uninstrumented protocol
|
78
|
+
ユーザー名 demo_db % -v
|
79
|
+
zsh: command not found: -v
|
80
|
+
ユーザー名 demo_db % sudo lsof -nPi -sTCP:LISTEN
|
81
|
+
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
|
82
|
+
postgres 584 ユーザー名 7u IPv6 0x84035d9170269c1d 0t0 TCP [::1]:5432 (LISTEN)
|
83
|
+
postgres 584 ユーザー名 8u IPv4 0x84035d917443140d 0t0 TCP 127.0.0.1:5432 (LISTEN)
|
84
|
+
postgres 584 ユーザー名 10u IPv6 0x84035d916b8a8bdd 0t0 UDP [::1]:65219->[::1]:65219
|
85
|
+
(長すぎるので一部省略)
|
86
|
+
Code\x20H 1577 ユーザー名 44u IPv6 0x84035d917e66cb1d 0t0 TCP *:45556 (LISTEN)
|
87
|
+
postgres 13060 postgres 4u IPv6 0x84035d9186fcc23d 0t0 TCP *:5434 (LISTEN)
|
88
|
+
postgres 13060 postgres 10u IPv6 0x84035d916efedbdd 0t0 UDP [::1]:64363->[::1]:64363
|
89
|
+
pgAdmin4 13275 ユーザー名 15u IPv4 0x84035d919355cded 0t0 TCP 127.0.0.1:60496 (LISTEN)
|
90
|
+
|
91
|
+
ユーザー名 demo_db % nmap localhost -p 8080
|
92
|
+
zsh: command not found: nmap
|
93
|
+
ユーザー名 demo_db % nmap localhost -p 8181
|
94
|
+
zsh: command not found: nmap
|
95
|
+
ユーザー名 demo_db % Sudo netstat -tulpn
|
96
|
+
Password:
|
97
|
+
netstat: n: unknown or uninstrumented protocol
|
98
|
+
ユーザー名 demo_db % curl http://localhost:8080/add
|
99
|
+
curl: (7) Failed to connect to localhost port 8080: Connection refused
|
100
|
+
ユーザー名 demo_db % netstat -ln | grep 8181
|
101
|
+
ユーザー名 demo_db % Sudo netstat -tulpn
|
102
|
+
netstat: n: unknown or uninstrumented protocol
|
103
|
+
ユーザー名 demo_db % nmap localhost -p 8181/add
|
104
|
+
zsh: command not found: nmap
|
40
105
|
```
|