{"id":131,"date":"2018-03-12T11:06:08","date_gmt":"2018-03-12T03:06:08","guid":{"rendered":"http:\/\/www.max-shu.com\/blog\/?p=131"},"modified":"2018-03-12T11:06:08","modified_gmt":"2018-03-12T03:06:08","slug":"%e7%ae%80%e5%8d%95%e5%8c%96%e7%9a%84ganglia%e5%ae%89%e8%a3%85%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"http:\/\/www.max-shu.com\/blog\/?p=131","title":{"rendered":"\u7b80\u5355\u5316\u7684ganglia\u5b89\u88c5\u811a\u672c"},"content":{"rendered":"<p>\u652f\u6301rhel5.x \uff08centos5.x)\u548crhel6.x\uff1a<\/p>\n<p>#!\/bin\/bash<\/p>\n<p>function UsageHelp()<br \/>\n{<br \/>\necho<br \/>\necho &#8220;Usage: $1 [-h][&lt;[server][client]&gt;]&#8221;<br \/>\necho &#8220;example: $1 server&#8221;<br \/>\necho<br \/>\necho &#8220;Install ganglia to host.&#8221;<br \/>\necho<br \/>\necho &#8220;-h:\u00a0\u00a0\u00a0\u00a0 Show help information.&#8221;<br \/>\necho &#8220;server: Install server to host.&#8221;<br \/>\necho &#8220;client: Install client to host.&#8221;<br \/>\necho<br \/>\n}<\/p>\n<p>if [ $# -gt 1 ] ; then<br \/>\nUsageHelp $0<br \/>\nexit 0<br \/>\nfi<br \/>\nif [ $# -lt 1 ] ; then<br \/>\nUsageHelp $0<br \/>\nexit 0<br \/>\nfi<br \/>\ntype=$1<br \/>\nif [ &#8220;$type&#8221; != &#8220;server&#8221; ] ; then<br \/>\nif [ &#8220;$type&#8221; != &#8220;client&#8221; ] ; then<br \/>\nUsageHelp $0<br \/>\nexit 0<br \/>\nfi<br \/>\nfi<\/p>\n<p>#################### GCC ######################################<br \/>\nyesOrNo=&#8221;y&#8221;<br \/>\nread -t 5 -p &#8221; ===&gt; gcc installed? (y\/n, default is &#8216;y&#8217;) &#8221; yesOrNo<br \/>\nif [ $? -ne 0 ] ; then<br \/>\nyesOrNo=&#8221;y&#8221;<br \/>\nfi<br \/>\nif [ &#8220;$yesOrNo&#8221; == &#8220;&#8221; ] ; then<br \/>\nyesOrNo=&#8221;y&#8221;<br \/>\nfi<br \/>\nif [ &#8220;$yesOrNo&#8221; == &#8220;n&#8221; ] ; then<br \/>\necho &#8220;ERROR: gcc isn&#8217;t installed.&#8221;<br \/>\nexit -1<br \/>\nfi<br \/>\n#################### X11 ######################################<br \/>\nif [ &#8220;$type&#8221; == &#8220;server&#8221; ] ; then<br \/>\nyesOrNo=&#8221;y&#8221;<br \/>\nread -t 5 -p &#8221; ===&gt; X11 installed? (y\/n, default is &#8216;y&#8217;) &#8221; yesOrNo<br \/>\nif [ $? -ne 0 ] ; then<br \/>\nyesOrNo=&#8221;y&#8221;<br \/>\nfi<br \/>\nif [ &#8220;$yesOrNo&#8221; == &#8220;&#8221; ] ; then<br \/>\nyesOrNo=&#8221;y&#8221;<br \/>\nfi<br \/>\nif [ &#8220;$yesOrNo&#8221; == &#8220;n&#8221; ] ; then<br \/>\necho &#8220;ERROR: X11 isn&#8217;t installed.&#8221;<br \/>\nexit -1<br \/>\nfi<br \/>\nfi<br \/>\nsleep 2<\/p>\n<p>#################### APR ######################################<br \/>\necho &#8220;Install APR ==========================================&gt;&#8221;<br \/>\nif [ ! -f &#8220;\/usr\/local\/apr\/bin\/apr-1-config&#8221; ] ; then<br \/>\nif [ -f &#8220;apr-1.4.5.tar.gz&#8221; ] ; then<br \/>\nset -x<br \/>\ntar -zxvf apr-1.4.5.tar.gz<br \/>\ncd apr-1.4.5<br \/>\n.\/configure<br \/>\nmake clean<br \/>\nmake<br \/>\nmake install<br \/>\ncd ..<br \/>\nset +x<br \/>\nelse<br \/>\necho &#8220;ERROR: apr-1.4.5.tar.gz doesn&#8217;t exist.&#8221;<br \/>\ncd ..<br \/>\nexit -1<br \/>\nfi<br \/>\nsleep 5<br \/>\nfi<\/p>\n<p>#################### APR-UTIL ######################################<br \/>\necho &#8220;Install APR-UTIL ==========================================&gt;&#8221;<br \/>\nif [ ! -f &#8220;\/usr\/local\/apr\/bin\/apu-1-config&#8221; ] ; then<br \/>\nif [ -f &#8220;apr-util-1.3.12.tar.gz&#8221; ] ; then<br \/>\nset -x<br \/>\ntar -zxvf apr-util-1.3.12.tar.gz<br \/>\ncd apr-util-1.3.12<br \/>\n.\/configure &#8211;with-apr=\/usr\/local\/apr\/bin\/apr-1-config<br \/>\nmake clean<br \/>\nmake<br \/>\nmake install<br \/>\ncd ..<br \/>\nset +x<br \/>\nelse<br \/>\necho &#8220;ERROR: apr-util-1.3.12.tar.gz doesn&#8217;t exist.&#8221;<br \/>\ncd ..<br \/>\nexit -1<br \/>\nfi<br \/>\nsleep 5<br \/>\nfi<\/p>\n<p>#################### CONFUSE ######################################<br \/>\necho &#8220;Install CONFUSE ==========================================&gt;&#8221;<br \/>\nif [ ! -f &#8220;\/usr\/local\/include\/confuse.h&#8221; ] ; then<br \/>\nif [ -f &#8220;confuse-2.7.tar.gz&#8221; ] ; then<br \/>\nset -x<br \/>\ntar -zxvf confuse-2.7.tar.gz<br \/>\ncd confuse-2.7<br \/>\n.\/configure &#8211;with-pic<br \/>\nmake clean<br \/>\nmake<br \/>\nmake install<br \/>\ncd ..<br \/>\nset +x<br \/>\nelse<br \/>\necho &#8220;ERROR: confuse-2.7.tar.gz doesn&#8217;t exist.&#8221;<br \/>\ncd ..<br \/>\nexit -1<br \/>\nfi<br \/>\nsleep 5<br \/>\nfi<\/p>\n<p>#################### EXPAT ######################################<br \/>\necho &#8220;Install EXPAT ==========================================&gt;&#8221;<br \/>\nif [ ! -f &#8220;\/usr\/local\/include\/expat.h&#8221; ] ; then<br \/>\nif [ -f &#8220;expat-2.0.1.tar.gz&#8221; ] ; then<br \/>\nset -x<br \/>\ntar -zxvf expat-2.0.1.tar.gz<br \/>\ncd expat-2.0.1<br \/>\n.\/configure<br \/>\nmake clean<br \/>\nmake<br \/>\nmake install<br \/>\ncd ..<br \/>\nset +x<br \/>\nelse<br \/>\necho &#8220;ERROR: expat-2.0.1.tar.gz doesn&#8217;t exist.&#8221;<br \/>\ncd ..<br \/>\nexit -1<br \/>\nfi<br \/>\nsleep 5<br \/>\nfi<\/p>\n<p>#################### XML-PARSER ######################################<br \/>\necho &#8220;Install XML-PARSER ==========================================&gt;&#8221;<br \/>\nif [ ! -d &#8220;\/usr\/local\/lib64\/perl5\/XML\/Parser&#8221; ] ; then<br \/>\nif [ ! -d &#8220;\/usr\/lib64\/perl5\/site_perl\/5.8.8\/x86_64-linux-thread-multi\/auto\/XML\/Parser&#8221; ] ; then<br \/>\nif [ -f &#8220;XML-Parser-2.41.tar.gz&#8221; ] ; then<br \/>\nset -x<br \/>\ntar -zxvf XML-Parser-2.41.tar.gz<br \/>\ncd XML-Parser-2.41<br \/>\nperl Makefile.PL<br \/>\nmake<br \/>\nmake install<br \/>\ncd ..<br \/>\nset +x<br \/>\nelse<br \/>\necho &#8220;ERROR: XML-Parser-2.41.tar.gz doesn&#8217;t exist.&#8221;<br \/>\ncd ..<br \/>\nexit -1<br \/>\nfi<br \/>\nsleep 5<br \/>\nfi<br \/>\nfi<\/p>\n<p>#################### INTLTOOL ######################################<br \/>\necho &#8220;Install INTLTOOL ==========================================&gt;&#8221;<br \/>\nif [ ! -f &#8220;\/usr\/local\/bin\/intltoolize&#8221; ] ; then<br \/>\nif [ -f &#8220;intltool-0.40.6.tar.gz&#8221; ] ; then<br \/>\nset -x<br \/>\ntar -zxvf intltool-0.40.6.tar.gz<br \/>\ncd intltool-0.40.6<br \/>\n.\/configure<br \/>\nmake clean<br \/>\nmake<br \/>\nmake install<br \/>\ncd ..<br \/>\nset +x<br \/>\nelse<br \/>\necho &#8220;ERROR: intltool-0.40.6.tar.gz doesn&#8217;t exist.&#8221;<br \/>\ncd ..<br \/>\nexit -1<br \/>\nfi<br \/>\nsleep 5<br \/>\nfi<\/p>\n<p>#################### RRDTOOL ######################################<br \/>\nif [ &#8220;$type&#8221; == &#8220;server&#8221; ] ; then<br \/>\necho &#8220;Install RRDTOOL ==========================================&gt;&#8221;<br \/>\nif [ ! -f &#8220;\/usr\/bin\/rrdtool&#8221; ] ; then<br \/>\nif [ -f &#8220;rrdtool-1.4.5.tar.gz&#8221; ] ; then<br \/>\nset -x<br \/>\ntar -zxvf rrdtool-1.4.5.tar.gz<br \/>\ncd rrdtool-1.4.5<br \/>\n.\/configure &#8211;prefix=\/usr\/<br \/>\nmake clean<br \/>\nmake<br \/>\nmake install<br \/>\nwhich rrdtool<br \/>\nldconfig<br \/>\ncd ..<br \/>\nset +x<br \/>\nelse<br \/>\necho &#8220;ERROR: rrdtool-1.4.5.tar.gz doesn&#8217;t exist.&#8221;<br \/>\ncd ..<br \/>\nexit -1<br \/>\nfi<br \/>\nsleep 5<br \/>\nfi<br \/>\nfi<\/p>\n<p>#################### PCRE ######################################<br \/>\necho &#8220;Install PCRE ==========================================&gt;&#8221;<br \/>\nif [ ! -f &#8220;\/usr\/local\/bin\/pcregrep&#8221; ] ; then<br \/>\nif [ -f &#8220;pcre-8.12.tar.gz&#8221; ] ; then<br \/>\nset -x<br \/>\ntar -zxvf pcre-8.12.tar.gz<br \/>\ncd pcre-8.12<br \/>\n.\/configure<br \/>\nmake clean<br \/>\nmake<br \/>\nmake install<br \/>\ncd ..<br \/>\nset +x<br \/>\nelse<br \/>\necho &#8220;ERROR: pcre-8.12.tar.gz doesn&#8217;t exist.&#8221;<br \/>\ncd ..<br \/>\nexit -1<br \/>\nfi<br \/>\nsleep 5<br \/>\nfi<\/p>\n<p>#################### PYTHON ######################################<br \/>\necho &#8220;Install PYTHON ==========================================&gt;&#8221;<br \/>\nif [ ! -f &#8220;\/usr\/local\/python\/lib\/libpython2.7.so&#8221; ] ; then<br \/>\nif [ -f &#8220;Python-2.7.2.tgz&#8221; ] ; then<br \/>\nset -x<br \/>\nrm -f \/usr\/local\/lib\/libpython2.7.a<br \/>\ntar -zxvf Python-2.7.2.tgz<br \/>\ncd Python-2.7.2<br \/>\n.\/configure &#8211;enable-shared &#8211;prefix=\/usr\/local\/python<br \/>\nmake clean<br \/>\nmake<br \/>\nmake install<br \/>\necho \/usr\/local\/python\/lib &gt; \/etc\/ld.so.conf.d\/libpython.conf<br \/>\nldconfig<br \/>\nldconfig -p|grep libpython<br \/>\nldconfig -v|grep libpython<br \/>\nsed -i &#8220;s\/PATH=\/PATH=\\\/usr\\\/local\\\/python\\\/bin:\/&#8221; ~\/.bash_profile<br \/>\n. ~\/.bash_profile<br \/>\nrm -f \/usr\/local\/lib\/libpython2.7.a<br \/>\ncp libpython2.7.a \/usr\/lib\/<br \/>\ncd ..<br \/>\nset +x<br \/>\nelse<br \/>\necho &#8220;ERROR: Python-2.7.2.tgz doesn&#8217;t exist.&#8221;<br \/>\ncd ..<br \/>\nexit -1<br \/>\nfi<br \/>\nsleep 5<br \/>\nfi<\/p>\n<p>#################### GANGLIA ######################################<br \/>\necho &#8220;Install GANGLIA ==========================================&gt;&#8221;<br \/>\nif [ ! -f &#8220;\/usr\/bin\/ganglia-config&#8221; ] ; then<br \/>\nif [ -f &#8220;ganglia-3.1.7.tar.gz&#8221; ] ; then<br \/>\nset -x<br \/>\nservice gmetad stop<br \/>\nservice gmond stop<br \/>\nrm -rf \/var\/lib\/ganglia\/rrds\/*<br \/>\ntar -zxvf ganglia-3.1.7.tar.gz<br \/>\ncd ganglia-3.1.7<br \/>\nif [ &#8220;$type&#8221; == &#8220;server&#8221; ] ; then<br \/>\n.\/configure &#8211;with-gmetad &#8211;enable-gexec &#8211;with-libapr=\/usr\/local\/apr\/bin\/apr-1-config &#8211;sysconfdir=\/etc\/ganglia &#8211;with-python=\/usr\/local\/python<br \/>\nelse<br \/>\n.\/configure &#8211;with-libapr=\/usr\/local\/apr\/bin\/apr-1-config &#8211;sysconfdir=\/etc\/ganglia &#8211;with-python=\/usr\/local\/python<br \/>\nfi<br \/>\nmake clean<br \/>\nsed -i &#8216;s\/LIBS =\/LIBS = -lm -lutil \/&#8217; gmond\/modules\/python\/Makefile<br \/>\nmake<br \/>\nmake install<br \/>\nmkdir \/etc\/ganglia<br \/>\nif [ &#8220;$type&#8221; == &#8220;server&#8221; ] ; then<br \/>\ncd gmetad<br \/>\ncp gmetad.init \/etc\/rc.d\/init.d\/gmetad<br \/>\ncp gmetad.conf \/etc\/ganglia\/gmetad.conf<br \/>\nchkconfig &#8211;add gmetad<br \/>\nchkconfig &#8211;list | grep gmetad<br \/>\nmkdir -p \/var\/lib\/ganglia\/rrds<br \/>\nchown nobody:nobody \/var\/lib\/ganglia\/rrds<br \/>\nsed -i &#8220;s\/data_source \\&#8221;my cluster\\&#8221; localhost\/data_source \\&#8221;CLOUD\\&#8221; 10 localhost\/&#8221; \/etc\/ganglia\/gmetad.conf<br \/>\nsed -i &#8220;s\/# gridname \\&#8221;MyGrid\\&#8221;\/gridname \\&#8221;Hanborq\\&#8221;\/&#8221; \/etc\/ganglia\/gmetad.conf<br \/>\nservice gmetad start<br \/>\nsleep 1<br \/>\ntelnet localhost 8651 | grep &#8220;HOST NAME&#8221;<br \/>\ncd ..<br \/>\nfi<br \/>\ncd gmond<br \/>\ngmond -t &gt; \/etc\/ganglia\/gmond.conf<br \/>\ncp gmond.init \/etc\/rc.d\/init.d\/gmond<br \/>\nchkconfig &#8211;add gmond<br \/>\nchkconfig &#8211;list gmond | grep gmond<br \/>\nsed -i &#8220;s\/user = nobody\/user = root\/&#8221; \/etc\/ganglia\/gmond.conf<br \/>\nsed -i &#8220;s\/name = \\&#8221;unspecified\\&#8221;\/name = \\&#8221;CLOUD\\&#8221;\/&#8221; \/etc\/ganglia\/gmond.conf<br \/>\nservice gmond start<br \/>\nsleep 1<br \/>\ntelnet localhost 8649<br \/>\ncd ..<br \/>\ncd ..<br \/>\nset +x<br \/>\nelse<br \/>\necho &#8220;ERROR: ganglia-3.1.7.tar.gz doesn&#8217;t exist.&#8221;<br \/>\ncd ..<br \/>\nexit -1<br \/>\nfi<br \/>\nsleep 5<br \/>\nfi<\/p>\n<p>if [ &#8220;$type&#8221; == &#8220;server&#8221; ] ; then<br \/>\n#################### OPENSSL ######################################<br \/>\necho &#8220;Install OPENSSL ==========================================&gt;&#8221;<br \/>\nif [ ! -f &#8220;\/usr\/local\/ssl\/lib\/libcrypto.so&#8221; ] ; then<br \/>\nif [ -f &#8220;openssl-1.0.0d.tar.gz&#8221; ] ; then<br \/>\nset -x<br \/>\ntar -zxvf openssl-1.0.0d.tar.gz<br \/>\ncd openssl-1.0.0d<br \/>\n.\/config -fPIC enable-shared<br \/>\nmake clean<br \/>\nmake<br \/>\nmake install<br \/>\necho \/usr\/local\/ssl\/lib &gt; \/etc\/ld.so.conf.d\/libssl.conf<br \/>\nldconfig<br \/>\nldconfig -p|grep libssl<br \/>\nldconfig -v|grep libssl<br \/>\ncd ..<br \/>\nset +x<br \/>\nelse<br \/>\necho &#8220;ERROR: openssl-1.0.0d.tar.gz doesn&#8217;t exist.&#8221;<br \/>\ncd ..<br \/>\nexit -1<br \/>\nfi<br \/>\nsleep 5<br \/>\nfi<\/p>\n<p>#################### APACHE ######################################<br \/>\necho &#8220;Install APACHE ==========================================&gt;&#8221;<br \/>\nif [ ! -f &#8220;\/usr\/local\/httpd\/bin\/httpd&#8221; ] ; then<br \/>\nif [ -f &#8220;httpd-2.2.19.tar.gz&#8221; ] ; then<br \/>\nset -x<br \/>\ntar -zxvf httpd-2.2.19.tar.gz<br \/>\ncd httpd-2.2.19<br \/>\n.\/configure &#8211;prefix=\/usr\/local\/httpd &#8211;with-apr=\/usr\/local\/apr\/bin\/apr-1-config &#8211;with-apr-util=\/usr\/local\/apr\/bin\/apu-1-config &#8211;with-ssl=\/usr\/local\/ssl &#8211;enable-modules=so &#8211;enable-dav &#8211;enable-ssl &#8211;enable-maintainer-mode &#8211;enable-rewrite<br \/>\nmake clean<br \/>\nmake<br \/>\nmake install<br \/>\nsed -i &#8216;\/# LoadModule foo_module\/a\\LoadModule php5_module\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 modules\/libphp5.so\\nAddType application\/x-httpd-php\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 .php .php4 .php3 .phtml\\nAddType\u00a0 application\/x-httpd-php-source\u00a0 .phps&#8217; \/usr\/local\/httpd\/conf\/httpd.conf<br \/>\nsed -i &#8220;s\/DirectoryIndex index.html\/DirectoryIndex index.html index.php\/&#8221; \/usr\/local\/httpd\/conf\/httpd.conf<br \/>\ncd ..<br \/>\nset +x<br \/>\nelse<br \/>\necho &#8220;ERROR: httpd-2.2.19.tar.gz doesn&#8217;t exist.&#8221;<br \/>\ncd ..<br \/>\nexit -1<br \/>\nfi<br \/>\nsleep 5<br \/>\nfi<\/p>\n<p>#################### PHP ######################################<br \/>\necho &#8220;Install PHP ==========================================&gt;&#8221;<br \/>\nif [ ! -f &#8220;\/usr\/local\/php\/bin\/php&#8221; ] ; then<br \/>\nif [ -f &#8220;php-5.3.6.tar.gz&#8221; ] ; then<br \/>\nset -x<br \/>\ntar -zxvf php-5.3.6.tar.gz<br \/>\ncd php-5.3.6<br \/>\n.\/configure &#8211;prefix=\/usr\/local\/php &#8211;with-config-file-path=\/usr\/local\/php &#8211;with-apxs2=\/usr\/local\/httpd\/bin\/apxs &#8211;with-openssl=\/usr\/local\/ssl<br \/>\nmake clean<br \/>\nmake<br \/>\nmake install<br \/>\ncp php.ini-production \/usr\/local\/php\/php.ini<br \/>\nsed -i &#8220;s\/;date.timezone =\/date.timezone = PRC\/&#8221; \/usr\/local\/php\/php.ini<br \/>\ncp libs\/libphp5.so \/usr\/local\/httpd\/modules\/<br \/>\ncd ..<br \/>\nset +x<br \/>\nelse<br \/>\necho &#8220;ERROR: php-5.3.6.tar.gz doesn&#8217;t exist.&#8221;<br \/>\ncd ..<br \/>\nexit -1<br \/>\nfi<br \/>\nsleep 5<br \/>\nfi<\/p>\n<p>#################### Ganglia WEB ######################################<br \/>\necho &#8220;Install Ganglia WEB ==========================================&gt;&#8221;<br \/>\nset -x<br \/>\ncd ganglia-3.1.7<br \/>\nmkdir \/usr\/local\/httpd\/htdocs\/ganglia<br \/>\ncp -a web\/* \/usr\/local\/httpd\/htdocs\/ganglia\/<br \/>\ncd ..<br \/>\nset +x<\/p>\n<p>#################### START APACHE ######################################<br \/>\necho &#8220;Start APACHE ==========================================&gt;&#8221;<br \/>\nset -x<br \/>\n\/usr\/local\/httpd\/bin\/apachectl stop<br \/>\nsleep 3<br \/>\n\/usr\/local\/httpd\/bin\/apachectl start<br \/>\nset +x<\/p>\n<p>fi<\/p>\n<p>#################### SELF Ganglia_io.py ######################################<br \/>\necho &#8220;Install SELF Ganglia_io.py ==========================================&gt;&#8221;<br \/>\nset -x<br \/>\nmkdir \/usr\/lib64\/ganglia\/python_modules<br \/>\n\\cp -f ganglia_io.py \/usr\/lib64\/ganglia\/python_modules\/<br \/>\n\\cp -f ganglia_hadoop_proc.py \/usr\/lib64\/ganglia\/python_modules\/<br \/>\n\\cp -f ganglia_hbase_proc.py \/usr\/lib64\/ganglia\/python_modules\/<br \/>\n\\cp -f ganglia_onest_proc.py \/usr\/lib64\/ganglia\/python_modules\/<br \/>\nmkdir \/etc\/ganglia\/conf.d<br \/>\n\\cp -f ganglia_io.pyconf \/etc\/ganglia\/conf.d\/<br \/>\n\\cp -f ganglia_hadoop_proc.pyconf \/etc\/ganglia\/conf.d\/<br \/>\n\\cp -f ganglia_hbase_proc.pyconf \/etc\/ganglia\/conf.d\/<br \/>\n\\cp -f ganglia_onest_proc.pyconf \/etc\/ganglia\/conf.d\/<br \/>\nservice gmond stop<br \/>\nsleep 3<br \/>\nservice gmond start<br \/>\nset +x<\/p>\n<p>echo &#8220;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Ganglia Installing Finished &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&#8220;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u652f\u6301rhel5.x \uff08centos5.x)\u548crhel6.x\uff1a #!\/bin\/bash function Usa &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[93,94,95],"class_list":["post-131","post","type-post","status-publish","format-standard","hentry","category-linuxandroid","tag-ganglia","tag-94","tag-95"],"views":2198,"_links":{"self":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=131"}],"version-history":[{"count":1,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/131\/revisions"}],"predecessor-version":[{"id":132,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/131\/revisions\/132"}],"wp:attachment":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}