{"id":93487,"date":"2024-04-16T19:09:11","date_gmt":"2024-04-16T11:09:11","guid":{"rendered":"http:\/\/gulass.cn\/?p=93487"},"modified":"2024-04-16T19:09:11","modified_gmt":"2024-04-16T11:09:11","slug":"linux-autostart","status":"publish","type":"post","link":"https:\/\/gulass.cn\/linux-autostart.html","title":{"rendered":"linux\u4e0b\u4e09\u79cd\u5f00\u673a\u81ea\u542f\u52a8\u670d\u52a1\u7684\u65b9\u5f0f\u603b\u7ed3"},"content":{"rendered":"
\u65b9\u6cd51\uff1a.\u5229\u7528ntsysv\u547d\u4ee4\u8fdb\u884c\u8bbe\u7f6e\uff0c\u5229\u7528root\u767b\u9646<\/strong><\/span><\/div>\n

\u7ec8\u7aef\u547d\u4ee4\u4e0b\u8f93\u5165ntsysv \u56de\u8f66\uff1b\u5982\u4e0b\u56fe<\/p>\n

\"\"<\/a><\/p>\n

\"\"<\/a><\/p>\n

\u5728\u8fd9\u4e2a\u754c\u9762\u4e0a\u8fdb\u884c\u64cd\u4f5c\u5373\u53ef\uff0c\u7b80\u8981\u7684\u64cd\u4f5c\u8bf4\u660e\uff1a<\/p>\n

\u62ec\u53f7\u4e2d\uff08*\uff09\u4ee3\u8868\u9ed8\u8ba4\u5f00\u673a\u542f\u52a8\uff0c\u5426\u5219\u4e0d\u4f1a\u5728\u5f00\u673a\u7684\u65f6\u5019\u542f\u52a8;<\/p>\n

\u6309\u94ae\u529f\u80fd\uff1a<\/strong><\/p>\n

\u4e0a\u4e0b\u952e\uff1a\u53ef\u4ee5\u5728\u5404\u4e2a\u670d\u52a1\u4e4b\u95f4\u79fb\u52a8<\/p>\n

\u7a7a\u683c\u952e\uff1a\u8bbe\u7f6e\u542f\u52a8\u8fd8\u662f\u4e0d\u542f\u52a8\uff0c*\u8fdb\u884c\u8bbe\u7f6e\u5373\u53ef<\/p>\n

Tab\u952e\uff1a\u5728\u65b9\u6846\u3001ok\u3001cancle\u4e4b\u95f4\u8fdb\u884c\u5207\u6362<\/p>\n

\u65b9\u6cd52\uff1a\u5229\u7528\u547d\u4ee4\u884cchkconfig\u547d\u4ee4\u8fdb\u884c\u8bbe\u7f6e<\/strong><\/span><\/div>\n

\u7b80\u8981\u8bf4\u660e\u4e00\u4e0bchkconfig\u547d\u4ee4\u7684\u4f7f\u7528\u65b9\u6cd5<\/p>\n

--list:\u5c06\u76ee\u524d\u7684\u5404\u9879\u670d\u52a1\u72b6\u6001\u680f\u663e\u793a\u51fa\u6765<\/p>\n

--level:\u8bbe\u7f6e\u67d0\u4e2a\u670d\u52a1\u5728\u8be5LEVEL\u4e0b\u542f\u52a8\u6216\u8005\u5173\u95ed<\/p>\n

\"\"<\/a><\/p>\n

\"\"<\/a><\/p>\n

\u5355\u72ec\u67e5\u770b\u67d0\u4e00\u670d\u52a1\u662f\u5426\u5f00\u673a\u542f\u52a8\u7684\u547d\u4ee4\uff1achkconfig--list\u670d\u52a1\u540d<\/strong><\/p>\n

\u5355\u72ec\u5f00\u542f\u67d0\u4e00\u670d\u52a1\u7684\u547d\u4ee4\uff1a<\/p>\n

chkconfig\u670d\u52a1\u540don<\/strong><\/p>\n

\u5355\u72ec\u5173\u95ed\u67d0\u4e00\u670d\u52a1\u7684\u547d\u4ee4\uff1a<\/p>\n

chkconfig\u670d\u52a1\u540doff<\/strong><\/p>\n

\u67e5\u770b\u67d0\u4e00\u670d\u52a1\u7684\u72b6\u6001\uff1a<\/p>\n

\/etc\/intd.d\/\u670d\u52a1\u540dstatus<\/strong><\/p>\n

\u8bbe\u7f6e\u5b8c\u6210\u4e4b\u540e\uff0c\u91cd\u542f\u4e00\u4e0b\u5373\u53ef<\/p>\n

\"\"<\/a><\/p>\n

\u65b9\u6cd53\uff1a\u7528\u6237\u81ea\u5b9a\u4e49\u5f00\u673a\u7a0b\u5e8f(\/etc\/rc.d\/rc.local)<\/strong><\/span><\/div>\n

\u7528\u6237\u53ef\u4ee5\u5c06\u81ea\u5df1\u4e66\u5199\u7684shellscript\u6587\u4ef6\u653e\u5165\u5176\u4e2d\uff0c\u6216\u8005\u6570\u636e\u5e93\u7684\u81ea\u52a8\uff0cwas\u7b49\u7b49<\/p>\n

\u6bd4\u5982\u8ba9\u6570\u636e\u5e93\u5f00\u673a\u81ea\u542f\uff1a<\/strong><\/p>\n

vi\/etc\/rc.local\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a
\nsu-oracle-c'lsnrctlstart' \u00a0<\/span>\/\/\u8ba9\u76d1\u542c\u542f\u52a8\u8d77\u6765
\nsu-oracle-c'dbstart'\u00a0<\/span>\/\/\u8ba9\u6570\u636e\u5e93\u542f\u52a8\u8d77\u6765<\/p>\n

\"\"<\/a><\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/blog.csdn.net\/sinat_25306771\/article\/details\/52797643<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttp:\/\/gulass.cn\/linux-autostart.html<\/a>\u7f16\u8f91\uff1a\u5f20\u96c4\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u65b9\u6cd51\uff1a.\u5229\u7528ntsysv\u547d\u4ee4\u8fdb\u884c\u8bbe\u7f6e\uff0c\u5229\u7528root\u767b\u9646 \u7ec8\u7aef\u547d\u4ee4\u4e0b\u8f93\u5165ntsysv \u56de\u8f66\uff1b\u5982\u4e0b\u56fe \u5728\u8fd9\u4e2a\u754c\u9762 […]<\/p>\n","protected":false},"author":643,"featured_media":93494,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-93487","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/93487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/643"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=93487"}],"version-history":[{"count":3,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/93487\/revisions"}],"predecessor-version":[{"id":93510,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/93487\/revisions\/93510"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/93494"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=93487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=93487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=93487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}