{"id":405,"date":"2015-01-26T15:03:59","date_gmt":"2015-01-26T15:03:59","guid":{"rendered":"bbcbff5c1f1ded46c25d28119a85c6c2"},"modified":"2015-01-26T15:03:59","modified_gmt":"2015-01-26T15:03:59","slug":"","status":"publish","type":"post","link":"https:\/\/www.xiaobo.li\/notes\/archives\/405","title":{"rendered":"systemctl, chkconfig"},"content":{"rendered":"<table style=\"white-space:normal;text-transform:none;word-spacing:0px;color:#000000;text-align:left;font:12px\/15px \u5b8b\u4f53, Arial;letter-spacing:normal;background-color:#f5f7f8;text-indent:0px;-webkit-text-stroke-width:0px;\" cellspacing=\"2\" cellpadding=\"2\" width=\"100%\" align=\"left\" border=\"2\">\n<caption style=\"font-size:14px;font-weight:bold;text-align:left;\">systemctl \u5bf9\u6bd4\u8868<br \/>\n<\/caption>\n<tbody>\n<tr style=\"text-align:center;background-color:#d9bb7a;\" nowrap=\"nowrap\">\n<td style=\"line-height:1.5;\">\u4efb\u52a1<\/td>\n<td style=\"line-height:1.5;\">\u65e7\u6307\u4ee4<\/td>\n<td style=\"line-height:1.5;\">\u65b0\u6307\u4ee4<\/td>\n<\/tr>\n<tr nowrap=\"nowrap\">\n<td style=\"line-height:1.5;\">\u4f7f\u67d0\u670d\u52a1\u81ea\u52a8\u542f\u52a8<\/td>\n<td style=\"line-height:1.5;\">chkconfig --level 3 httpd on<\/td>\n<td style=\"line-height:1.5;\">systemctl enable httpd.service<\/td>\n<\/tr>\n<tr nowrap=\"nowrap\">\n<td style=\"line-height:1.5;\">\u4f7f\u67d0\u670d\u52a1\u4e0d\u81ea\u52a8\u542f\u52a8<\/td>\n<td style=\"line-height:1.5;\">chkconfig --level 3 httpd off<\/td>\n<td style=\"line-height:1.5;\">systemctl disable httpd.service<\/td>\n<\/tr>\n<tr nowrap=\"nowrap\">\n<td style=\"line-height:1.5;\">\u68c0\u67e5\u670d\u52a1\u72b6\u6001<\/td>\n<td style=\"line-height:1.5;\">service httpd status<\/td>\n<td style=\"line-height:1.5;\">systemctl status&nbsp;<span class=\"replaceable\" style=\"line-height:1.5;\">httpd<\/span>.service \uff08\u670d\u52a1\u8be6\u7ec6\u4fe1\u606f\uff09 systemctl is-active httpd.service \uff08\u4ec5\u663e\u793a\u662f\u5426 Active)<\/td>\n<\/tr>\n<tr nowrap=\"nowrap\">\n<td style=\"line-height:1.5;\">\u663e\u793a\u6240\u6709\u5df2\u542f\u52a8\u7684\u670d\u52a1<\/td>\n<td style=\"line-height:1.5;\">chkconfig --list<\/td>\n<td style=\"line-height:1.5;\">systemctl list-units --type=service<\/td>\n<\/tr>\n<tr>\n<td style=\"line-height:1.5;\">\u542f\u52a8\u67d0\u670d\u52a1<\/td>\n<td style=\"line-height:1.5;\">service httpd start<\/td>\n<td style=\"line-height:1.5;\">systemctl start httpd.service<\/td>\n<\/tr>\n<tr nowrap=\"nowrap\">\n<td style=\"line-height:1.5;\">\u505c\u6b62\u67d0\u670d\u52a1<\/td>\n<td style=\"line-height:1.5;\">service httpd stop<\/td>\n<td style=\"line-height:1.5;\">systemctl stop httpd.service<\/td>\n<\/tr>\n<tr nowrap=\"nowrap\">\n<td style=\"line-height:1.5;\">\u91cd\u542f\u67d0\u670d\u52a1<\/td>\n<td style=\"line-height:1.5;\">service httpd restart<\/td>\n<td style=\"line-height:1.5;\">systemctl restart httpd.service<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<table style=\"white-space:normal;text-transform:none;word-spacing:0px;color:#000000;text-align:left;font:12px\/15px \u5b8b\u4f53, Arial;letter-spacing:normal;background-color:#f5f7f8;text-indent:0px;-webkit-text-stroke-width:0px;\" cellspacing=\"2\" cellpadding=\"2\" width=\"100%\" align=\"left\" border=\"2\">\n<caption style=\"font-size:14px;font-weight:bold;text-align:left;\">systemctl \u5bf9\u6bd4\u8868<br \/><\/caption>\n<tbody>\n<tr style=\"text-align:center;background-color:#d9bb7a;\" nowrap=\"nowrap\">\n<td style=\"line-height:1.5;\">\u4efb\u52a1<\/td>\n<td style=\"line-height:1.5;\">\u65e7\u6307\u4ee4<\/td>\n<td style=\"line-height:1.5;\">\u65b0\u6307\u4ee4<\/td>\n<\/tr>\n<tr nowrap=\"nowrap\">\n<td style=\"line-height:1.5;\">\u4f7f\u67d0\u670d\u52a1\u81ea\u52a8\u542f\u52a8<\/td>\n<td style=\"line-height:1.5;\">chkconfig --level 3 httpd on<\/td>\n<td style=\"line-height:1.5;\">systemctl enable httpd.service<\/td>\n<\/tr>\n<tr nowrap=\"nowrap\">\n<td style=\"line-height:1.5;\">\u4f7f\u67d0\u670d\u52a1\u4e0d\u81ea\u52a8\u542f\u52a8<\/td>\n<td style=\"line-height:1.5;\">chkconfig --level 3 httpd off<\/td>\n<td style=\"line-height:1.5;\">systemctl disable httpd.service<\/td>\n<\/tr>\n<tr nowrap=\"nowrap\">\n<td style=\"line-height:1.5;\">\u68c0\u67e5\u670d\u52a1\u72b6\u6001<\/td>\n<td style=\"line-height:1.5;\">service httpd status<\/td>\n<td style=\"line-height:1.5;\">systemctl status&nbsp;<span class=\"replaceable\" style=\"line-height:1.5;\">httpd<\/span>.service \uff08\u670d\u52a1\u8be6\u7ec6\u4fe1\u606f\uff09 systemctl is-active httpd.service \uff08\u4ec5\u663e\u793a\u662f\u5426 Active)<\/td>\n<\/tr>\n<tr nowrap=\"nowrap\">\n<td style=\"line-height:1.5;\">\u663e\u793a\u6240\u6709\u5df2\u542f\u52a8\u7684\u670d\u52a1<\/td>\n<td style=\"line-height:1.5;\">chkconfig --lis...<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> <a href=\"https:\/\/www.xiaobo.li\/notes\/archives\/405\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[287],"tags":[129,196],"class_list":["post-405","post","type-post","status-publish","format-standard","hentry","category-linux","tag-chkconfig","tag-systemctl"],"_links":{"self":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/comments?post=405"}],"version-history":[{"count":0,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/405\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/media?parent=405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/categories?post=405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/tags?post=405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}