[root@xxxf sfg_nginx]# cd ..
[root@xxxf var]# cd ..
[root@xxxf ac]# ls
sfg_nginx var
[root@xxxf ac]# cd sfg_nginx/
[root@xxxf sfg_nginx]# ll
total 12
drwxr-xr-x. 2 root root 4096 Jul 23 2019 conf
drwxr-xr-x. 2 root root 4096 Jul 23 2019 html
drwxr-xr-x. 2 root root 4096 Jul 23 2019 sbin
[root@xxxf sfg_nginx]# cd sbin/
[root@xxxf sbin]# ls
sfg_nginx
[root@xxxf sbin]# ./sfg_nginx stop
./sfg_nginx: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
[root@xxxf sbin]# ps -ef | grep nginx
root 5858 30594 0 17:52 pts/1 00:00:00 grep nginx
root 6830 3077 0 2022 ? 00:00:00 nginx: master process /ac/sfg_nginx/sbin/sfg_nginx
nobody 6831 6830 0 2022 ? 00:10:45 nginx: worker process
[root@xxxf sbin]# kill -9 6831 6830
[root@xxxf sbin]# ps -ef | grep nginx
root 5860 3077 0 17:52 ? 00:00:00 nginx: master process /ac/sfg_nginx/sbin/sfg_nginx
nobody 5861 5860 0 17:52 ? 00:00:00 nginx: worker process
root 5864 30594 0 17:52 pts/1 00:00:00 grep nginx
[root@xxxf sbin]# ./sfg_nginx stop
./sfg_nginx: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
[root@xxxf sbin]# ps aux | grep nginx |awk '{print $2}' | xargs kill -9
kill 6255: No such process
[root@xxxf sbin]# ps -ef | grep nginx
root 6259 3077 0 17:55 ? 00:00:00 nginx: master process /ac/sfg_nginx/sbin/sfg_nginx
nobody 6260 6259 0 17:55 ? 00:00:00 nginx: worker process
root 6262 30594 0 17:55 pts/1 00:00:00 grep nginx
[root@xxxf sbin]# ./sfg_nginx -s stop
./sfg_nginx: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
[root@xxxf sbin]# kill -HUP 6259 6260
[root@xxxf sbin]# ps -ef | grep nginx
root 6259 3077 0 17:55 ? 00:00:00 nginx: master process /ac/sfg_nginx/sbin/sfg_nginx
nobody 6272 6259 0 17:56 ? 00:00:00 nginx: worker process
root 6274 30594 0 17:56 pts/1 00:00:00 grep nginx
[root@xxxf sbin]# kill -HUP 6272
[root@xxxf sbin]# ps -ef | grep nginx
root 6259 3077 0 17:55 ? 00:00:00 nginx: master process /ac/sfg_nginx/sbin/sfg_nginx
nobody 6272 6259 0 17:56 ? 00:00:00 nginx: worker process
root 6283 30594 0 17:57 pts/1 00:00:00 grep nginx
[root@xxxf sbin]# kill -HUP 6272 6259
[root@xxxf sbin]# ps -ef | grep nginx
root 6259 3077 0 17:55 ? 00:00:00 nginx: master process /ac/sfg_nginx/sbin/sfg_nginx
nobody 6285 6259 0 17:57 ? 00:00:00 nginx: worker process
root 6287 30594 0 17:57 pts/1 00:00:00 grep nginx
[root@xxxf sbin]# ps aux | grep nginx |awk '{print $2}'
6259
6285
6842
[root@xxxf sbin]# ps aux | grep nginx |awk '{print $2}' | xargs kill -9
kill 6846: No such process
[root@xxxf sbin]# ps -ef | grep nginx
root 6850 3077 0 17:58 ? 00:00:00 nginx: master process /ac/sfg_nginx/sbin/sfg_nginx
nobody 6851 6850 0 17:58 ? 00:00:00 nginx: worker process
root 6911 30594 0 18:01 pts/1 00:00:00 grep nginx
[root@xxxf sbin]# ./sfg_nginx -s stop
./sfg_nginx: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
[root@xxxf sbin]# ldd $(which /ac/sfg_nginx/sbin/sfg_nginx)
linux-vdso.so.1 => (0x00007fff8cd32000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003e35c00000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000003e40800000)
libssl.so.1.0.0 => not found
libcrypto.so.1.0.0 => not found
libdl.so.2 => /lib64/libdl.so.2 (0x0000003e35400000)
libz.so.1 => /lib64/libz.so.1 (0x0000003e36000000)
libc.so.6 => /lib64/libc.so.6 (0x0000003e35800000)
/lib64/ld-linux-x86-64.so.2 (0x0000003e35000000)
libfreebl3.so => /lib64/libfreebl3.so (0x0000003e40400000)
[root@xxxf sbin]# ll /usr/lib64/libss
libssh2.so.1 libssl3.so libssl.so libssl.so.10 libssl.so.1.1 libsss_idmap.so.0 libsss_sudo.so
libssh2.so.1.0.1 libssl.a libssl.so.0.9.8e libssl.so.1.0.1e libssl.so.6 libsss_idmap.so.0.4.0
[root@xxxf sbin]# ll /lib64/libssl.so.1.0.0 /usr/lib64/libssl.so.1.0.1e
ls: cannot access /lib64/libssl.so.1.0.0: No such file or directory
-rwxr-xr-x. 1 root root 444184 Jun 23 2015 /usr/lib64/libssl.so.1.0.1e
You have new mail in /var/spool/mail/root
[root@xxxf sbin]# ln -s /lib64/libssl.so.1.0.0 /usr/lib64/libssl.so.1.0.1e
ln: creating symbolic link `/usr/lib64/libssl.so.1.0.1e': File exists
[root@xxxf sbin]# ln -s /usr/lib64/libssl.so.1.0.1e /lib64/libssl.so.1.0.0
[root@xxxf sbin]# ./sfg_nginx -s stop
./sfg_nginx: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
[root@xxxf sbin]# ln -s /usr/lib64/libc
libcairomm-1.0.so.1 libcares.so.2.1.0 libchewing.so.3.0.1 libcpupower.so.0.0.0 libcupscgi.so
libcairomm-1.0.so.1.3.0 libcdda_interface.so libchromeXvMCPro.so.1 libcrack.so.2 libcupscgi.so.1
libcairo.so libcdda_interface.so.0 libchromeXvMCPro.so.1.0.0 libcrack.so.2.8.1 libcupsdriver.so
libcairo.so.2 libcdda_interface.so.0.10.2 libchromeXvMC.so.1 libcrmf.a libcupsdriver.so.1
libcairo.so.2.10800.8 libcdda_paranoia.so libchromeXvMC.so.1.0.0 libcroco-0.6.so libcupsimage.so
libcamel-1.2.so libcdda_paranoia.so.0 libcidn.so libcroco-0.6.so.3 libcupsimage.so.2
libcamel-1.2.so.19 libcdda_paranoia.so.0.10.2 libcilkrts.so.5 libcroco-0.6.so.3.0.1 libcupsmime.so
libcamel-1.2.so.19.0.0 libcdio_cdda.so.0 libcilkrts.so.5.0.0 libcrypto.a libcupsmime.so.1
libcamel-provider-1.2.so libcdio_cdda.so.0.0.5 libck-connector.so.0 libcrypto.so libcupsppdc.so
libcamel-provider-1.2.so.19 libcdio_paranoia.so.0 libck-connector.so.0.0.0 libcrypto.so.0.9.8e libcupsppdc.so.1
libcamel-provider-1.2.so.19.0.0 libcdio_paranoia.so.0.0.3 libcloog.so.0 libcrypto.so.10 libcups.so
libcanberra-0.22/ libcdio++.so.0 libcloog.so.0.0.0 libcrypto.so.1.0.1e libcups.so.2
libcanberra-gtk.so libcdio++.so.0.0.0 libclucene.so.0 libcrypto.so.1.1 libcurl.so
libcanberra-gtk.so.0 libcdio.so.10 libclucene.so.0.0.0 libcrypto.so.6 libcurl.so.4
libcanberra-gtk.so.0.1.5 libcdio.so.10.0.0 libc_nonshared.a libcrypt.so libcurl.so.4.1.1
libcanberra.so libcgroup.so libcollection.so.4 libcryptui.so.0 libcurses.so
libcanberra.so.0 libcheck.so libcollection.so.4.0.0 libcryptui.so.0.0.0 libcursesw.so
libcanberra.so.0.2.1 libcheck.so.0 libcom_err.a libc.so
libcap-ng.so libcheck.so.0.0.0 libcom_err.so libcspi.so.0
libcares.so.2 libchewing.so.3 libcpupower.so.0 libcspi.so.0.10.11
[root@xxxf sbin]# ln -s /usr/lib64/libcrypto.so.1.
libcrypto.so.1.0.1e libcrypto.so.1.1
[root@xxxf sbin]# ln -s /usr/lib64/libcrypto.so.1.0.1e /lib64/libcrypto.so.1.0.0
[root@xxxf sbin]# ./sfg_nginx -s stop
[root@xxxf sbin]# ps -ef | grep nginx
root 16365 3077 0 09:42 ? 00:00:00 nginx: master process /ac/sfg_nginx/sbin/sfg_nginx
nobody 16366 16365 0 09:42 ? 00:00:00 nginx: worker process
root 16368 30594 0 09:42 pts/1 00:00:00 grep nginx
[root@xxxf sbin]# ./sfg_nginx stop
nginx: invalid option: "stop"
[root@xxxf sbin]# ./sfg_nginx -s stop
[root@xxxf sbin]# ps -ef | grep nginx
root 16377 3077 0 09:43 ? 00:00:00 nginx: master process /ac/sfg_nginx/sbin/sfg_nginx
nobody 16378 16377 0 09:43 ? 00:00:00 nginx: worker process
root 16380 30594 0 09:43 pts/1 00:00:00 grep nginx
[root@xxxf sbin]# kill -9 16377 16378
[root@xxxf sbin]# ps -ef | grep nginx
root 16381 3077 0 09:43 ? 00:00:00 nginx: master process /ac/sfg_nginx/sbin/sfg_nginx
nobody 16382 16381 0 09:43 ? 00:00:00 nginx: worker process
root 16385 30594 0 09:43 pts/1 00:00:00 grep nginx
[root@xxxf sbin]# cd ..
[root@xxxf sfg_nginx]# cd ..
[root@xxxf ac]# ll
total 8
drwxr-xr-x. 5 root root 4096 Jul 23 2019 sfg_nginx
drwxr-xr-x. 3 root root 4096 Jul 23 2019 var
[root@xxxf ac]# mv sfg_nginx/ sfg
[root@xxxf ac]# ll
total 8
drwxr-xr-x. 5 root root 4096 Jul 23 2019 sfg
drwxr-xr-x. 3 root root 4096 Jul 23 2019 var
[root@xxxf ac]# kill -9 16381 16382
[root@xxxf ac]# ps -ef | grep nginx
root 17584 30594 0 10:12 pts/1 00:00:00 grep nginx
[root@xxxf ac]#