{"id":5424,"date":"2020-08-14T15:42:35","date_gmt":"2020-08-14T07:42:35","guid":{"rendered":"http:\/\/39.97.231.10\/?p=5424"},"modified":"2020-08-14T15:42:35","modified_gmt":"2020-08-14T07:42:35","slug":"linux-%e9%80%9a%e8%bf%87fpm%e5%ae%9a%e5%88%b6rpm%e5%8c%85","status":"publish","type":"post","link":"http:\/\/www.weijing.co\/?p=5424","title":{"rendered":"Linux \u901a\u8fc7FPM\u5b9a\u5236RPM\u5305"},"content":{"rendered":"<div>\n<div>1.1 \u5feb\u901f\u90e8\u7f72\u65b9\u6848<\/div>\n<\/div>\n<div>\n<div id=\\\"cnblogs_post_body\\\">\n\u5f53\u6709 100 \u53f0\u5df2\u7ecf\u5b89\u88c5\u597d\u7cfb\u7edf\u7684\u670d\u52a1\u5668\uff0c\u7136\u540e\u8ba9\u4f18\u5316\uff0c\u8ba9\u4f60\u63d0\u51fa\u4e00\u4e2a\u5feb\u901f\u90e8\u7f72\u65b9\u6848\u3002<br \/>\n1.tar\u00a0\u6253\u5305\u00a0\u5148\u7f16\u8bd1\u5b89\u88c5\u00a0\u6253\u5305&#8211;\u300b\u5206\u53d1&#8211;\u300b\u89e3\u5305(\u6bd4\u5982\u00a0mysql\u00a0\u6253\u5305\u540e\u76f4\u63a5\u5c31\u53ef\u4ee5\u4f7f\u7528<br \/>\n2.SaltStack\uff0cpuppet\uff0cansible<br \/>\n3.\u5b9a\u5236\u00a0rpm yum\u00a0\u4ed3\u5e93\u00a0yum\u00a0\u5b89\u88c5<br \/>\n4.openstack\u00a0\u865a\u62df\u673a\u955c\u50cf\u548c\u00a0docker\u00a0\u5bb9\u5668\u5206\u53d1<\/p>\n<h2 id=\\\"auto-id-1\\\">1.2\u00a0\u56de\u987e\u4e0b\u5b89\u88c5\u8f6f\u4ef6\u7684\u4e09\u79cd\u65b9\u5f0f\uff1a<\/h2>\n<p>1\u3001\u7f16\u8bd1\u5b89\u88c5\u8f6f\u4ef6\uff0c\u4f18\u70b9\u662f\u53ef\u4ee5\u5b9a\u5236\u5316\u5b89\u88c5\u76ee\u5f55\u3001\u6309\u9700\u5f00\u542f\u529f\u80fd\u7b49\uff0c\u7f3a\u70b9\u662f\u9700\u8981\u67e5\u627e\u5e76\u5b9e\u9a8c\u51fa\u9002\u5408\u7684\u7f16\u8bd1\u53c2\u6570\uff0c\u8bf8\u5982MySQL\u4e4b\u7c7b\u7684\u8f6f\u4ef6\u7f16\u8bd1\u8017\u65f6\u8fc7\u957f\u3002<br \/>\n2\u3001yum\u5b89\u88c5\u8f6f\u4ef6\uff0c\u4f18\u70b9\u662f\u5168\u81ea\u52a8\u5316\u5b89\u88c5\uff0c\u4e0d\u9700\u8981\u4e3a\u4f9d\u8d56\u95ee\u9898\u53d1\u6101\u4e86\uff0c\u7f3a\u70b9\u662f\u81ea\u4e3b\u6027\u592a\u5dee\uff0c\u8f6f\u4ef6\u7684\u529f\u80fd\u3001\u5b58\u653e\u4f4d\u7f6e\u90fd\u5df2\u7ecf\u56fa\u5b9a\u597d\u4e86\uff0c\u4e0d\u6613\u53d8\u66f4\u3002<br \/>\n===&gt;\u5982\u679c\u4f60\u73b0\u5728\u8fd8\u4e3a\u662f\u4f7f\u7528\u7f16\u8bd1\u5b89\u88c5\u8f6f\u4ef6\u8fd8\u662f\u4f7f\u7528yum\u5b89\u88c5\u8f6f\u4ef6\u53d1\u6101\uff0c\u90a3\u4f60\u5c31out\u4e86\u3002<br \/>\n3\u3001\u7f16\u8bd1\u6e90\u7801\uff0c\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u505a\u6210\u5b9a\u5236RPM\u5305\u2013&gt;\u642d\u5efa\u5185\u7f51yum\u4ed3\u5e93\u2013yum\u5b89\u88c5\u3002\u7ed3\u5408\u524d\u4e24\u8005\u7684\u4f18\u70b9\uff0c\u6682\u672a\u53d1\u73b0\u4ec0\u4e48\u7f3a\u70b9\u3002\u53ef\u80fd\u7684\u7f3a\u70b9\u5c31\u662fRPM\u5305\u7684\u901a\u7528\u6027\u5dee\uff0c\u53ea\u80fd\u9002\u7528\u4e8e\u672c\u516c\u53f8\u7684\u73af\u5883\u3002\u53e6\u5916\u4e00\u822c\u4eba\u4e0d\u4f1a\u5b9a\u5236RPM\u5305\u3002\u8fd9\u662f\u4e2d\u5927\u578b\u4e92\u8054\u7f51\u4f01\u4e1a\u8fd0\u7ef4\u81ea\u52a8\u5316\u7684\u5fc5\u8981\u6280\u80fd\u3002\u8fd9\u91cc\u4e5f\u4e0d\u4ecb\u7ecdrpm\u7684\u6982\u5ff5\uff0c\u60f3\u4e86\u89e3\u7684\u670b\u53cb\u53ef\u4ee5\u67e5\u770bhttp:\/\/www.ibm.com\/developerworks\/cn\/linux\/l-rpm\/\u3002<\/p>\n<h2 id=\\\"auto-id-2\\\">1.3 FPM\u6253\u5305\u5de5\u5177<\/h2>\n<p>FPM\u7684\u4f5c\u8005\u662fjordansissel<br \/>\nFPM\u7684github\uff1ahttps:\/\/github.com\/jordansissel\/fpm<br \/>\nFPM\u529f\u80fd\u7b80\u5355\u8bf4\u5c31\u662f\u5c06\u4e00\u79cd\u7c7b\u578b\u7684\u5305\u8f6c\u6362\u6210\u53e6\u4e00\u79cd\u7c7b\u578b\u3002<\/p>\n<h3 id=\\\"auto-id-3\\\">1.3.1\u00a0\u652f\u6301\u7684\u6e90\u7c7b\u578b\u5305<\/h3>\n<table border=\\\"1\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\">\n<tbody>\n<tr>\n<td valign=\\\"top\\\" width=\\\"208\\\">\n<p align=\\\"center\\\">\u7c7b\u578b<\/p>\n<\/td>\n<td valign=\\\"top\\\" width=\\\"489\\\">\n<p align=\\\"center\\\">\u8bf4\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"208\\\">dir<\/td>\n<td valign=\\\"top\\\" width=\\\"489\\\">\u5c06\u76ee\u5f55\u6253\u5305\u6210\u6240\u9700\u8981\u7684\u7c7b\u578b\uff0c\u53ef\u4ee5\u7528\u4e8e\u6e90\u7801\u7f16\u8bd1\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"208\\\">rpm<\/td>\n<td valign=\\\"top\\\" width=\\\"489\\\">\u5bf9rpm\u8fdb\u884c\u8f6c\u6362<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"208\\\">gem<\/td>\n<td valign=\\\"top\\\" width=\\\"489\\\">\u5bf9rubygem\u5305\u8fdb\u884c\u8f6c\u6362<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"208\\\">python<\/td>\n<td valign=\\\"top\\\" width=\\\"489\\\">\u5c06python\u6a21\u5757\u6253\u5305\u6210\u76f8\u5e94\u7684\u7c7b\u578b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\\\"auto-id-4\\\">1.3.2\u00a0\u652f\u6301\u7684\u76ee\u6807\u7c7b\u578b\u5305<\/h3>\n<table border=\\\"1\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\">\n<tbody>\n<tr>\n<td valign=\\\"top\\\" width=\\\"208\\\">\n<p align=\\\"center\\\">\u7c7b\u578b<\/p>\n<\/td>\n<td valign=\\\"top\\\" width=\\\"489\\\">\n<p align=\\\"center\\\">\u8bf4\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"208\\\">rpm<\/td>\n<td valign=\\\"top\\\" width=\\\"489\\\">\u8f6c\u6362\u4e3arpm\u5305<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"208\\\">deb<\/td>\n<td valign=\\\"top\\\" width=\\\"489\\\">\u8f6c\u6362\u4e3adeb\u5305<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"208\\\">solaris<\/td>\n<td valign=\\\"top\\\" width=\\\"489\\\">\u8f6c\u6362\u4e3asolaris\u5305<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"208\\\">puppet<\/td>\n<td valign=\\\"top\\\" width=\\\"489\\\">\u8f6c\u6362\u4e3apuppet\u6a21\u5757<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\\\"auto-id-5\\\">1.4 FPM\u7684\u5b89\u88c5\u4e0e\u4f7f\u7528<\/h2>\n<h3 id=\\\"auto-id-6\\\">1.4.1\u00a0\u5b89\u88c5FPM\u5de5\u5177<\/h3>\n<p>fpm\u662fruby\u5199\u7684\uff0c\u56e0\u6b64\u7cfb\u7edf\u73af\u5883\u9700\u8981ruby\uff0c\u4e14ruby\u7248\u672c\u53f7\u5927\u4e8e1.8.5\u3002<br \/>\n#\u00a0\u5b89\u88c5ruby\u6a21\u5757<\/p>\n<div>\n<div>\n<div id=\\\"highlighter_322215\\\">\n<table border=\\\"0\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<\/td>\n<td>\n<div>\n<div>yum -y\u00a0install\u00a0ruby rubygems ruby-devel<\/div>\n<div><\/div>\n<div>[root@test\u00a0~]# rpm -qa ruby rubygems ruby-devel<\/div>\n<div>ruby-1.8.7.374-5.el6.x86_64<\/div>\n<div>ruby-devel-1.8.7.374-5.el6.x86_64<\/div>\n<div>rubygems-1.3.7-5.el6.noarch<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>#\u00a0\u67e5\u770b\u5f53\u524d\u4f7f\u7528\u7684rubygems\u4ed3\u5e93<\/p>\n<div>\n<div>\n<div id=\\\"highlighter_657355\\\">\n<table border=\\\"0\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>gem sources list<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>#\u00a0\u6dfb\u52a0\u963f\u91cc\u4e91\u7684Rubygems\u4ed3\u5e93\uff0c\u5916\u56fd\u7684\u6e90\u6162\uff0c\u79fb\u9664\u539f\u751f\u7684Ruby\u4ed3\u5e93<\/p>\n<div>\n<div>\n<div id=\\\"highlighter_832213\\\">\n<table border=\\\"0\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div>gem sources -a http:\/\/mirrors.aliyun.com\/rubygems\/<\/div>\n<div>gem sources &#8211;remove http:\/\/rubygems.org\/<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>#\u00a0\u5b89\u88c5fpm\uff0cgem\u4ecerubygem\u4ed3\u5e93\u5b89\u88c5\u8f6f\u4ef6\u7c7b\u4f3cyum\u4eceyum\u4ed3\u5e93\u5b89\u88c5\u8f6f\u4ef6\u3002\u9996\u5148\u5b89\u88c5\u4f4e\u7248\u672c\u7684json\uff0c\u9ad8\u7248\u672c\u7684json\u9700\u8981ruby2.0\u4ee5\u4e0a\uff0c\u7136\u540e\u5b89\u88c5\u4f4e\u7248\u672c\u7684fpm\uff0c\u591f\u7528\u3002<\/p>\n<div>\n<div>\n<div id=\\\"highlighter_989724\\\">\n<table border=\\\"0\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div>gem\u00a0install\u00a0json -v\u00a01.8.3<\/div>\n<div>gem\u00a0install\u00a0fpm -v\u00a01.3.3<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>#\u00a0\u4e0a\u9762\u76842\u6b65\u5b89\u88c5\u4ec5\u9002\u5408CentOS6\u7cfb\u7edf\uff0cCentOS7\u7cfb\u7edf\u4e00\u6b65\u641e\u5b9a\uff0c\u5373gem install fpm<\/p>\n<h3 id=\\\"auto-id-7\\\">1.4.2 FPM\u5de5\u5177\u5e38\u7528\u53c2\u6570<\/h3>\n<table border=\\\"1\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\">\n<tbody>\n<tr>\n<td valign=\\\"top\\\" width=\\\"170\\\">\n<p align=\\\"center\\\">\u53c2\u6570<\/p>\n<\/td>\n<td valign=\\\"top\\\" width=\\\"527\\\">\n<p align=\\\"center\\\">\u53c2\u6570\u8bf4\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"170\\\">-s<\/td>\n<td valign=\\\"top\\\" width=\\\"527\\\">\u6307\u5b9a\u6e90\u7c7b\u578b<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"170\\\">-t<\/td>\n<td valign=\\\"top\\\" width=\\\"527\\\">\u6307\u5b9a\u76ee\u6807\u7c7b\u578b\uff0c\u5373\u60f3\u8981\u5236\u4f5c\u4e3a\u4ec0\u4e48\u5305<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"170\\\">-n<\/td>\n<td valign=\\\"top\\\" width=\\\"527\\\">\u6307\u5b9a\u5305\u7684\u540d\u5b57<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"170\\\">-v<\/td>\n<td valign=\\\"top\\\" width=\\\"527\\\">\u6307\u5b9a\u5305\u7684\u7248\u672c\u53f7<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"170\\\">-C<\/td>\n<td valign=\\\"top\\\" width=\\\"527\\\">\u6307\u5b9a\u6253\u5305\u7684\u76f8\u5bf9\u8def\u5f84<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"170\\\">-d<\/td>\n<td valign=\\\"top\\\" width=\\\"527\\\">\u6307\u5b9a\u4f9d\u8d56\u4e8e\u54ea\u4e9b\u5305<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"170\\\">-f<\/td>\n<td valign=\\\"top\\\" width=\\\"527\\\">\u7b2c\u4e8c\u6b21\u6253\u5305\u65f6\u76ee\u5f55\u4e0b\u5982\u679c\u6709\u540c\u540d\u5b89\u88c5\u5305\u5b58\u5728\uff0c\u5219\u8986\u76d6\u5b83<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"170\\\">-p<\/td>\n<td valign=\\\"top\\\" width=\\\"527\\\">\u8f93\u51fa\u7684\u5b89\u88c5\u5305\u7684\u76ee\u5f55\uff0c\u4e0d\u60f3\u653e\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u5c31\u9700\u8981\u6307\u5b9a<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"170\\\">&#8211;post-install<\/td>\n<td valign=\\\"top\\\" width=\\\"527\\\">\u8f6f\u4ef6\u5305\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\u6240\u8981\u8fd0\u884c\u7684\u811a\u672c\uff1b\u540c&#8211;after-install<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"170\\\">&#8211;pre-install<\/td>\n<td valign=\\\"top\\\" width=\\\"527\\\">\u8f6f\u4ef6\u5305\u5b89\u88c5\u5b8c\u6210\u4e4b\u524d\u6240\u8981\u8fd0\u884c\u7684\u811a\u672c\uff1b\u540c&#8211;before-install<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"170\\\">&#8211;post-uninstall<\/td>\n<td valign=\\\"top\\\" width=\\\"527\\\">\u8f6f\u4ef6\u5305\u5378\u8f7d\u5b8c\u6210\u4e4b\u540e\u6240\u8981\u8fd0\u884c\u7684\u811a\u672c\uff1b\u540c&#8211;after-remove<\/td>\n<\/tr>\n<tr>\n<td valign=\\\"top\\\" width=\\\"170\\\">&#8211;pre-uninstall<\/td>\n<td valign=\\\"top\\\" width=\\\"527\\\">\u8f6f\u4ef6\u5305\u5378\u8f7d\u5b8c\u6210\u4e4b\u524d\u6240\u8981\u8fd0\u884c\u7684\u811a\u672c\uff1b\u540c&#8211;before-remove<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u81f3\u6b64\uff0cFPM\u5de5\u5177\u5b89\u88c5\u5b8c\u6210\u3002<\/p>\n<h2 id=\\\"auto-id-8\\\">1.5\u00a0\u3010\u5b9e\u4f8b\u3011\u5b9a\u5236nginx\u7684RPM\u5305<\/h2>\n<h3 id=\\\"auto-id-9\\\">1.5.1\u00a0\u5b89\u88c5nginx\uff08\u4e00\u952e\u5316\u811a\u672c\uff09<\/h3>\n<div>\n<div>\n<div id=\\\"highlighter_926702\\\">\n<table border=\\\"0\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<div>7<\/div>\n<div>8<\/div>\n<div>9<\/div>\n<div>10<\/div>\n<div>11<\/div>\n<div>12<\/div>\n<\/td>\n<td>\n<div>\n<div>yum\u00a0install\u00a0-y pcre-devel openssl-devel<\/div>\n<div>mkdir\u00a0-p\u00a0\/server\/tools<\/div>\n<div>cd\u00a0\/server\/tools<\/div>\n<div>wget -q http:\/\/nginx.org\/download\/nginx-1.10.2.tar.gz<\/div>\n<div>ls\u00a0-l nginx-1.10.2.tar.gz<\/div>\n<div>useradd\u00a0www -s\u00a0\/sbin\/nologin\u00a0-M<\/div>\n<div>tar\u00a0xf nginx-1.10.2.tar.gz<\/div>\n<div>cd\u00a0nginx-1.10.2<\/div>\n<div>.\/configure\u00a0\u00a0&#8211;user=www &#8211;group=www &#8211;prefix=\/application\/nginx-1.10.2 &#8211;with-http_stub_status_module\u00a0 &#8211;with-http_ssl_module<\/div>\n<div>make<\/div>\n<div>make\u00a0install<\/div>\n<div>ln\u00a0-s\u00a0\/application\/nginx-1.10.2\u00a0\/application\/nginx<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<h3 id=\\\"auto-id-10\\\">1.5.2\u00a0\u7f16\u5199\u811a\u672c(for &#8211;post-install)<\/h3>\n<div>\n<div>\n<div id=\\\"highlighter_941259\\\">\n<table border=\\\"0\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<\/td>\n<td>\n<div>\n<div>[root@test\u00a0~]# cd \/server\/scripts\/<\/div>\n<div>[root@test\u00a0scripts]# vim nginx_install_devel.sh<\/div>\n<div>#!\/bin\/bash<\/div>\n<div>useradd\u00a0-M -s\u00a0\/sbin\/nologin\u00a0www -u 666<\/div>\n<div>ln\u00a0-s\u00a0\/application\/nginx\/sbin\/*\u00a0\/usr\/local\/sbin\/<\/div>\n<div>ln\u00a0-sf\u00a0\/application\/nginx-1.10.2\u00a0\u00a0\u00a0\/application\/nginx<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<h3 id=\\\"auto-id-11\\\">1.5.3\u00a0\u6253\u5305-\u5236\u4f5crpm\u5305<\/h3>\n<p>\u6ce8\u610f\uff1a\u5728\u8fdb\u884c\u6253\u5305\u7684\u65f6\u5019\u8981\u5c06\u8bbf\u95ee\u505c\u6b62<\/p>\n<div>\n<pre>killall nginx<\/pre>\n<\/div>\n<div>\n<pre>[root@test ~]#  fpm -s dir -t rpm -n nginx -v 1.10.2 -d \\'pcre-devel,openssl-devel\\' --post-install \/server\/scripts\/nginx_install_devel.sh -f \/application\/nginx-1.10.2\/\nno value for epoch is set, defaulting to nil {:level=&gt;:warn}\nno value for epoch is set, defaulting to nil {:level=&gt;:warn}\nCreated package {:path=&gt;\\\"nginx-1.10.2-1.x86_64.rpm\\\"}<\/pre>\n<\/div>\n<h3 id=\\\"auto-id-12\\\">1.5.4\u00a0\u5b89\u88c5rpm\u5305<\/h3>\n<p>\u63a8\u8350\u4f7f\u7528yum\u00a0\u5b89\u88c5<\/p>\n<div>\n<div>\n<div id=\\\"highlighter_820889\\\">\n<table border=\\\"0\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>yum -y localinstall\u00a0 nginx-1.10.2-1.x86_64.rpm<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u81ea\u52a8\u5148\u5b89\u88c5rpm\u5305\u7684\u4f9d\u8d56\uff0c\u7136\u540e\u518d\u5b89\u88c5rpm\u5305\u3002\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1.1 \u5feb\u901f\u90e8\u7f72\u65b9\u6848 \u5f53\u6709 100 \u53f0\u5df2\u7ecf\u5b89\u88c5\u597d\u7cfb\u7edf\u7684\u670d\u52a1\u5668\uff0c\u7136\u540e\u8ba9\u4f18\u5316\uff0c\u8ba9\u4f60\u63d0\u51fa\u4e00\u4e2a\u5feb\u901f\u90e8\u7f72\u65b9\u6848\u3002 1.ta &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"http:\/\/www.weijing.co\/?p=5424\"> <span class=\"screen-reader-text\">Linux \u901a\u8fc7FPM\u5b9a\u5236RPM\u5305<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[102,124],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"mailpoet_newsletter_max":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false,"shop_catalog":false,"shop_single":false,"shop_thumbnail":false},"uagb_author_info":{"display_name":"weijing","author_link":"http:\/\/www.weijing.co\/?author=4"},"uagb_comment_info":0,"uagb_excerpt":"1.1 \u5feb\u901f\u90e8\u7f72\u65b9\u6848 \u5f53\u6709 100 \u53f0\u5df2\u7ecf\u5b89\u88c5\u597d\u7cfb\u7edf\u7684\u670d\u52a1\u5668\uff0c\u7136\u540e\u8ba9\u4f18\u5316\uff0c\u8ba9\u4f60\u63d0\u51fa\u4e00\u4e2a\u5feb\u901f\u90e8\u7f72\u65b9\u6848\u3002 1.ta&hellip;","_links":{"self":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/5424"}],"collection":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5424"}],"version-history":[{"count":0,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/5424\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5424"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}