{"id":129,"date":"2019-07-17T13:58:06","date_gmt":"2019-07-17T05:58:06","guid":{"rendered":"http:\/\/lst.wting.me\/?p=129"},"modified":"2019-07-20T19:22:25","modified_gmt":"2019-07-20T11:22:25","slug":"centos%e7%b3%bb%e7%bb%9f%e4%b8%8b%e8%ae%be%e7%bd%ae%e5%bc%80%e6%9c%ba%e8%87%aa%e5%8a%a8%e5%90%af%e5%8a%a8","status":"publish","type":"post","link":"https:\/\/lst.wting.top\/?p=129","title":{"rendered":"CentOS\u7cfb\u7edf\u4e0b\u8bbe\u7f6e\u5f00\u673a\u81ea\u52a8\u542f\u52a8"},"content":{"rendered":"<h4 id=\"\u65b9\u6cd51.-\u628a\u542f\u52a8\u7a0b\u5e8f\u7684\u547d\u4ee4\u6dfb\u52a0\u5230-etcrc.drc.local-\u6587\u4ef6\u4e2d\u6bd4\u5982\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8-mysqld\">\u65b9\u6cd51. \u628a\u542f\u52a8\u7a0b\u5e8f\u7684\u547d\u4ee4\u6dfb\u52a0\u5230 \/etc\/rc.d\/rc.local \u6587\u4ef6\u4e2d\uff0c\u6bd4\u5982\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8 mysqld\uff1a<\/h4>\n<pre><code class=\"hljs bash\"><span class=\"hljs-meta\">#!\/bin\/sh<\/span>\r\n<span class=\"hljs-comment\">#<\/span>\r\n<span class=\"hljs-comment\"># This script will be executed *after* all the other init scripts.<\/span>\r\n<span class=\"hljs-comment\"># You can put your own initialization stuff in here if you don't<\/span>\r\n<span class=\"hljs-comment\"># want to do the full Sys V style init stuff.<\/span>\r\n \r\ntouch \/var\/lock\/subsys\/<span class=\"hljs-built_in\">local<\/span>\r\n\/etc\/init.d\/mysqld start  <span class=\"hljs-comment\">#\u5c31\u662f\u6dfb\u52a0\u8fd9\u4e00\u6761\u8bed\u53e5<\/span><\/code><\/pre>\n<h4 id=\"\u65b9\u6cd53.-\u628a\u542f\u52a8\u7a0b\u5e8f\u7684\u547d\u4ee4\u6dfb\u52a0\u5230-etcrc.drc.sysinit-\u6587\u4ef6\u4e2d\">\u65b9\u6cd53. \u628a\u542f\u52a8\u7a0b\u5e8f\u7684\u547d\u4ee4\u6dfb\u52a0\u5230 \/etc\/rc.d\/rc.sysinit \u6587\u4ef6\u4e2d<\/h4>\n<p>\u811a\u672c \/etc\/rc.d\/rc.sysinit \u7684\u4f5c\u7528\u662f\u5b8c\u6210\u7cfb\u7edf\u670d\u52a1\u7a0b\u5e8f\u7684\u542f\u52a8\uff0c\u5982\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u3001\u8bbe\u7f6e\u7cfb\u7edf\u65f6\u949f\u3001\u52a0\u8f7d\u5b57\u4f53\u3001\u68c0\u67e5\u52a0\u8f7d\u6587\u4ef6\u7cfb\u7edf\u3001\u751f\u6210\u7cfb\u7edf\u542f\u52a8\u4fe1\u606f\u65e5\u5fd7\u6587\u4ef6\u7b49\u3002<br \/>\n\u6bd4\u5982\u6211\u4eec\u8bbe\u7f6e\u81ea\u542f\u52a8 mysqld\uff1a<\/p>\n<pre><code class=\"hljs ruby\">echo <span class=\"hljs-string\">\"\/etc\/init.d\/mysqld start\"<\/span> <span class=\"hljs-meta\">&gt;&gt; <\/span>\/etc\/rc.d\/rc.sysinit<\/code><\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65b9\u6cd51. \u628a\u542f\u52a8\u7a0b\u5e8f\u7684\u547d\u4ee4\u6dfb\u52a0\u5230 \/etc\/rc.d\/rc.local \u6587\u4ef6\u4e2d\uff0c\u6bd4\u5982\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8 mysqld [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/posts\/129"}],"collection":[{"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lst.wting.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=129"}],"version-history":[{"count":1,"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/posts\/129\/revisions"}],"predecessor-version":[{"id":130,"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/posts\/129\/revisions\/130"}],"wp:attachment":[{"href":"https:\/\/lst.wting.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lst.wting.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lst.wting.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}