1.二進制程序的訪問方法 vim /etc/profile.d/apache.sh PATH=/usr/local/apache/bin:/usr/local/apache/sbin=$PATH export PATH 2.頭文件輸出給系統 ln -sv /sur/local/apache/include /usr/include/httpd 3.庫文件輸出 vim /etc/ld.so.conf.d/httpd.conf /usr/local/apache/bin ldconfig -v 重新生成庫文件路徑緩存 4.導出man文件 vim /etc/man.config 添加 MANPATH /usr/local/apache/man 5.編譯二進制包 rpmbuild --bb name-version-release.src.rpm