ldd查看可执行程序依赖的文件
ldd 用于查看可执行程序依赖的so动态链接库文件
[root@localhost ld.so.conf.d]# ldd /usr/local/tengine/sbin/nginx linux-vdso.so.1 => (0x00007ffc9fd66000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ff1c5f56000) libdl.so.2 => /lib64/libdl.so.2 (0x00007ff1c5d52000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007ff1c5b1a000) libjemalloc.so.2 => /usr/jemalloc/lib/libjemalloc.so.2 (0x00007ff1c58cb000) libc.so.6 => /lib64/libc.so.6 (0x00007ff1c550a000) /lib64/ld-linux-x86-64.so.2 (0x00007ff1c6187000) libfreebl3.so => /lib64/libfreebl3.so (0x00007ff1c5306000)
显示not found的提示说明没有找到该库文件,则程序运行会报错,手动添加就可以了