顯示頁面 舊版 反向連結 本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。 ====== YUM ====== <code bash> yum search epel yum install epel-release yum list glibc yum --setopt=tsflags=noscripts remove xxx rpm -e --noscripts xxx yum clean all && rpm --rebuilddb package-cleanup --problems </code> ====== RPM Build ====== <code bash> # setup working directories rpmdev-setuptree # download source defined in spec file spectool -g -R SPECS/package.spec # build package rpmbuild -ba SPECS/package.spec # show build script of a package rpm -qpl --scripts RPMS/x86_64/package-0.1.0-1.el6.x86_64.rpm </code> ref: https://fedoraproject.org/wiki/How_to_create_a_GNU_Hello_RPM_package ====== SELinux ====== ===== 檢查有無啟動 ===== <code> getenforce </code> ===== 暫時關閉 ===== <code> setenforce 0 </code> ===== 永久關閉 ===== 編輯 /etc/sysconfig/selinux 設定為 SELINUX=disabled ===== 允許 apache reverse proxy ===== <code> setsebool httpd_can_network_connect 1 </code>