{"id":3014,"date":"2019-06-13T12:27:46","date_gmt":"2019-06-13T04:27:46","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3014"},"modified":"2019-06-13T12:27:47","modified_gmt":"2019-06-13T04:27:47","slug":"apachectl","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/apachectl","title":{"rendered":"apachectl\u547d\u4ee4 – Apache\u670d\u52a1\u5668\u524d\u7aef\u63a7\u5236\u5de5\u5177"},"content":{"rendered":"\n

apachectl\u547d\u4ee4\u662fApache\u7684Web\u670d\u52a1\u5668\u524d\u7aef\u63a7\u5236\u5de5\u5177\uff0c\u7528\u4ee5\u542f\u52a8\u3001\u5173\u95ed\u548c\u91cd\u65b0\u542f\u52a8Web\u670d\u52a1\u5668\u8fdb\u7a0b\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong> apachectl [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
configtest<\/td>\u68c0\u67e5\u8bbe\u7f6e\u6587\u4ef6\u4e2d\u7684\u8bed\u6cd5\u662f\u5426\u6b63\u786e<\/td><\/tr>
fullstatus<\/td>\u663e\u793a\u670d\u52a1\u5668\u5b8c\u6574\u7684\u72b6\u6001\u4fe1\u606f<\/td><\/tr>
graceful<\/td>\u91cd\u65b0\u542f\u52a8Apache\u670d\u52a1\u5668\uff0c\u4f46\u4e0d\u4f1a\u4e2d\u65ad\u539f\u6709\u7684\u8fde\u63a5<\/td><\/tr>
help<\/td>\u663e\u793a\u5e2e\u52a9\u4fe1\u606f<\/td><\/tr>
restart<\/td>\u91cd\u65b0\u542f\u52a8Apache\u670d\u52a1\u5668<\/td><\/tr>
start<\/td>\u542f\u52a8Apache\u670d\u52a1\u5668<\/td><\/tr>
status<\/td>\u663e\u793a\u670d\u52a1\u5668\u6458\u8981\u7684\u72b6\u6001\u4fe1\u606f<\/td><\/tr>
stop<\/td>\u505c\u6b62Apache\u670d\u52a1\u5668<\/td><\/tr>
startssl<\/td>\u542f\u52a8\u5e26ssl\u652f\u6301\u7684apache\u7684web\u670d\u52a1\u5668\u8fdb\u7a0b<\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u6d4b\u8bd5\u914d\u7f6e\u6587\u4ef6\u8bed\u6cd5\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# apachectl configtest\nAH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::6da1:1b23:c479:649a. Set the 'ServerName' directive globally to suppress this message\nSyntax OK<\/pre>\n\n\n\n

\u663e\u793a\u670d\u52a1\u5668\u72b6\u6001\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# apachectl status<\/pre>\n\n\n\n

\u91cd\u65b0\u542f\u52a8Apache\u670d\u52a1\u5668\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# apachectl restart<\/pre>\n","protected":false},"excerpt":{"rendered":"

apachectl\u547d\u4ee4\u662fApache\u7684Web\u670d\u52a1\u5668\u524d\u7aef\u63a7\u5236\u5de5\u5177\uff0c\u7528\u4ee5\u542f\u52a8\u3001\u5173\u95ed\u548c\u91cd\u65b0\u542f\u52a8Web\u670d\u52a1\u5668\u8fdb\u7a0b\u3002 \u8bed […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3014"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=3014"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3014\/revisions"}],"predecessor-version":[{"id":3040,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3014\/revisions\/3040"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}