質問編集履歴
7
情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -203,20 +203,14 @@
|
|
203
203
|
|
204
204
|
```
|
205
205
|
[anime@tk2-241-30026 log]$ cat unicorn-stderr.log
|
206
|
-
I, [2017-02-
|
206
|
+
I, [2017-02-06T15:49:11.050366 #2363] INFO -- : Refreshing Gem list
|
207
207
|
DEPRECATION WARNING: `config.serve_static_files` is deprecated and will be removed in Rails 5.1.
|
208
208
|
Please use `config.public_file_server.enabled = false` instead.
|
209
|
-
(called from block in <top (required)> at /home/anime/
|
209
|
+
(called from block in <top (required)> at /home/anime/var/www/anime-report/config/environments/production.rb:25)
|
210
|
+
I, [2017-02-06T15:49:12.997127 #2363] INFO -- : listening on addr=/home/anime/var/www/anime-report/tmp/sockets/unicorn.sock fd=8
|
211
|
+
I, [2017-02-06T15:49:12.997561 #2363] INFO -- : worker=0 spawning...
|
210
|
-
I, [2017-02-
|
212
|
+
I, [2017-02-06T15:49:13.002448 #2363] INFO -- : worker=1 spawning...
|
211
|
-
|
213
|
+
I, [2017-02-06T15:49:13.005643 #2363] INFO -- : master process ready
|
212
|
-
Did you mean? Errno::ESRCH (NameError)
|
213
|
-
/home/anime/app/anime-report/config/unicorn.rb:23:in `rescue in block in reload'
|
214
|
-
/home/anime/app/anime-report/config/unicorn.rb:21:in `block in reload'
|
215
|
-
/usr/local/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:502:in `spawn_missing_workers'
|
216
|
-
/usr/local/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:132:in `start'
|
217
|
-
/usr/local/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/unicorn-5.2.0/bin/unicorn_rails:209:in `<top (required)>'
|
218
|
-
/usr/local/rbenv/versions/2.3.1/bin/unicorn_rails:23:in `load'
|
219
|
-
/usr/local/rbenv/versions/2.3.1/bin/unicorn_rails:23:in `<main>'
|
220
|
-
I, [2017-02-
|
214
|
+
I, [2017-02-06T15:49:13.300405 #2369] INFO -- : worker=1 ready
|
221
|
-
|
215
|
+
I, [2017-02-06T15:49:13.353984 #2366] INFO -- : worker=0 ready
|
222
216
|
```
|
6
情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -93,41 +93,7 @@
|
|
93
93
|
```
|
94
94
|
|
95
95
|
|
96
|
-
【/etc/sysconfig/iptables】
|
97
|
-
```ここに言語を入力
|
98
|
-
[anime@tk2-241-30026 anime-report]$ sudo cat /etc/sysconfig/iptables
|
99
|
-
# Generated by iptables-save v1.4.7 on Fri Jan 20 17:22:53 2017
|
100
|
-
*filter
|
101
|
-
:INPUT DROP [0:0]
|
102
|
-
:FORWARD ACCEPT [0:0]
|
103
|
-
:OUTPUT ACCEPT [66777:4837845]
|
104
|
-
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
|
105
|
-
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
|
106
|
-
-A INPUT -p icmp -j ACCEPT
|
107
|
-
-A INPUT -i lo -j ACCEPT
|
108
|
-
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
|
109
|
-
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
|
110
|
-
-A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
|
111
|
-
-A INPUT -p tcp -m state --state NEW -m tcp --dport 61203 -j ACCEPT
|
112
|
-
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
|
113
|
-
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
|
114
|
-
-A INPUT -p tcp -m tcp --dport 61203 -j ACCEPT
|
115
|
-
-A SERVICES -p tcp --dport 22 -j ACCEPT
|
116
|
-
-A SERVICES -p tcp --dport 3000 -j ACCEPT
|
117
|
-
-A INPUT -j REJECT --reject-with icmp-host-prohibited
|
118
|
-
-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP
|
119
|
-
-A INPUT -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j DROP
|
120
|
-
-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG FIN,SYN,RST,PSH,ACK,URG -j DROP
|
121
|
-
-A INPUT -i lo -j ACCEPT
|
122
|
-
-A INPUT -p icmp -j ACCEPT
|
123
|
-
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
|
124
|
-
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
|
125
|
-
COMMIT
|
126
|
-
# Completed on Fri Jan 20 17:22:53 2017
|
127
|
-
```
|
128
96
|
|
129
|
-
|
130
|
-
|
131
97
|
ご経験ある方、ご指摘お願いします。
|
132
98
|
|
133
99
|
|
@@ -232,4 +198,25 @@
|
|
232
198
|
合計 4
|
233
199
|
-rw-r--r-- 1 anime anime 5 2月 6 21:39 2017 unicorn.pid
|
234
200
|
srwxrwxrwx 1 anime anime 0 2月 6 21:39 2017 unicorn.sock
|
201
|
+
```
|
202
|
+
|
203
|
+
|
204
|
+
```
|
205
|
+
[anime@tk2-241-30026 log]$ cat unicorn-stderr.log
|
206
|
+
I, [2017-02-02T11:40:50.910639 #23231] INFO -- : Refreshing Gem list
|
207
|
+
DEPRECATION WARNING: `config.serve_static_files` is deprecated and will be removed in Rails 5.1.
|
208
|
+
Please use `config.public_file_server.enabled = false` instead.
|
209
|
+
(called from block in <top (required)> at /home/anime/app/anime-report/config/environments/production.rb:25)
|
210
|
+
I, [2017-02-02T11:40:53.220240 #23231] INFO -- : listening on addr=0.0.0.0:8080 fd=11
|
211
|
+
E, [2017-02-02T11:40:53.332302 #23231] ERROR -- : uninitialized constant Errno::ESERCH
|
212
|
+
Did you mean? Errno::ESRCH (NameError)
|
213
|
+
/home/anime/app/anime-report/config/unicorn.rb:23:in `rescue in block in reload'
|
214
|
+
/home/anime/app/anime-report/config/unicorn.rb:21:in `block in reload'
|
215
|
+
/usr/local/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:502:in `spawn_missing_workers'
|
216
|
+
/usr/local/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:132:in `start'
|
217
|
+
/usr/local/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/unicorn-5.2.0/bin/unicorn_rails:209:in `<top (required)>'
|
218
|
+
/usr/local/rbenv/versions/2.3.1/bin/unicorn_rails:23:in `load'
|
219
|
+
/usr/local/rbenv/versions/2.3.1/bin/unicorn_rails:23:in `<main>'
|
220
|
+
I, [2017-02-02T11:47:05.233506 #23283] INFO -- : Refreshing Gem list
|
221
|
+
/usr/local/rbenv/versions/2.3.1/bin/unicorn_rails must be run inside RAILS_ROOT: #<LoadError: cannot load such file -- /home/anime/app/anime-report/config/environments/config/boot>
|
235
222
|
```
|
5
情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -165,13 +165,71 @@
|
|
165
165
|
11:48:01.461908 IP 160.16.198.30 > 157.119.234.13: ICMP echo reply, id 23721, seq 2846, length 64
|
166
166
|
11:48:03.591478 IP 139.5.110.36 > 160.16.198.30: ICMP echo request, id 23756, seq 631, length 64
|
167
167
|
11:48:03.591622 IP 160.16.198.30 > 139.5.110.36: ICMP echo reply, id 23756, seq 631, length 64
|
168
|
-
11:48:05.294145 IP 157.119.234.13 > 160.16.198.30: ICMP echo request,
|
168
|
+
11:48:05.294145 IP 157.119.234.13 > 160.16.198.30: ICMP echo request,
|
169
|
+
```
|
170
|
+
|
171
|
+
```ここに言語を入力
|
169
|
-
|
172
|
+
[anime@tk2-241-30026 ~]$ ls -l /var/
|
173
|
+
合計 76
|
170
|
-
|
174
|
+
drwxr-xr-x. 2 root root 4096 12月 6 19:09 2016 account
|
175
|
+
drwxr-xr-x. 10 root root 4096 1月 19 23:09 2017 cache
|
176
|
+
drwxr-xr-x. 2 root root 4096 11月 19 00:19 2016 crash
|
177
|
+
drwxr-xr-x. 2 root root 4096 11月 22 21:29 2013 cvs
|
178
|
+
drwxr-xr-x. 3 root root 4096 12月 6 19:09 2016 db
|
179
|
+
drwxr-xr-x. 3 root root 4096 12月 6 19:09 2016 empty
|
180
|
+
drwxr-xr-x. 2 root root 4096 9月 23 20:50 2011 games
|
181
|
+
drwxr-xr-x. 27 root root 4096 2月 7 03:02 2017 lib
|
182
|
+
drwxr-xr-x. 2 root root 4096 9月 23 20:50 2011 local
|
183
|
+
drwxrwxr-x. 5 root lock 4096 2月 7 03:02 2017 lock
|
184
|
+
drwxr-xr-x. 9 root root 4096 2月 5 04:51 2017 log
|
171
|
-
|
185
|
+
lrwxrwxrwx. 1 root root 10 1月 18 23:08 2017 mail -> spool/mail
|
186
|
+
drwxr-xr-x. 2 root root 4096 9月 23 20:50 2011 nis
|
187
|
+
drwxr-xr-x. 2 root root 4096 9月 23 20:50 2011 opt
|
188
|
+
drwxr-xr-x. 2 root root 4096 9月 23 20:50 2011 preserve
|
189
|
+
drwxr-xr-x. 20 root root 4096 2月 7 10:57 2017 run
|
190
|
+
drwxr-xr-x. 11 root root 4096 12月 6 19:09 2016 spool
|
191
|
+
drwxrwxrwt. 5 root root 4096 2月 7 12:08 2017 tmp
|
192
|
+
drwxr-xr-x 6 root root 4096 1月 19 11:25 2017 www
|
193
|
+
drwxr-xr-x. 2 root root 4096 9月 23 20:50 2011 yp
|
194
|
+
```
|
195
|
+
|
196
|
+
```ここに言語を入力
|
197
|
+
[anime@tk2-241-30026 ~]$ ls -l /var/run/
|
198
|
+
合計 108
|
199
|
+
drwxr-xr-x. 2 root root 4096 5月 11 06:09 2016 ConsoleKit
|
200
|
+
drwxr-xr-x. 2 root root 4096 5月 12 05:43 2016 abrt
|
201
|
+
-rw-r--r-- 1 root root 5 1月 28 12:53 2017 acpid.pid
|
172
|
-
|
202
|
+
srw-rw-rw- 1 root root 0 1月 28 12:53 2017 acpid.socket
|
203
|
+
-rw-r--r-- 1 root root 5 1月 28 12:53 2017 atd.pid
|
204
|
+
drwxr-xr-x. 2 root root 4096 5月 11 08:18 2016 console
|
205
|
+
---------- 1 root root 0 1月 28 12:53 2017 cron.reboot
|
206
|
+
-rw-r--r-- 1 root root 5 1月 28 12:53 2017 crond.pid
|
207
|
+
drwxr-xr-x. 2 root root 4096 4月 22 19:52 2015 dbus
|
208
|
+
drwxr-xr-x. 2 root root 4096 1月 28 12:53 2017 fail2ban
|
209
|
+
drwxr-xr-x. 2 root root 4096 5月 11 08:18 2016 faillock
|
210
|
+
drwx------. 2 haldaemon haldaemon 4096 10月 15 19:49 2014 hald
|
211
|
+
drwx--x--- 2 root apache 4096 2月 1 21:34 2017 httpd
|
173
|
-
|
212
|
+
-rw-r--r-- 1 root root 5 1月 28 12:53 2017 irqbalance.pid
|
213
|
+
drwx------. 2 root root 4096 8月 24 03:37 2016 lvm
|
214
|
+
drwx------. 2 root root 4096 7月 13 00:43 2016 mdadm
|
215
|
+
drwxr-xr-x 2 mysql mysql 4096 1月 28 12:53 2017 mysqld
|
174
|
-
|
216
|
+
drwxrwxr-x. 2 root root 4096 7月 13 01:40 2016 netreport
|
175
|
-
|
217
|
+
-rw-r--r-- 1 root root 5 2月 7 10:57 2017 nginx.pid
|
218
|
+
-rw-r--r-- 1 root root 4 1月 28 12:53 2017 ntpd.pid
|
219
|
+
drwxr-xr-x. 2 root root 4096 8月 12 02:59 2014 plymouth
|
220
|
+
drwxr-xr-x. 4 root root 4096 12月 6 19:09 2016 pm-utils
|
176
|
-
|
221
|
+
drwxr-xr-x. 2 root root 4096 3月 25 19:24 2015 saslauthd
|
222
|
+
drwxr-xr-x. 2 root root 4096 5月 11 08:18 2016 sepermit
|
223
|
+
drwxr-xr-x. 2 root root 4096 5月 11 07:59 2016 setrans
|
224
|
+
-rw-r--r-- 1 root root 6 2月 2 09:53 2017 sshd.pid
|
225
|
+
-rw------- 1 root root 5 1月 28 12:53 2017 syslogd.pid
|
226
|
+
drwxrwxrwx 2 root root 4096 2月 6 21:39 2017 unicorn
|
227
|
+
-rw-rw-r-- 1 root utmp 2688 2月 7 10:42 2017 utmp
|
228
|
+
```
|
229
|
+
|
230
|
+
```ここに言語を入力
|
231
|
+
[anime@tk2-241-30026 ~]$ ls -l /var/run/unicorn/
|
232
|
+
合計 4
|
233
|
+
-rw-r--r-- 1 anime anime 5 2月 6 21:39 2017 unicorn.pid
|
234
|
+
srwxrwxrwx 1 anime anime 0 2月 6 21:39 2017 unicorn.sock
|
177
235
|
```
|
4
情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -154,4 +154,24 @@
|
|
154
154
|
root 8080 0.0 0.0 45096 1044 ? Ss 10:57 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
|
155
155
|
nginx 8081 0.0 0.1 45492 2124 ? S 10:57 0:00 nginx: worker process
|
156
156
|
anime 8115 0.0 0.0 103328 868 pts/0 S+ 11:16 0:00 grep nginx
|
157
|
+
```
|
158
|
+
|
159
|
+
|
160
|
+
```ここに言語を入力
|
161
|
+
[anime@tk2-241-30026 etc]$ sudo tcpdump -n icmp
|
162
|
+
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
|
163
|
+
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
|
164
|
+
11:48:01.461745 IP 157.119.234.13 > 160.16.198.30: ICMP echo request, id 23721, seq 2846, length 64
|
165
|
+
11:48:01.461908 IP 160.16.198.30 > 157.119.234.13: ICMP echo reply, id 23721, seq 2846, length 64
|
166
|
+
11:48:03.591478 IP 139.5.110.36 > 160.16.198.30: ICMP echo request, id 23756, seq 631, length 64
|
167
|
+
11:48:03.591622 IP 160.16.198.30 > 139.5.110.36: ICMP echo reply, id 23756, seq 631, length 64
|
168
|
+
11:48:05.294145 IP 157.119.234.13 > 160.16.198.30: ICMP echo request, id 23721, seq 3229, length 64
|
169
|
+
11:48:05.294220 IP 160.16.198.30 > 157.119.234.13: ICMP echo reply, id 23721, seq 3229, length 64
|
170
|
+
11:48:08.744798 IP 139.5.110.36 > 160.16.198.30: ICMP echo request, id 23756, seq 1142, length 64
|
171
|
+
11:48:08.744987 IP 160.16.198.30 > 139.5.110.36: ICMP echo reply, id 23756, seq 1142, length 64
|
172
|
+
11:48:09.126543 IP 157.119.234.13 > 160.16.198.30: ICMP echo request, id 23721, seq 3612, length 64
|
173
|
+
11:48:09.126628 IP 160.16.198.30 > 157.119.234.13: ICMP echo reply, id 23721, seq 3612, length 64
|
174
|
+
11:48:11.237496 IP 160.16.198.30 > 183.69.131.213: ICMP host 160.16.198.30 unreachable - admin prohibited, length 48
|
175
|
+
11:48:11.413781 IP 160.16.198.30 > 183.69.131.213: ICMP host 160.16.198.30 unreachable - admin prohibited, length 48
|
176
|
+
11:48:13.900012 IP 139.5.110.36 > 160.16.198.30: ICMP echo request, id 23756, seq 1653, length 64
|
157
177
|
```
|
3
情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -147,4 +147,11 @@
|
|
147
147
|
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
|
148
148
|
2017/02/07 11:12:32 [emerg] 8111#8111: open() "/var/run/nginx.pid" failed (13: Permission denied)
|
149
149
|
nginx: configuration file /etc/nginx/nginx.conf test failed
|
150
|
+
```
|
151
|
+
|
152
|
+
```
|
153
|
+
[anime@tk2-241-30026 etc]$ ps aux | grep nginx
|
154
|
+
root 8080 0.0 0.0 45096 1044 ? Ss 10:57 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
|
155
|
+
nginx 8081 0.0 0.1 45492 2124 ? S 10:57 0:00 nginx: worker process
|
156
|
+
anime 8115 0.0 0.0 103328 868 pts/0 S+ 11:16 0:00 grep nginx
|
150
157
|
```
|
2
情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -138,4 +138,13 @@
|
|
138
138
|
|
139
139
|
```ここに言語を入力
|
140
140
|
2017/02/07 10:48:29 [error] 7984#7984: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 126.129.108.242, server: anime-report, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "xxx.xx.xxx.xx"
|
141
|
+
```
|
142
|
+
|
143
|
+
```ここに言語を入力
|
144
|
+
[anime@tk2-241-30026 etc]$ service nginx configtest
|
145
|
+
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
|
146
|
+
2017/02/07 11:12:32 [warn] 8111#8111: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
|
147
|
+
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
|
148
|
+
2017/02/07 11:12:32 [emerg] 8111#8111: open() "/var/run/nginx.pid" failed (13: Permission denied)
|
149
|
+
nginx: configuration file /etc/nginx/nginx.conf test failed
|
141
150
|
```
|
1
情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -128,4 +128,14 @@
|
|
128
128
|
|
129
129
|
|
130
130
|
|
131
|
-
ご経験ある方、ご指摘お願いします。
|
131
|
+
ご経験ある方、ご指摘お願いします。
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
###追加
|
136
|
+
|
137
|
+
【INETに変更後】
|
138
|
+
|
139
|
+
```ここに言語を入力
|
140
|
+
2017/02/07 10:48:29 [error] 7984#7984: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 126.129.108.242, server: anime-report, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "xxx.xx.xxx.xx"
|
141
|
+
```
|