{"id":754,"date":"2011-11-07T15:21:06","date_gmt":"2011-11-07T07:21:06","guid":{"rendered":"http:\/\/www.poloo.org\/?p=754"},"modified":"2011-11-07T15:21:06","modified_gmt":"2011-11-07T07:21:06","slug":"ubuntu%e4%b8%8b%e5%90%af%e5%8a%a8%e9%87%8d%e5%90%af%e5%81%9c%e6%ad%a2apachemysql%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.poloo.org\/?p=754","title":{"rendered":"Ubuntu\u4e0b\u542f\u52a8\/\u91cd\u542f\/\u505c\u6b62apache,mysql\u670d\u52a1\u5668"},"content":{"rendered":"<p>\/\/ Apache<br \/>\n\/\/Task: Start Apache 2 Server \/\u542f\u52a8apache\u670d\u52a1<br \/>\n# \/etc\/init.d\/apache2 start<br \/>\n\/\/or<br \/>\n$ sudo \/etc\/init.d\/apache2 start<br \/>\n\/\/Task: Restart Apache 2 Server \/\u91cd\u542fapache\u670d\u52a1<br \/>\n# \/etc\/init.d\/apache2 restart<br \/>\n\/\/or<br \/>\n$ sudo \/etc\/init.d\/apache2 restart<br \/>\n\/\/Task: Stop Apache 2 Server \/\u505c\u6b62apache\u670d\u52a1<br \/>\n# \/etc\/init.d\/apache2 stop<br \/>\n\/\/or<br \/>\n$ sudo \/etc\/init.d\/apache2 stop<br \/>\n\/\/ Mysql<br \/>\n\/etc\/init.d\/mysql start<br \/>\n\/etc\/init.d\/mysql stop<br \/>\n\/etc\/init.d\/mysql restart<\/p>\n<p><!--more--><\/p>\n<p>\/\/ httpd\u662fApache\u8d85\u6587\u672c\u4f20\u8f93\u534f\u8bae(HTTP)\u670d\u52a1\u5668\u7684\u4e3b\u7a0b\u5e8f\u3002\u88ab\u8bbe\u8ba1\u4e3a\u4e00\u4e2a\u72ec\u7acb\u8fd0\u884c\u7684\u540e\u53f0\u8fdb\u7a0b\uff0c\u5b83\u4f1a\u5efa\u7acb\u4e00\u4e2a\u5904\u7406\u8bf7\u6c42\u7684\u5b50\u8fdb\u7a0b\u6216\u7ebf\u7a0b\u7684\u6c60\u3002<br \/>\n\/\/ \u901a\u5e38\uff0chttpd\u4e0d\u5e94\u8be5\u88ab\u76f4\u63a5\u8c03\u7528\uff0c\u800c\u5e94\u8be5\u5728\u7c7bUnix\u7cfb\u7edf\u4e2d\u7531 apachectl \u8c03\u7528<br \/>\n\/\/ man apache2 \u4e2d\u4ecb\u7ecd<br \/>\n\/\/ apache2 is the Apache HyperText Transfer Protocol (HTTP) server program.<br \/>\n\/\/ It is designed to be run as a standalone daemon process. When\u00a0 used\u00a0 like<br \/>\n\/\/ this it will create a pool of child processes or threads to handle requests.<br \/>\n\/\/ In general, apache2 should not be invoked directly,<br \/>\n\/\/ but rather should be invoked via \/etc\/init.d\/apache2 or apache2ctl.<br \/>\n\/\/ The default Debian config-uration requires environment variables<br \/>\n\/\/ that are defined in \/etc\/apache2\/envvars and are not available if apache2 is\u00a0 started\u00a0 directly.<br \/>\n\/\/ However,apache2ctl can be used to pass arbitrary arguments to apache2.<br \/>\n\/\/<br \/>\n\/\/ apache2ctl = apache2 ConTroL<br \/>\n\/\/<br \/>\napache2ctl -restart<br \/>\napache2ctl -stop<br \/>\napache2ctl -t<br \/>\n\/\/ \u8be6\u7ec6\u89c1 man apache2<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/\/ Apache \/\/Task: Start Apache 2 S&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,7],"tags":[31,67,68,69,32],"class_list":["post-754","post","type-post","status-publish","format-standard","hentry","category-Linux","category-NetOS","tag-apache","tag-ubuntu","tag-68","tag-69","tag-32"],"_links":{"self":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/754","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=754"}],"version-history":[{"count":1,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/754\/revisions"}],"predecessor-version":[{"id":755,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/754\/revisions\/755"}],"wp:attachment":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=754"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}