{"id":2018,"date":"2019-05-26T00:56:33","date_gmt":"2019-05-25T16:56:33","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=2018"},"modified":"2019-05-26T15:26:01","modified_gmt":"2019-05-26T07:26:01","slug":"chage","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/chage","title":{"rendered":"chage\u547d\u4ee4 – \u4fee\u6539\u5e10\u53f7\u548c\u5bc6\u7801\u7684\u6709\u6548\u671f\u9650"},"content":{"rendered":"\n

chage\u547d\u4ee4\u662f\u7528\u6765\u4fee\u6539\u5e10\u53f7\u548c\u5bc6\u7801\u7684\u6709\u6548\u671f\u9650\uff1b\u8fd9\u4e2a\u4fe1\u606f\u7531\u7cfb\u7edf\u7528\u4e8e\u786e\u5b9a\u7528\u6237\u4f55\u65f6\u5fc5\u987b\u66f4\u6539\u5176\u5bc6\u7801\u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-M<\/td>\u5bc6\u7801\u4fdd\u6301\u6709\u6548\u7684\u6700\u5927\u5929\u6570<\/td><\/tr>
-W<\/td>\u7528\u6237\u5bc6\u7801\u5230\u671f\u524d\uff0c\u63d0\u524d\u6536\u5230\u8b66\u544a\u4fe1\u606f\u7684\u5929\u6570<\/td><\/tr>
-E<\/td>\u5e10\u53f7\u5230\u671f\u7684\u65e5\u671f\uff0c\u4f1a\u7981\u6b62\u6b64\u5e10\u53f7<\/td><\/tr>
-d<\/td>\u4e0a\u4e00\u6b21\u66f4\u6539\u7684\u65e5\u671f<\/td><\/tr>
-l<\/td>\u4f8b\u51fa\u5f53\u524d\u7684\u8bbe\u7f6e\u3002\u7531\u975e\u7279\u6743\u7528\u6237\u6765\u786e\u5b9a\u4ed6\u4eec\u7684\u5bc6\u7801\u6216\u5e10\u53f7\u4f55\u65f6\u8fc7\u671f\u3002<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u4f7f\u7528-l\u53c2\u6570\u5217\u51fa\u7528\u6237\u5bc6\u7801\u8fc7\u671f\u7684\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# chage -l root<\/pre>\n\n\n\n

\u4f7f\u7528-M\u53c2\u6570\u8bbe\u7f6eredis\u7528\u6237\u7684\u5bc6\u7801\u6700\u5927\u6709\u6548\u671f\u4e3a100\u5929\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# chage -M  100 redis<\/pre>\n","protected":false},"excerpt":{"rendered":"

chage\u547d\u4ee4\u662f\u7528\u6765\u4fee\u6539\u5e10\u53f7\u548c\u5bc6\u7801\u7684\u6709\u6548\u671f\u9650\uff1b\u8fd9\u4e2a\u4fe1\u606f\u7531\u7cfb\u7edf\u7528\u4e8e\u786e\u5b9a\u7528\u6237\u4f55\u65f6\u5fc5\u987b\u66f4\u6539\u5176\u5bc6\u7801\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1acha […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2018"}],"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=2018"}],"version-history":[{"count":8,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2018\/revisions"}],"predecessor-version":[{"id":2599,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2018\/revisions\/2599"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=2018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=2018"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=2018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}