Nginx после перезагрузки оставит некоторый рабочий процесс с другим временем запуска
После перезагрузки в 09:12 вы можете увидеть процесс, оставшийся с Apr03 или Apr01
все больше и больше процесс появится, когда мы перезагрузим
В конце концов, какой-то запрос повлиял, он вернет 504
root 2741 2715 0 09:44 pts/0 00:00:00 grep nginx
nobody 5227 8353 36 Apr02 ? 14:12:18 nginx: worker process
root 8353 1 0 Mar31 ? 00:01:16 nginx: master process ./bin/openresty
nobody 8534 8353 54 Apr01 ? 1-10:05:49 nginx: worker process
nobody 8535 8353 72 Apr01 ? 1-21:48:09 nginx: worker process
root 12835 1 14 Jan14 ? 11-03:45:05 confd -interval 3 -backend etcd -node http://192.168.1.22:4001 -node http://192.168.1.23:4001 -confdir=/usr/local/nginx/conf/confd
nobody 14364 8353 84 Apr02 ? 1-10:25:07 nginx: worker process
nobody 14365 8353 81 Apr02 ? 1-09:20:19 nginx: worker process
nobody 25463 8353 0 09:12 ? 00:00:09 nginx: worker process
nobody 25464 8353 0 09:12 ? 00:00:19 nginx: worker process
nobody 25465 8353 18 09:12 ? 00:05:55 nginx: worker process
nobody 25466 8353 1 09:12 ? 00:00:35 nginx: worker process
nobody 25467 8353 3 09:12 ? 00:01:07 nginx: worker process
nobody 25468 8353 7 09:12 ? 00:02:18 nginx: worker process
nobody 25469 8353 27 09:12 ? 00:08:58 nginx: worker process
nobody 25470 8353 15 09:12 ? 00:04:57 nginx: worker process
nobody 25471 8353 0 09:12 ? 00:00:00 nginx: cache manager process
Вот информация о версии nginx
[root@localhost ~]# /usr/local/nginx/sbin/nginx -V
nginx version: openresty/1.13.6.2
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC)
built with OpenSSL 1.0.1e-fips 11 Feb 2013
TLS SNI support enabled
configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt=-O2 --add-module=../ngx_devel_kit-0.3.0 --add-module=../echo-nginx-module-0.61 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2rc3 --add-module=../set-misc-nginx-module-0.32 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.08 --add-module=../srcache-nginx-module-0.31 --add-module=../ngx_lua-0.10.13 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-module-0.15 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.5 --with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib --user=nobody --group=nobody --with-http_ssl_module --with-http_realip_module --add-module=/tmp/nginx-http-concat --add-module=/tmp/ip2location-nginx-master --add-module=/tmp/ngx_cache_purge --add-module=/tmp/nginx_upstream_check_module --with-http_geoip_module --with-http_stub_status_module --with-stream --with-stream_ssl_module
up:20190414 Продолжить расследование. Мы нашли некоторую петлю, чтобы избежать сигнала выхода.
[root@localhost nginx]# ps -ef |grep nginx
nobody 5470 28659 1 09:22 ? 00:07:58 nginx: worker process is shutting down
root 11008 4960 0 19:26 pts/0 00:00:00 grep nginx
root 12835 1 14 Jan14 ? 13-01:36:10 confd -interval 3 -backend etcd -node http://192.168.1.22:4001 -node http://192.168.1.23:4001 -confdir=/usr/local/nginx/conf/confd
nobody 14259 28659 42 Apr14 ? 09:11:35 nginx: worker process
nobody 14260 28659 42 Apr14 ? 09:07:34 nginx: worker process
nobody 14261 28659 7 Apr14 ? 01:42:46 nginx: worker process is shutting down
nobody 14263 28659 37 Apr14 ? 08:08:11 nginx: worker process
nobody 24673 28659 41 Apr13 ? 18:28:37 nginx: worker process
nobody 24674 28659 43 Apr13 ? 19:20:30 nginx: worker process
nobody 24675 28659 38 Apr13 ? 17:02:56 nginx: worker process
nobody 24676 28659 42 Apr13 ? 19:03:53 nginx: worker process
nobody 24677 28659 40 Apr13 ? 17:56:50 nginx: worker process
nobody 24678 28659 47 Apr13 ? 21:15:47 nginx: worker process
nobody 24679 28659 42 Apr13 ? 18:56:13 nginx: worker process
nobody 26567 28659 2 16:30 ? 00:04:11 nginx: worker process
nobody 26568 28659 2 16:30 ? 00:04:37 nginx: worker process
nobody 26569 28659 9 16:30 ? 00:17:16 nginx: worker process
nobody 26570 28659 12 16:30 ? 00:22:27 nginx: worker process
nobody 26571 28659 3 16:30 ? 00:06:44 nginx: worker process
nobody 26572 28659 6 16:30 ? 00:11:12 nginx: worker process
nobody 26573 28659 21 16:30 ? 00:38:24 nginx: worker process
nobody 26574 28659 24 16:30 ? 00:42:40 nginx: worker process
nobody 26575 28659 0 16:30 ? 00:00:02 nginx: cache manager process
root 28659 1 0 Apr13 ? 00:00:29 nginx: master process /usr/local/nginx/sbin/nginx
[root@localhost nginx]# strace -p 24675
Process 24675 attached
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
lseek(74, 528384, SEEK_SET) = 528384
.....