這是本文件的舊版!


YUM

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

RPM Build

https://fedoraproject.org/wiki/How_to_create_a_GNU_Hello_RPM_package

rpmdev-setuptree
rpmbuild -ba SPECS/caddy.spec
rpm -qpl --scripts RPMS/x86_64/caddy-0.9.0-1.el6.x86_64.rpm

SELinux

檢查有無啟動

getenforce

暫時關閉

setenforce 0

永久關閉

編輯 /etc/sysconfig/selinux 設定為 SELINUX=disabled

允許 apache reverse proxy
setsebool httpd_can_network_connect 1