- DevOps with Kubernetes
- Hideto Saito Hui Chuan Chloe Lee Cheng Yang Wu
- 164字
- 2021-07-02 13:41:43
Modular programming
As the size of applications increases, the job of developers is to try to divide it into several modules. Each module aims to be independent and reusable, and each is maintained by different developer teams. The main application simply initializes, imports, and uses these modules. This makes the process of building a larger application more efficient.
The following example shows the dependencies for nginx (https://www.nginx.com) on CentOS 7. It indicates that nginx uses OpenSSL(libcrypt.so.1, libssl.so.10), the POSIX thread(libpthread.so.0) library, the regular expression PCRE(libpcre.so.1) library, the zlib(libz.so.1) compression library, the GNU C(libc.so.6) library, and so on:
$ /usr/bin/ldd /usr/sbin/nginx linux-vdso.so.1 => (0x00007ffd96d79000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fd96d61c000) libpthread.so.0 => /lib64/libpthread.so.0
(0x00007fd96d400000) libcrypt.so.1 => /lib64/libcrypt.so.1
(0x00007fd96d1c8000) libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fd96cf67000) libssl.so.10 => /lib64/libssl.so.10 (0x00007fd96ccf9000) libcrypto.so.10 => /lib64/libcrypto.so.10
(0x00007fd96c90e000) libz.so.1 => /lib64/libz.so.1 (0x00007fd96c6f8000) libprofiler.so.0 => /lib64/libprofiler.so.0
(0x00007fd96c4e4000) libc.so.6 => /lib64/libc.so.6 (0x00007fd96c122000) ...
The ldd(list dynamic dependencies) command is included in the glibc-common package on CentOS.
推薦閱讀
- Apache ZooKeeper Essentials
- 微信公眾平臺(tái)與小程序開(kāi)發(fā):從零搭建整套系統(tǒng)
- Getting started with Google Guava
- 新一代通用視頻編碼H.266/VVC:原理、標(biāo)準(zhǔn)與實(shí)現(xiàn)
- 認(rèn)識(shí)編程:以Python語(yǔ)言講透編程的本質(zhì)
- ASP.NET Core 2 and Vue.js
- HTML5+CSS3網(wǎng)站設(shè)計(jì)教程
- R的極客理想:工具篇
- Scala編程實(shí)戰(zhàn)(原書(shū)第2版)
- Visual C++開(kāi)發(fā)入行真功夫
- 時(shí)空數(shù)據(jù)建模及其應(yīng)用
- Tableau Desktop可視化高級(jí)應(yīng)用
- C#面向?qū)ο蟪绦蛟O(shè)計(jì)(第2版)
- Visual C++開(kāi)發(fā)寶典
- HTML5游戲開(kāi)發(fā)實(shí)戰(zhàn)