{"id":249438,"date":"2022-08-15T10:54:32","date_gmt":"2022-08-15T02:54:32","guid":{"rendered":"https:\/\/gulass.cn\/?p=249438"},"modified":"2022-08-09T14:53:27","modified_gmt":"2022-08-09T06:53:27","slug":"automation-in-linux","status":"publish","type":"post","link":"https:\/\/gulass.cn\/automation-in-linux.html","title":{"rendered":"\u5b66\u4f1a\u8fd9\u4e9blinux\u7684\u201c\u81ea\u52a8\u5316\u201d\u8f7b\u677e\u641e\u5b9a\u4efb\u52a1"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | linux\u7cfb\u7edf\u7684web\u7f51\u7ad9\u5728\u8fd0\u8425\u72b6\u6001\u65f6\uff0c\u6211\u4eec\u5e38\u9700\u8981\u5bf9\u7f51\u7ad9\u8fdb\u884c\u7ef4\u62a4\uff0c\u4f8b\u5982\u67e5\u770b\u8d44\u6e90\u5269\u4f59\u5e76\u505a\u51fa\u54cd\u5e94\u3001\u65e5\u5fd7\u5206\u5272\u3001\u6570\u636e\u6574\u7406\uff0c\u5728\u7279\u5b9a\u72b6\u6001\u6267\u884c\u7279\u5b9a\u4efb\u52a1\u7b49\u7b49\uff0c\u8fd9\u4e9b\u90fd\u4f1a\u9700\u8981linux\u80fd\u5b9e\u73b0\u81ea\u52a8\u6267\u884c\u67d0\u4e9b\u4efb\u4efb\u52a1\u3002\u672c\u7bc7\u535a\u6587\u4ecb\u7ecd\u5982\u4f55\u8fdb\u884c\u5e38\u89c1\u7684linux\u81ea\u52a8\u5316\u4efb\u52a1\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n linux\u7684\u201c\u81ea\u52a8\u5316\u201d<\/strong><\/div>\n \u5b9e\u73b0\u201c\u81ea\u52a8\u5316\u201d\u6709\u5982\u4e0b\u597d\u5904\uff1a<\/p>\n \u5f00\u673a\u542f\u52a8<\/strong><\/div>\n \u5f00\u673a\u542f\u52a8\u5e94\u8be5\u662f\u6211\u4eec\u5f88\u7ecf\u5e38\u7684\u9700\u6c42\u4e86\uff0c\u6211\u4eec\u5e38\u9700\u8981\u5728\u5f00\u673a\u65f6\u5c31\u81ea\u52a8\u6267\u884c\u67d0\u4e9b\u547d\u4ee4\u6765\u5f00\u542f\u670d\u52a1\uff0c\u8fdb\u7a0b\u7b49\uff0c\u6709\u4e86\u5b83\u6211\u4eec\u4e0d\u5fc5\u518d\u5728\u6bcf\u6b21\u5f00\u673a\u65f6\u8f93\u5165\u540c\u4e00\u5806\u547d\u4ee4\u3002<\/p>\n chkconfig\u547d\u4ee4<\/strong><\/span><\/div>\n \u4f7f\u7528chkconfig\u547d\u4ee4\u53ef\u4ee5\u5728\u8bbe\u7f6e\u5728\u4e0d\u540c\u542f\u52a8\u7ea7\u522b\u4e0b\u542f\u52a8\u7279\u5b9a\u7684\u670d\u52a1\u6216\u662f\u7a0b\u5e8f\u3002<\/p>\n \u5148\u8bf4\u4e00\u4e0blinux\u7684\u8fd0\u884c\u7ea7\u522b\uff1a<\/p>\n chkconfig\u7684\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n chkconfig --list \/\/\u547d\u4ee4\u67e5\u770b\u5df2\u8bbe\u7f6e\u7684\u5f00\u542f\u81ea\u542f\u52a8\u5217\u8868\u3002\r\nxxxd 0:off 1:off 2:on ... 6:off \/\/list\u7684\u7ed3\u679c\uff0c\u8868\u793a\u5728xxxd\u670d\u52a1\u5728\u542f\u52a8\u7ea7\u522b\u4e3a2 3 4 5 \u7684\u60c5\u51b5\u4e0b\u4f1a\u81ea\u52a8\u542f\u52a8\u3002 \r\nchkconfig --add xxxd\/\/\u5411\u4efb\u52a1\u5217\u8868\u4e2d\u6dfb\u52a0\u4e00\u4e2axxxd\u670d\u52a1\r\nchkconfig [--level 1\/2\/..\/6] xxxd on\/off\/\/\u8bbe\u7f6exxxd\u7528\u670d\u52a1\u5728n\u72b6\u6001\u4e3a\u5f00\/\u5173\uff0c[]\u5185\u7701\u7565\u5219\u57282345\u7ea7\u522b\u5f00\u542f\r\nchkconfig --del xxxd \/\/\u5c06\u4efb\u52a1\u5217\u8868\u4e2d\u7684xxxd\u670d\u52a1\u5220\u9664<\/pre>\n |