永利爆大奖安全网址-永利爆大奖线路检测中心

【永利爆大奖安全网址,永利爆大奖线路检测中心】,欢迎来到【LG】娱乐中心,玩你所玩,看你所看,澳门皇冠,太阳集团,澳门太阳赌城,永利402,55402com永利,永利402com,澳门十大赌场,手机网投平台,赌博app官网,永利官网,永利国际,永利皇宫,永利注册,金沙城,金沙官网奥门金沙网址,4166am金沙,我们是一家正规的网上官方平台,自创建以来,以其稳定、安全、快捷和良好的信誉得到了各界同仁的一致认可和好评。期待您的到来!

Linux查看程序

日期:2020-01-05编辑作者:关于计算机

Linux查看程序、进度的注重库的不二等秘书技

1. 用到ldd查看可执路程序的信赖库

[[email protected]~]# ldd /usr/local/php/bin/php
    linux-vdso.so.1 =>  (0x00007fff753f5000)
    libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00000031f4600000)
    librt.so.1 => /lib64/librt.so.1 (0x000000311ee00000)
    libmysqlclient.so.18 => /usr/local/mysql/lib/libmysqlclient.so.18 (0x00007f767b422000)
    libmcrypt.so.4 => /usr/lib64/libmcrypt.so.4 (0x00007f767b1ef000)
    libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0x00007f767af0a000)
    libcurl.so.4 => /usr/lib64/libcurl.so.4 (0x0000003519800000)
    libm.so.6 => /lib64/libm.so.6 (0x00000031f2200000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00000031f1600000)
    libnsl.so.1 => /lib64/libnsl.so.1 (0x00000031f3a00000)
    libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00000031f8a00000)
    libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f767acf2000)
    libssl.so.10 => /usr/lib64/libssl.so.10 (0x000000311c600000)
    libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x00000031f7600000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x000000311ce00000)
    libc.so.6 => /lib64/libc.so.6 (0x00000031f0e00000)
    libresolv.so.2 => /lib64/libresolv.so.2 (0x00000031f3200000)
    libfreebl3.so => /lib64/libfreebl3.so (0x00000031f4e00000)
    /lib64/ld-linux-x86-64.so.2 (0x00000031f0a00000)
    libidn.so.11 => /lib64/libidn.so.11 (0x00000031f7e00000)
    libldap-2.4.so.2 => /lib64/libldap-2.4.so.2 (0x000000351c000000)
    libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x000000311f200000)
    libkrb5.so.3 => /lib64/libkrb5.so.3 (0x000000311e200000)
    libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00000031f7200000)
    libcom_err.so.2 => /lib64/libcom_err.so.2 (0x000000311e600000)
    libssl3.so => /usr/lib64/libssl3.so (0x000000351b800000)
    libsmime3.so => /usr/lib64/libsmime3.so (0x000000351bc00000)
    libnss3.so => /usr/lib64/libnss3.so (0x000000351a800000)
    libnssutil3.so => /usr/lib64/libnssutil3.so (0x000000351a400000)
    libplds4.so => /lib64/libplds4.so (0x000000351ac00000)
    libplc4.so => /lib64/libplc4.so (0x000000351b400000)
    libnspr4.so => /lib64/libnspr4.so (0x000000351b000000)
    libssh2.so.1 => /usr/lib64/libssh2.so.1 (0x0000003519c00000)
    liblber-2.4.so.2 => /lib64/liblber-2.4.so.2 (0x000000351a000000)
    libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00000031f8200000)
    libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00000031f7a00000)
    libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00000031f6e00000)
    libselinux.so.1 => /lib64/libselinux.so.1 (0x00000031f2600000)

注:ldd通过调用动态链接器来获得可执路程序的正视性库,然而并不推荐在不敢问津的可执路程序上奉行当ldd来获取其依赖库,因为部分版本的ldd会直接通过调用该可执路程序来收获其依据库,那存在安全危机。

2. 施用pmap工具查询未知的可执路程序的正视库

[[email protected]~]# objdump -p /usr/local/php/bin/php |grep NEEDED
  NEEDED               libcrypt.so.1
  NEEDED               librt.so.1
  NEEDED               libmysqlclient.so.18
  NEEDED               libmcrypt.so.4
  NEEDED               libiconv.so.2
  NEEDED               libcurl.so.4
  NEEDED               libm.so.6
  NEEDED               libdl.so.2
  NEEDED               libnsl.so.1
  NEEDED               libxml2.so.2
  NEEDED               libz.so.1
  NEEDED               libssl.so.10
  NEEDED               libcrypto.so.10
  NEEDED               libpthread.so.0
  NEEDED               libc.so.6
  NEEDED               libresolv.so.2

3. 采用pmap查看正在运维时的经过的依赖库

行使pldd工具不仅可以够获取进程的内部存款和储蓄器映射新闻,也能够收获进程的依赖分享库消息:

[[email protected]~/software/pldd]# ps -ef|grep php-fpm
root     26534     1  0  2014 ?        00:01:34 php-fpm: master process (/usr/local/php-5.3.29/etc/php-fpm.conf)
nobody   26535 26534  0  2014 ?        00:00:04 php-fpm: pool www          
nobody   26536 26534  0  2014 ?        00:00:05 php-fpm: pool www          
root     30510 30324  0 00:39 pts/0    00:00:00 grep php-fpm
[[email protected]~/software/pldd]# pmap 26534 |head 
26534:   php-fpm: master process (/usr/local/php-5.3.29/etc/php-fpm.conf)
0000000000400000  10452K r-x--  /usr/local/php-5.3.29/sbin/php-fpm
0000000001035000     76K rw---  /usr/local/php-5.3.29/sbin/php-fpm
0000000001048000    104K rw---    [ anon ]
0000000002a65000   3448K rw---    [ anon ]
000000311c600000    388K r-x--  /usr/lib64/libssl.so.1.0.1e
000000311c661000   2048K -----  /usr/lib64/libssl.so.1.0.1e
000000311c861000     16K r----  /usr/lib64/libssl.so.1.0.1e
000000311c865000     28K rw---  /usr/lib64/libssl.so.1.0.1e
000000311ce00000     92K r-x--  /lib64/libpthread-2.12.so

1. 接纳ldd查看可执路程序的借助库 [[email protected]~]# ldd /usr/local/php/bin/php linux-vdso.so.1 = (0x00007fff753f5000) libcrypt.s...

本文由永利爆大奖安全网址发布于关于计算机,转载请注明出处:Linux查看程序

关键词:

Python抓取京东图书评论数据

Python抓取京东图书争辨数据,python图书商量  京东图书议论有特别丰硕的音讯,那中间就隐含了购置日期、书名、小...

详细>>

iOS中的深拷贝和浅拷贝的求学记录

ios对象copy的方法,要实现nscopy协议   ios对象copy的方法,要实现nscopy协议 by 伍雪颖 - (id)copyWithZone:(NSZone *)zone{ RestEntity...

详细>>

Computer根基

一、计算机基础,,计算机基础 计算机基础 一、我们为什么要学习计算机基础 我们学习python离不开计算机基础,想要...

详细>>

六招远隔服务器数据竟然错过,六艺术帮你找回

服务器数据竟然错失了怎么办,已经不见或从不遗失的同室们无妨看看以下六招,可能能令你远远地离开遗失数据的...

详细>>