{{ cat }}'s docs

25.7.0: LNMP-扩展ldd命令


0. 扩展知识

用ldd来看依赖库,好东西

# ldd /usr/local/php/sbin/php-fpm
        linux-gate.so.1 =>  (0x0090c000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00659000)
        librt.so.1 => /lib/librt.so.1 (0x00b54000)
        libmysqlclient.so.18 => /usr/local/mysql/lib/libmysqlclient.so.18 (0x001b5000)
        libmcrypt.so.4 => /usr/lib/libmcrypt.so.4 (0x0054a000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00ebc000)
        libz.so.1 => /lib/libz.so.1 (0x0057c000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00590000)
        libcurl.so.4 => /usr/lib/libcurl.so.4 (0x006ea000)
        libm.so.6 => /lib/libm.so.6 (0x00750000)
        libdl.so.2 => /lib/libdl.so.2 (0x008d0000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x00e77000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00c83000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x007a9000)
        libc.so.6 => /lib/libc.so.6 (0x0090d000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x0061c000)
        libfreebl3.so => /lib/libfreebl3.so (0x00841000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x005e7000)
        /lib/ld-linux.so.2 (0x006aa000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00b5d000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00636000)
        libidn.so.11 => /lib/libidn.so.11 (0x008d5000)
        libldap-2.4.so.2 => /lib/libldap-2.4.so.2 (0x00f07000)
        libgssapi_krb5.so.2 => /lib/libgssapi_krb5.so.2 (0x00aa4000)
        libkrb5.so.3 => /lib/libkrb5.so.3 (0x00f55000)
        libk5crypto.so.3 => /lib/libk5crypto.so.3 (0x00e32000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0x00602000)
        libssl3.so => /usr/lib/libssl3.so (0x00ae4000)
        libsmime3.so => /usr/lib/libsmime3.so (0x0077a000)
        libnss3.so => /usr/lib/libnss3.so (0x07609000)
        libnssutil3.so => /usr/lib/libnssutil3.so (0x008a1000)
        libplds4.so => /lib/libplds4.so (0x00607000)
        libplc4.so => /lib/libplc4.so (0x0060c000)
        libnspr4.so => /lib/libnspr4.so (0x00dce000)
        libssh2.so.1 => /usr/lib/libssh2.so.1 (0x00b21000)
        liblber-2.4.so.2 => /lib/liblber-2.4.so.2 (0x00689000)
        libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x006ca000)
        libkrb5support.so.0 => /lib/libkrb5support.so.0 (0x00698000)
        libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x00612000)
        libssl.so.10 => /usr/lib/libssl.so.10 (0x03f4d000)
        libcrypto.so.10 => /usr/lib/libcrypto.so.10 (0x034bb000)
        libselinux.so.1 => /lib/libselinux.so.1 (0x00c48000)

Contents