命令总结 1. ps -ef|grep nginx
2. ps -ef|grep 3923842(线程进程号)
3. pwdx 3923843(线程进程号)
如以下方式
[admin@dev-risk-mdm04 ~]$ ps -ef|grep nginx
admin 48743 48415 0 10:06 pts/0 00:00:00 grep --color=auto nginx
root 3923842 1 0 May12 ? 00:00:00 nginx: master process ./nginx
admin 3923843 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923844 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923845 3923842 0 May12 ? 00:00:05 nginx: worker process
admin 3923846 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923847 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923848 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923849 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923850 3923842 0 May12 ? 00:00:51 nginx: worker process
[admin@dev-risk-mdm04 ~]$ ps -ef|grep 3923842
admin 48839 48415 0 10:09 pts/0 00:00:00 grep --color=auto 3923842
root 3923842 1 0 May12 ? 00:00:00 nginx: master process ./nginx
admin 3923843 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923844 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923845 3923842 0 May12 ? 00:00:05 nginx: worker process
admin 3923846 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923847 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923848 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923849 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923850 3923842 0 May12 ? 00:00:51 nginx: worker process
[admin@dev-risk-mdm04 ~]$ ps -ef|grep 3923850
admin 48842 48415 0 10:10 pts/0 00:00:00 grep --color=auto 3923850
admin 3923850 3923842 0 May12 ? 00:00:51 nginx: worker process
[admin@dev-risk-mdm04 ~]$ ps -ef|grep 48839
admin 48937 48415 0 10:11 pts/0 00:00:00 grep --color=auto 48839
[admin@dev-risk-mdm04 ~]$ ps -ef|grep nginx
admin 48939 48415 0 10:12 pts/0 00:00:00 grep --color=auto nginx
root 3923842 1 0 May12 ? 00:00:00 nginx: master process ./nginx
admin 3923843 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923844 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923845 3923842 0 May12 ? 00:00:05 nginx: worker process
admin 3923846 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923847 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923848 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923849 3923842 0 May12 ? 00:00:00 nginx: worker process
admin 3923850 3923842 0 May12 ? 00:00:51 nginx: worker process
[admin@dev-risk-mdm04 ~]$ pwdx 3923843
3923843: /data/tongdun/local/nginx-1.20.2/sbin
[admin@dev-risk-mdm04 ~]$ cd /data/tongdun/local/nginx-1.20.2
[admin@dev-risk-mdm04 nginx-1.20.2]$ ls
auto CHANGES CHANGES.ru client_body_temp conf configure contrib fastcgi_temp html LICENSE logs Makefile man objs proxy_temp README sbin scgi_temp src uwsgi_temp
[admin@dev-risk-mdm04 nginx-1.20.2]$ cd conf
[admin@dev-risk-mdm04 conf]$ ls
fastcgi.conf fastcgi_params koi-utf koi-win mime.types nginx.bak nginx.conf nginx-dandian.conf nginx-uat.conf nginx-uat.conf~ scgi_params uwsgi_params win-utf
[admin@dev-risk-mdm04 conf]$ vim nginx.conf
[admin@dev-risk-mdm04 conf]$ vim nginx.conf
37 include /etc/nginx/conf.d/*.conf;
38
39
40 gzip on;
41
42 gzip_min_length 5k;
43 gzip_buffers 4 16k;
44 #gzip_http_version 1.0;
45 gzip_comp_level 3;
46 gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
47 gzip_vary on;
48
49 ## bifrost
50 upstream bifrostApi {
51 #server 10.13.13.205:9081 max_fails=5 fail_timeout=60s;
52 server 10.13.13.206:9081 max_fails=5 fail_timeout=60s;
53 #server 10.13.13.207:9081 max_fails=5 fail_timeout=60s;
54 }
55
56 ## salaxy
57 upstream salaxyApi {
58 #server 10.13.13.205:9004;
59 server 10.13.13.206:9004;
60 #server 10.13.13.207:9004;
61 }
62
63 ## freyr
64 upstream freyrApi {
65 #server 10.13.13.205:9006;
66 server 10.13.13.206:9006;
67 #server 10.13.13.207:9006;
68 }
69
70 ## holmes-web
71 upstream holmesWebApi {
72 #server 10.13.13.205:9001;
73 server 10.13.13.206:9001;
74 #server 10.13.13.207:9001;
75 }
76
77 ## atreus
78 upstream atreusApi {
79 #server 10.13.13.205:9080;
80 server 10.13.13.206:9080;
81 #server 10.13.13.207:9080;
82 }
83
84 ## tiangongApi
85 upstream tiangongEngineApi {
86 #server 10.13.13.205:9007;
87 server 10.13.13.206:9007;
88 #server 10.13.13.207:9007;
89 }
90
91 ## tiangongAdmin
search hit BOTTOM, continuing at TOP 64,15 23%
仅供参考