{"id":647,"date":"2017-03-27T22:24:10","date_gmt":"2017-03-27T14:24:10","guid":{"rendered":"http:\/\/192.168.1.20\/?p=647"},"modified":"2017-03-27T22:24:10","modified_gmt":"2017-03-27T14:24:10","slug":"linux{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}e5{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}ae{47dd41ec6bdcbd9a214c783a3735392b82ea6d1d918378c5a53e064070","status":"publish","type":"post","link":"http:\/\/alextop.top\/?p=647","title":{"rendered":"linux\u5b89\u88c5apache\u5e76\u914d\u7f6e\u6839\u636e\u4e0d\u540c\u7684\u57df\u540d\u8f6c\u53d1\u5230\u4e0d\u540c\u7684\u7aef\u53e3"},"content":{"rendered":"<p style=\"background: white\">\u00a0<br \/>\n\u00a0<\/p>\n<p style=\"background: white\">\u00a0<br \/>\n\u00a0<\/p>\n<p style=\"background: white\"><a href=\"http:\/\/blog.csdn.net\/aguang_vip\/article\/details\/45832249\"><span style=\"color:#333333; font-family:\u5fae\u8f6f\u96c5\u9ed1; font-size:15pt\">linux\u5b89\u88c5apache\u5e76\u914d\u7f6e\u6839\u636e\u4e0d\u540c\u7684\u57df\u540d\u8f6c\u53d1\u5230\u4e0d\u540c\u7684\u7aef\u53e3<\/span><\/a><span style=\"color:black; font-family:\u5fae\u8f6f\u96c5\u9ed1; font-size:15pt\"><br \/>\n\t\t<\/span><\/p>\n<p style=\"text-align: right; background: white\"><span style=\"color:#999999; font-family:Arial; font-size:9pt\">2015-05-18 23:37\u00a0<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">1<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3001\u4e0b\u8f7d<\/span><span style=\"font-family:Arial\">httpd-2.4.12.tar.gz<\/span><span style=\"font-family:\u5b8b\u4f53\">\u53ef\u4ee5\u53bb<\/span><span style=\"font-family:Arial\">apache<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5b98\u7f51\u4e0b\u8f7d<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">2<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3001\u89e3\u538b<\/span><span style=\"font-family:Arial\">tar -zxvf httpd-2.4.12.tar.gz<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">3<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3001<\/span><span style=\"font-family:Arial\">.\/configure &#8211;prefix=\/usr\/local\/apache &#8211;enable -so<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">4<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3001<\/span><span style=\"font-family:Arial\">make &amp;&amp; make install<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">5<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3001\u5b89\u88c5\u7684\u65f6\u5019\u5982\u679c\u51fa\u73b0\u4e00\u4e0b\u9519\u8bef\uff0c<\/span><span style=\"font-family:Arial\">error:apr not fount. Please read the documentation<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c\u6b64\u65f6\u9700\u8981\u4e0b\u8f7d\u5176\u4ed6\u7684\u5305<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">6<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3001\u4e0b\u8f7d\u9700\u8981\u7684\u5305<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">wget\u00a0http:\/\/archive.apache.org\/dist\/apr\/apr-1.4.5.tar.gz\u00a0<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">wget\u00a0http:\/\/archive.apache.org\/dist\/apr\/apr-util-1.3.12.tar.gz\u00a0<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">wget\u00a0http:\/\/jaist.dl.sourceforge.net\/project\/pcre\/pcre\/8.10\/pcre-8.10.zip<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">7<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3001\u89e3\u51b3<\/span><span style=\"font-family:Arial\">apr not found<\/span><span style=\"font-family:\u5b8b\u4f53\">\u95ee\u9898<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">tar -zxvf apr-1.4.5.tar.gz<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">cd apr-1.4.5<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">.\/configure &#8211;prefix=\/usr\/local\/apr<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">make &amp;&amp; make install<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">8<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3001\u89e3\u51b3<\/span><span style=\"font-family:Arial\">apr-util not found<\/span><span style=\"font-family:\u5b8b\u4f53\">\u95ee\u9898<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">tar -zxvf apr-util-1.3.12.tar.gz<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">cd apr-util-1.3.12<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">.\/configure &#8211;with-apr=\/usr\/local\/apr<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">make &amp;&amp; make install<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">9<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3001\u89e3\u51b3<\/span><span style=\"font-family:Arial\">pcre<\/span><span style=\"font-family:\u5b8b\u4f53\">\u95ee\u9898<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u5982\u679c\u6ca1\u6709<\/span><span style=\"font-family:Arial\">unzip<\/span><span style=\"font-family:\u5b8b\u4f53\">\u547d\u4ee4\uff0c\u5b89\u88c5\uff08<\/span><span style=\"font-family:Arial\">yum install -y unzip zip<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff09<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">unzip -o pcre-8.10.zip<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">cd pcre-8.10<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">.\/configure &#8211;prefix=\/usr\/local\/pcre<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">make &amp;&amp; make install<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u5982\u679c\u6b64\u65f6\u51fa\u73b0\u5982\u4e0b\u9519\u8bef\u65f6<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">make[1]:***[pcrecpp.lo]<\/span><span style=\"font-family:\u5b8b\u4f53\">\u9519\u8bef<\/span><span style=\"font-family:Arial\">1<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">make[1]:Leaving directory \/data\/soft\/nginx\/pcre-8.30<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">make:***[all]<\/span><span style=\"font-family:\u5b8b\u4f53\">\u9519\u8bef<\/span><span style=\"font-family:Arial\">2<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">yum -y install gcc-c++<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">10<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3001\u91cd\u65b0\u7f16\u8bd1\u5b89\u88c5<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">.\/configure<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">make &amp;&amp; make install<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">11<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3001\u5f00\u59cb\u5b89\u88c5<\/span><span style=\"font-family:Arial\">apache<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u7f16\u8bd1<\/span><span style=\"font-family:Arial\">apache<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">.\/configure<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u7f16\u8bd1\u7684\u65f6\u5019\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u4e0a\u9762\u5b89\u88c5\u7684\u5305\u6ca1\u6709\u627e\u5230\uff0c\u6709\u53ef\u80fd\u662f\u56e0\u4e3a\u5927\u5c0f\u5199\u6216\u8005\u81ea\u5b9a\u4e49\u7684\u8def\u5f84\u9ed8\u8ba4\u627e\u4e0d\u5230\uff0c\u6b64\u65f6\u7f16\u8bd1\u5e26\u4e0a\u4e0a\u9762\u5b89\u88c5\u5305\u7684\u8def\u5f84\u5373\u53ef\uff0c\u6211\u8fd9\u91cc\u53ea\u6709<\/span><span style=\"font-family:Arial\">apr-util<\/span><span style=\"font-family:\u5b8b\u4f53\">\u8ddf<\/span><span style=\"font-family:Arial\">pcre<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5305<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u627e\u4e0d\u5230\uff0c\u6240\u4ee5\u6211\u5c31\u5e26\u4e86\u4e24\u4e2a\uff0c\u5982\u679c<\/span><span style=\"font-family:Arial\">apr<\/span><span style=\"font-family:\u5b8b\u4f53\">\u627e\u4e0d\u5230\uff0c\u8fd9\u4e5f\u8981\u628a<\/span><span style=\"font-family:Arial\">apr<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7684\u8def\u5f84\u5e26\u4e0a\uff08\u5305\u9ed8\u8ba4\u5b89\u88c5\u7684\u8def\u5f84\u5728<\/span><span style=\"font-family:Arial\">\/usr\/local\/<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e0b\uff09<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">.\/configure &#8211;with-apr-util=\/usr\/local\/apr-util\/\\&#8211;with-pcre=\/usr\/local\/pcre\/<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">make &amp;&amp; make install<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">12<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3001\u542f\u52a8<\/span><span style=\"font-family:Arial\">apache<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">cd \/usr\/local\/apache2\/bin\/<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">.\/apachectl\u00a0start<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u5f53\u51fa\u73b0<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">AH00558: httpd: Could not reliably determine the server&#8217;sfully qualified domain name, using localhost.localdomain. Set the &#8216;ServerName&#8217;directive globally to suppress\u00a0this message<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u6216<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">Starting httpd: httpd: apr_sockaddr_info_get() failed forMYHOST<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u5148\u5c06<\/span><span style=\"font-family:Arial\">apache<\/span><span style=\"font-family:\u5b8b\u4f53\">\u670d\u52a1\u505c\u6b62\uff0c\u5728<\/span><span style=\"font-family:Arial\">\/usr\/local\/apache2\/bin\/<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e0b<\/span><span style=\"font-family:Arial\"> .\/apachectl stop<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u7136\u540e\u5207\u6362\u5230\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">cd ..\/conf<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u5c06<\/span><span style=\"font-family:Arial\">httpd.conf<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5907\u4efd\u4e00\u4e0b\uff08\u9632\u6b62\u5199\u9519\u9020\u6210\u4e0d\u53ef\u6062\u590d\u7684\u9519\u8bef\uff09<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">cp httpd.conf \/usr\/local\/apache2\/conf\/httpCopy.conf<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u5907\u4efd\u5b8c\u540e\u5c31\u53ef\u4ee5\u7f16\u8f91\u8be5\u914d\u7f6e\u6587\u4ef6\u4e86\uff08\u5982\u679c\u4f60\u89c9\u5f97\u4f60\u4e0d\u4f1a\u641e\u9519\u4ec0\u4e48\u7684\uff0c\u53ef\u4ee5\u4e0d\u5907\u4efd\uff09<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">vi httpd.conf<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u627e\u5230<\/span><span style=\"font-family:Arial\">ServerRoot &#8220;\/usr\/local\/apache2&#8221;<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u5728\u4e0b\u9762\u6dfb\u52a0<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">ServerName localhost:80(<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e0d\u4fee\u6539\u4e5f\u662f\u53ef\u4ee5\u7684\uff0c\u53ea\u662f\u542f\u52a8\u7684\u65f6\u5019\u4f1a\u51fa\u73b0\u4ee5\u4e0a\u7684\u8b66\u544a\uff0c\u770b\u7740\u70e6\uff0c\u5b9e\u9645\u4e0d\u4f1a\u6709\u5565\u5f71\u54cd<\/span><span style=\"font-family:Arial\">)<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">cd ..\/bin<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u542f\u52a8<\/span><span style=\"font-family:Arial\">apache<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">.\/apachectl start<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u8bbf\u95ee\u9875\u9762<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">http:\/\/<\/span><span style=\"font-family:\u5b8b\u4f53\">\u670d\u52a1\u5668<\/span><span style=\"font-family:Arial\">ip<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5730\u5740<\/span><span style=\"font-family:Arial\">\/<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u5f53\u51fa\u73b0\u4e0b\u9762\u7684\u754c\u9762\uff0c\u5219\u6807\u8bc6<\/span><span style=\"font-family:Arial\">apache<\/span><span style=\"font-family:\u5b8b\u4f53\">\u670d\u52a1\u5668\u5b89\u88c5\u6210\u529f<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\">\n\u00a0<\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">13<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3001\u4e0b\u9762\u914d\u7f6e\u8f6c\u53d1\uff08\u5373\u540c\u4e00\u4e2a\u670d\u52a1\u5668<\/span><span style=\"font-family:Arial\">ip<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5730\u5740\uff0c\u591a\u4e2a\u4e0d\u540c\u7684\u57df\u540d\u90fd\u89e3\u6790\u5230\u4e86\u8be5<\/span><span style=\"font-family:Arial\">ip<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e0a\uff0c\u7136\u540e\u8be5\u670d\u52a1\u5668\u4e0a\u540c\u65f6\u5f00\u7740\u591a\u4e2a<\/span><span style=\"font-family:Arial\">tomcat<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c\u8fd0\u884c\u7740\u4e0d\u540c\u7684\u9879\u76ee\uff0c\u5404\u4e2a\u9879\u76ee\u7684\u8bbf\u95ee\u7aef\u53e3\u4e0d\u540c\uff0c\u73b0\u5728\u914d\u7f6e<\/span><span style=\"font-family:Arial\">apache<\/span><span style=\"font-family:\u5b8b\u4f53\">\u6839\u636e\u4e0d\u540c\u7684\u57df\u540d\u8f6c\u53d1\u5230\u4e0d\u540c\u7684\u7aef\u53e3\uff0c\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff09<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u4fee\u6539\u914d\u7f6e\u6587\u4ef6<\/span><span style=\"font-family:Arial\">httpd.conf<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">vi httpd.conf<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:#333333; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u627e\u5230\u914d\u7f6e\u6587\u4ef6\u4e0b\u9762\u90a3<\/span><span style=\"font-family:Arial\">4<\/span><span style=\"font-family:\u5b8b\u4f53\">\u884c\uff0c\u5c06\u524d\u9762\u7684<\/span><span style=\"font-family:Arial\">#<\/span><span style=\"font-family:\u5b8b\u4f53\">\u53bb\u6389<\/span><span style=\"color:black; font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:#333333; font-family:Arial; font-size:10pt\">LoadModule proxy_module modules\/mod_proxy.so<br \/>LoadModule proxy_connect_modulemodules\/mod_proxy_connect.so<span style=\"color:black\"><br \/>LoadModule proxy_http_modulemodules\/mod_proxy_http.so<br \/>LoadModule proxy_ftp_modulemodules\/mod_proxy_ftp.so<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u53bb\u6389<\/span><span style=\"font-family:Arial\">4<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e2a<\/span><span style=\"font-family:Arial\">#<\/span><span style=\"font-family:\u5b8b\u4f53\">\u540e\uff0c\u4e0b\u9762\u5c31\u53ef\u4ee5\u914d\u7f6e\u7aef\u53e3\u8f6c\u53d1\u7684<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u5728\u914d\u7f6e\u6587\u4ef6\u7684\u6700\u4e0b\u65b9\u6dfb\u52a0\uff08\u4ee5\u4e0b\u662f\u4f8b\u5b50\uff0c\u5927\u5bb6\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u60c5\u51b5\u8fdb\u884c\u914d\u7f6e\uff0c\u4e0b\u9762\u662f\u6211\u4e2a\u4eba\u7684\u4e00\u79cd\u914d\u7f6e\uff0c\u8fd8\u6709\u5176\u4ed6\u7684\u914d\u7f6e\u65b9\u6cd5\uff0c\u6b64\u5904\u5c31\u7701\u7565\u4e86\uff0c\u4ee5\u540e\u6709\u7a7a\u518d\u505a\u5176\u4ed6\u7684\u4ecb\u7ecd\uff09<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">&lt;VirtualHost *:80&gt;<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">\u00a0\u00a0\u00a0\u00a0ServerName\u00a0 <\/span><span style=\"font-family:\u5b8b\u4f53\">\u4f60\u7684\u57df\u540d<\/span><span style=\"font-family:Arial\">a<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">\u00a0\u00a0\u00a0\u00a0ServerAlias <\/span><span style=\"font-family:\u5b8b\u4f53\">\u4f60\u7684\u57df\u540d<\/span><span style=\"font-family:Arial\">a<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">\u00a0\u00a0\u00a0\u00a0ProxyPreserveHost On<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">\u00a0\u00a0\u00a0\u00a0ProxyRequests Off<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">\u00a0\u00a0\u00a0\u00a0ProxyPass \/ http:\/\/<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4f60\u7684\u670d\u52a1\u5668<\/span><span style=\"font-family:Arial\">ip:8001\/<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">\u00a0\u00a0\u00a0\u00a0ProxyPassReverse \/ http:\/\/<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4f60\u7684\u670d\u52a1\u5668<\/span><span style=\"font-family:Arial\">ip:8001\/<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">&lt;\/VirtualHost&gt;<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">&lt;VirtualHost *:80&gt;<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">\u00a0\u00a0\u00a0\u00a0ServerName\u00a0 <\/span><span style=\"font-family:\u5b8b\u4f53\">\u4f60\u7684\u57df\u540d<\/span><span style=\"font-family:Arial\">b<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">\u00a0\u00a0\u00a0\u00a0ServerAlias <\/span><span style=\"font-family:\u5b8b\u4f53\">\u4f60\u7684\u57df\u540d<\/span><span style=\"font-family:Arial\">b<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">\u00a0\u00a0\u00a0 ProxyPreserveHost On<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">\u00a0\u00a0\u00a0 ProxyRequests Off<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">\u00a0\u00a0\u00a0\u00a0ProxyPass \/ http:\/\/<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4f60\u7684\u670d\u52a1\u5668<\/span><span style=\"font-family:Arial\">ip:8002\/<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">\u00a0\u00a0\u00a0\u00a0ProxyPassReverse \/ http:\/\/<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4f60\u7684\u670d\u52a1\u5668<\/span><span style=\"font-family:Arial\">ip:8002\/<br \/>\n<\/span><\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-family:Arial; font-size:10pt\">&lt;\/VirtualHost&gt;<br \/>\n<\/span><\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u6b64\u5904\u7684\u914d\u7f6e\u610f\u601d\u662f\uff0c\u8be5\u670d\u52a1\u5668\u63a5\u6536\u5230<\/span><span style=\"font-family:Arial\">http:a:80<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7684\u8bf7\u6c42\u540e\uff0c\u4f1a\u8f6c\u53d1\u5230<\/span><span style=\"font-family:Arial\">http:\/\/ip:8001<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7aef\u53e3\u4e0a\u9762\u53bb<\/span><span style=\"font-family:Arial\">,<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5373\u505a\u4e86\u8f6c\u53d1\uff0c\u56e0\u4e3a\u591a\u4e2a\u57df\u540d\u90fd\u89e3\u6790\u5230\u8be5\u670d\u52a1\u5668\u4e0a\uff0c\u800c\u4e14\u90fd\u662f<\/span><span style=\"font-family:Arial\">80<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7aef\u53e3\uff0c\u5373\u4ece<\/span><span style=\"font-family:Arial\">ip<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e0a\u6765\u8bf4\uff0c\u5927\u5bb6\u7684\u8bf7\u6c42\u90fd\u4e00\u6837\uff0c\u6240\u4ee5\u6b64\u5904\u53ef\u4ee5\u6839\u636e\u57df\u540d\u7684\u4e0d\u540c\u6765\u8df3\u8f6c\u5230\u4e0d\u540c\u7aef\u53e3\u7684\u9879\u76ee\u4e0a\uff0c\u6bd4\u5982\u7f51\u7ad9<\/span><span style=\"font-family:Arial\">1<\/span><span style=\"font-family:\u5b8b\u4f53\">\u8df3\u8f6c\u5230\u7aef\u53e3\u4e3a<\/span><span style=\"font-family:Arial\">8001<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7684<\/span><span style=\"font-family:Arial\">tomcat<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c\u7f51\u7ad9<\/span><span style=\"font-family:Arial\">2<\/span><span style=\"font-family:\u5b8b\u4f53\">\u8df3\u8f6c\u5230\u7aef\u53e3\u4e3a<\/span><span style=\"font-family:Arial\">8002<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7684<\/span><span style=\"font-family:Arial\">tomcat<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff08\u672c\u4eba\u670d\u52a1\u5668\u5bb9\u5668\u9009\u62e9\u7684\u662f<\/span><span style=\"font-family:Arial\">tomcat<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff09<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\"><a href=\"http:\/\/lib.csdn.net\/base\/softwaretest\" title=\"\u8f6f\u4ef6\u6d4b\u8bd5\u77e5\u8bc6\u5e93\" target=\"_blank\"><span style=\"color:#df3434; font-family:\u5b8b\u4f53; font-size:10pt\"><strong>\u6d4b\u8bd5<\/strong><\/span><\/a><span style=\"color:black; font-size:10pt\"><span style=\"font-family:Arial\">\u00a0http:\/\/<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4f60\u7684\u57df\u540d<\/span><span style=\"font-family:Arial\">\/<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e0e<\/span><span style=\"font-family:Arial\">http:\/\/<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4f60\u7684\u57df\u540d<\/span><span style=\"font-family:Arial\">:8001\/<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7684\u8bbf\u95ee\u5730\u5740\u7ed3\u679c\u90fd\u4e00\u6837\uff0c\u524d\u8005\u901a\u8fc7<\/span><span style=\"font-family:Arial\">apache<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e0a\u9762\u7684\u8fc7\u6ee4\uff0c\u8f6c\u53d1\u5230\u4e86<\/span><span style=\"font-family:Arial\">8001<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7aef\u53e3\u53bb\u4e86\uff0c\u540e\u8005\u76f4\u63a5\u5230<\/span><span style=\"font-family:Arial\">tomcat<\/span><span style=\"font-family:\u5b8b\u4f53\">\u8bbf\u95ee\u53bb\u4e86\uff0c\u56e0\u4e3a\u4e0a\u9762\u7684\u914d\u7f6e\u53ea\u9488\u5bf9<\/span><span style=\"font-family:Arial\">80<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7aef\u53e3\u8f6c\u53d1\uff0c\u5927\u5bb6\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u60c5\u51b5\u6765\u505a\u51fa\u4e0d\u540c\u7684\u914d\u7f6e<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n<p style=\"background: white\">\n\u00a0<\/p>\n<p style=\"background: white\"><span style=\"color:black; font-size:10pt\"><span style=\"font-family:\u5b8b\u4f53\">\u81f3\u6b64<\/span><span style=\"font-family:Arial\">apache<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7684\u5b89\u88c5\u4ee5\u53ca\u7aef\u53e3\u7684\u914d\u7f6e\u5c31\u5dee\u4e0d\u591a\u8fd9\u6837\u4e86<\/span><span style=\"font-family:Arial\"><br \/>\n\t\t\t<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 \u00a0 \u00a0 linux\u5b89\u88c5&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-647","post","type-post","status-publish","format-standard","hentry","category-jishu"],"_links":{"self":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts\/647"}],"collection":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=647"}],"version-history":[{"count":0,"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts\/647\/revisions"}],"wp:attachment":[{"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=647"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}