{"id":5427,"date":"2019-11-21T22:24:56","date_gmt":"2019-11-21T14:24:56","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5427"},"modified":"2019-11-21T22:24:57","modified_gmt":"2019-11-21T14:24:57","slug":"rexec","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/rexec","title":{"rendered":"rexec\u547d\u4ee4 – \u8fdc\u7a0b\u6267\u884c\u6307\u4ee4\u5ba2\u6237\u7aef"},"content":{"rendered":"\n

rexec\u547d\u4ee4\u662f\u8fdc\u7a0b\u6267\u884c\u547d\u4ee4\u670d\u52a1\u5668\u7684\u5ba2\u6237\u7aef\u5de5\u5177\uff0c\u5411\u8fdc\u7a0brexec\u670d\u52a1\u5668\u53d1\u51fa\u6267\u884c\u547d\u4ee4\u7684\u8bf7\u6c42\u3002 <\/p>\n\n\n\n

rexec\u547d\u4ee4\u4ee5\u5ba2\u6237\u673a\/\u670d\u52a1\u5668\u7684\u6a21\u5f0f\u8fd0\u884c\u3002\u8fd0\u884crexec\u547d\u4ee4\u65f6\u9996\u5148\u8981\u542f\u52a8\u8fdc\u7a0b\u4e3b\u673a\u4e0a\u7684rexec\u670d\u52a1\u5668\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f: <\/strong> rexec [\u53c2\u6570] [\u8fdc\u7a0b\u4e3b\u673a\u6216\u547d\u4ee4]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-a<\/td>\u8868\u793a\u8fdc\u7a0b\u547d\u4ee4\u7684\u6807\u51c6\u9519\u8bef\u4e0e\u6807\u51c6\u8f93\u51fa\u76f8\u540c\uff0c\u4e0d\u652f\u6301\u53d1\u9001\u4efb\u610f\u4fe1\u53f7\u5230\u8fdc\u7a0b\u8fdb\u7a0b <\/td><\/tr>
-l<\u7528\u6237\u540d><\/td>\u6307\u5b9a\u8fde\u63a5\u8fdc\u7a0brexec\u670d\u52a1\u5668\u7684\u7528\u6237\u540d <\/td><\/tr>
-p<\u5bc6\u7801><\/td>\u6307\u5b9a\u8fde\u63a5\u8fdc\u7a0brexec\u670d\u52a1\u5668\u7684\u5bc6\u7801 <\/td><\/tr>
-n<\/td>\u660e\u786e\u5730\u63d0\u793a\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801 <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u5728\u8fdc\u7a0b\u4e3b\u673a\u4e0a\u6267\u884cdate\u547d\u4ee4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# rexec linuxcool date<\/pre>\n\n\n\n

\u63d0\u793a\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801\u6267\u884cdate\u547d\u4ee4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# rexec -n linuxcool date<\/pre>\n\n\n\n

\u4f7f\u7528\u5bc6\u7801\u6267\u884cdate\u547d\u4ee4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# rexec -l uesrname -p password linuxcool date<\/pre>\n","protected":false},"excerpt":{"rendered":"

rexec\u547d\u4ee4\u662f\u8fdc\u7a0b\u6267\u884c\u547d\u4ee4\u670d\u52a1\u5668\u7684\u5ba2\u6237\u7aef\u5de5\u5177\uff0c\u5411\u8fdc\u7a0brexec\u670d\u52a1\u5668\u53d1\u51fa\u6267\u884c\u547d\u4ee4\u7684\u8bf7\u6c42\u3002 rexec\u547d\u4ee4\u4ee5\u5ba2 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5427"}],"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=5427"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5427\/revisions"}],"predecessor-version":[{"id":5503,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5427\/revisions\/5503"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}