{"id":2114,"date":"2019-05-28T23:20:31","date_gmt":"2019-05-28T15:20:31","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=2114"},"modified":"2019-05-30T15:24:59","modified_gmt":"2019-05-30T07:24:59","slug":"setenv","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/setenv","title":{"rendered":"setenv\u547d\u4ee4 – \u67e5\u8be2\u6216\u663e\u793a\u73af\u5883\u53d8\u91cf"},"content":{"rendered":"\n

setenv\u547d\u4ee4\u7684\u82f1\u6587\u5168\u79f0\u4e3a\u201cset environment variable\u201d\u3002\u8be5\u547d\u4ee4\u4e3a tsch \u4e2d\u67e5\u8be2\u6216\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u7684\u547d\u4ee4\u3002\u53ef\u4ee5\u5728\u7ebf\u7a0b\u91cc\u7528\u8fd9\u4e2a\u547d\u4ee4\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u7684\u503c\uff0c\u5b9e\u73b0\u7ebf\u7a0b\u4e4b\u95f4\u7684\u53c2\u6570\u4f20\u9012\u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
ENVVAR<\/td>\u6240\u8981\u8bbe\u7f6e\u7684\u73af\u5883\u53d8\u91cf\u7684\u540d<\/td><\/tr>
value<\/td>\u6240\u8981\u8bbe\u7f6e\u7684\u73af\u5883\u53d8\u91cf\u7684\u503c<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u663e\u793a\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n\n\n\n

[root@linuxcool ~] setenv<\/pre>\n\n\n\n

\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n\n\n\n

[root@linuxcool ~] setenv USER lx138<\/pre>\n","protected":false},"excerpt":{"rendered":"

setenv\u547d\u4ee4\u7684\u82f1\u6587\u5168\u79f0\u4e3a\u201cset environment variable\u201d\u3002\u8be5\u547d\u4ee4\u4e3a tsch \u4e2d\u67e5\u8be2\u6216 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2114"}],"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=2114"}],"version-history":[{"count":17,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2114\/revisions"}],"predecessor-version":[{"id":3852,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2114\/revisions\/3852"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=2114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=2114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=2114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}