[root@webapp92 webapp]# /usr/local/nginx/sbin/nginx
/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
[root@webapp92 webapp]#find / -type f -name "libpcre.so"
/usr/local/lib/libpcre.so.1
[root@webapp92 webapp]#export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
[root@webapp92 webapp]#/usr/local/nginx/sbin/nginx
[root @ webapp92 webapp] # ps -ef | grep nginx
root 9539 1 0 19:06 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
www 9540 9539 0 19:06 ? 00:00:00 nginx: worker process
OK, nginx has been started. .
---Note: You need to switch to root first, and then execute
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Start nginx command: [root@webapp92 webapp]# /usr/local/nginx/sbin/nginx
Close nginx command: [root@webapp92 webapp]# /usr/local/nginx/sbin/nginx -s stop