CentOS 添加库的搜索路径 在/etc/ld.so.conf.d 下新建一个.conf文件 nano searchlib.conf 将搜索路径一行一个加入 /home/test /home/test2 生效 sbin/ldconfig