当我遵循CentOS中的zfs安装指南时
我发现它应该在源代码构建完成后使用ldconfig
但是当我使用zfs命令时,它告诉我,我应该键入命令:/sbin/modprobe zfs
那么,我对ldconfig和modprobe之间有什么不同感兴趣,它是用于用户空间进程的ldconfig,还是内核空间进程的for探测?
发布于 2020-06-21 16:14:17
ldconfig和modprobe是两个截然不同的程序
ldconfig本质上缓存所有共享库,所以当一个程序在运行时需要它时,它就不必搜索文件系统来找到共享库。从手册页:
ldconfig creates the necessary links and cache to the most recent shared
libraries found in the directories specified on the command line...
The cache is used by the run-time linker, ld.so or ld-linux.so. ldconfig checks
the header and filenames of the libraries it encounters when determining which
versions should have their links updated.modprobe从linux内核中添加或删除一个模块。模块基本上是可以插入内核或插入内核之外的代码片段。
是用于用户空间进程的ldconfig,还是内核空间进程的for探测?
共享库由运行时程序使用,而模块是可移动的内核代码片段.
https://stackoverflow.com/questions/62500988
复制相似问题