差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
rhel [2016/08/27 00:03] jz |
rhel [2016/12/04 23:20] (目前版本) jz |
||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== YUM ====== | ||
+ | |||
<code bash> | <code bash> | ||
yum search epel | yum search epel | ||
行 13: | 行 15: | ||
====== RPM Build ====== | ====== RPM Build ====== | ||
- | |||
- | https://fedoraproject.org/wiki/How_to_create_a_GNU_Hello_RPM_package | ||
<code bash> | <code bash> | ||
+ | # setup working directories | ||
rpmdev-setuptree | rpmdev-setuptree | ||
- | rpmbuild -ba SPECS/caddy.spec | + | |
- | rpm -qpl --scripts RPMS/x86_64/caddy-0.9.0-1.el6.x86_64.rpm | + | # 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> | </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> | ||