9.3.1\u00a0\u7ba1\u7406\u8fdc\u7a0b\u4f1a\u8bdd<\/span><\/strong><\/h6>\nTmux\u670d\u52a1\u80fd\u505a\u7684\u4e8b\u60c5\u975e\u5e38\u591a\uff0c\u4f8b\u5982\u521b\u5efa\u4e0d\u95f4\u65ad\u4f1a\u8bdd\u3001\u6062\u590d\u79bb\u7ebf\u5de5\u4f5c\u3001\u5c06\u754c\u9762\u5207\u5206\u4e3a\u4e0d\u540c\u7684\u7a97\u683c\u3001\u5171\u4eab\u4f1a\u8bdd\u7b49\u3002\u4e0b\u9762\u76f4\u63a5\u6572\u51fbtmux\u547d\u4ee4\u8fdb\u5165\u4f1a\u8bdd\u7a97\u53e3\u4e2d\uff0c\u5982\u56fe9-18\u6240\u793a\u3002<\/p>\n
<\/p>\n
\u56fe9-18 Tumx\u670d\u52a1\u7a0b\u5e8f\u4f1a\u8bdd\u754c\u9762<\/p>\n
\u4e0d\u96be\u53d1\u73b0\uff0c\u4f1a\u8bdd\u7a97\u53e3\u7684\u5e95\u90e8\u51fa\u73b0\u4e86\u4e00\u4e2a\u7eff\u8272\u7684\u72b6\u6001\u680f\uff0c\u91cc\u9762\u5206\u522b\u663e\u793a\u7684\u662f\u4f1a\u8bdd\u7f16\u53f7\u3001\u540d\u79f0\u3001\u4e3b\u673a\u540d\u53ca\u7cfb\u7edf\u65f6\u95f4\u3002<\/p>\n
\u9000\u51fa\u4f1a\u8bdd\u7a97\u53e3\u7684\u547d\u4ee4\u662fexit\uff0c\u6572\u51fb\u540e\u5373\u53ef\u8fd4\u56de\u5230\u6b63\u5e38\u7684\u7ec8\u7aef\u754c\u9762\uff0c\u5982\u56fe9-19\u6240\u793a\u3002<\/p>\n
<\/p>\n
\u56fe9-19 \u4ece\u4f1a\u8bdd\u7a97\u53e3\u9000\u56de\u5230\u7ec8\u7aef\u754c\u9762<\/p>\n
\u4f1a\u8bdd\u7a97\u53e3\u7684\u7f16\u53f7\u662f\u4ece0\u5f00\u59cb\u81ea\u52a8\u6392\u5e8f\uff08\u53730\u30011\u30012\u30013\u3001\u2026\u2026\uff09\uff0c\u4f1a\u8bdd\u7a97\u53e3\u6570\u91cf\u5c11\u7684\u65f6\u5019\u8fd8\u6ca1\u5173\u7cfb\uff0c\u6570\u91cf\u591a\u7684\u65f6\u5019\u533a\u5206\u8d77\u6765\u5c31\u5f88\u9ebb\u70e6\u4e86\u3002\u63a5\u4e0b\u6765\u521b\u5efa\u4e00\u4e2a\u6307\u5b9a\u540d\u79f0\u4e3abackup\u7684\u4f1a\u8bdd\u7a97\u53e3\u3002\u8bf7\u5404\u4f4d\u8bfb\u8005\u7559\u5fc3\u89c2\u5bdf\uff0c\u5f53\u5728\u547d\u4ee4\u884c\u4e2d\u6572\u4e0b\u4e0b\u9762\u8fd9\u6761\u547d\u4ee4\u7684\u4e00\u77ac\u95f4\uff0c\u5c4f\u5e55\u4f1a\u5feb\u901f\u95ea\u52a8\u4e00\u4e0b\uff0c\u8fd9\u65f6\u5c31\u5df2\u7ecf\u8fdb\u5165Tmux\u4f1a\u8bdd\u4e2d\u4e86\uff0c\u5728\u91cc\u9762\u6267\u884c\u7684\u4efb\u4f55\u64cd\u4f5c\u90fd\u4f1a\u88ab\u540e\u53f0\u8bb0\u5f55\u4e0b\u6765\u3002<\/p>\n
[root@linuxprobe ~]# tmux new -s backup\r\n<\/pre>\n\u5047\u8bbe\u6211\u4eec\u7a81\u7136\u8981\u53bb\u5fd9\u5176\u4ed6\u4e8b\u60c5\uff0c\u4f46\u4f1a\u8bdd\u7a97\u53e3\u4e2d\u6267\u884c\u7684\u8fdb\u7a0b\u8fd8\u4e0d\u80fd\u88ab\u4e2d\u65ad\uff0c\u6b64\u65f6\u4fbf\u53ef\u4ee5\u7528detach\u53c2\u6570\u5c06\u4f1a\u8bdd\u9690\u85cf\u5230\u540e\u53f0\u3002\u867d\u7136\u770b\u8d77\u6765\u4e0e\u521a\u624d\u6ca1\u6709\u4e0d\u540c\uff0c\u4f46\u5b9e\u9645\u4e0a\u53ef\u4ee5\u770b\u5230\u5f53\u524d\u7684\u4f1a\u8bdd\u6b63\u5728\u5de5\u4f5c\u4e2d\uff1a<\/p>\n
[root@linuxprobe ~]# tmux detach\r\n[detached (from session backup)]<\/pre>\n\u5982\u679c\u89c9\u5f97\u6bcf\u6b21\u8f93\u5165detach\u53c2\u6570\u90fd\u5f88\u9ebb\u70e6\uff0c\u53ef\u4ee5\u76f4\u63a5\u5982\u56fe9-20\u6240\u793a\u5173\u95ed\u4e2d\u65ad\u7a97\u53e3\uff08\u8fd9\u4e0e\u8fdb\u884c\u8fdc\u7a0b\u8fde\u63a5\u65f6\u7a81\u7136\u65ad\u7f51\u5177\u6709\u76f8\u540c\u7684\u6548\u679c\uff09\uff0cTmux\u670d\u52a1\u7a0b\u5e8f\u4f1a\u81ea\u52a8\u5e2e\u6211\u4eec\u8fdb\u884c\u4fdd\u5b58\u3002<\/p>\n
<\/p>\n
\u56fe9-20 \u5f3a\u884c\u5173\u95ed\u4f1a\u8bdd\u7a97\u53e3<\/p>\n
\u8fd9\u6837\u64cd\u4f5c\u4e4b\u540e\uff0c\u670d\u52a1\u548c\u8fdb\u7a0b\u90fd\u4f1a\u4e00\u76f4\u5728\u540e\u53f0\u9ed8\u9ed8\u8fd0\u884c\uff0c\u4e0d\u4f1a\u56e0\u4e3a\u7a97\u53e3\u88ab\u5173\u95ed\u800c\u9020\u6210\u6570\u636e\u4e22\u5931\u3002\u4e0d\u653e\u5fc3\u7684\u8bdd\u53ef\u4ee5\u67e5\u770b\u4e00\u4e0b\u540e\u53f0\u6709\u54ea\u4e9b\u4f1a\u8bdd\uff1a<\/p>\n
[root@linuxprobe ~]# tmux ls\r\nbackup: 1 windows (created Thu Jan 28 15:57:40 2021) [80x23]<\/pre>\n\u5728\u4f20\u7edf\u7684\u8fdc\u7a0b\u63a7\u5236\u4e2d\uff0c\u5982\u679c\u7a81\u7136\u5173\u95ed\u4f1a\u8bdd\u7a97\u53e3\uff0c\u4e00\u5b9a\u4f1a\u5bfc\u81f4\u6b63\u5728\u8fd0\u884c\u7684\u547d\u4ee4\u4e5f\u7a81\u7136\u7ec8\u6b62\uff0c\u4f46\u662f\u5728Tmux\u7684\u4e0d\u95f4\u65ad\u4f1a\u8bdd\u670d\u52a1\u4e2d\u5219\u4e0d\u4f1a\u8fd9\u6837\u3002\u6211\u4eec\u53ea\u9700\u67e5\u770b\u4e00\u4e0b\u521a\u521a\u5173\u95ed\u7684\u79bb\u7ebf\u4f1a\u8bdd\u540d\u79f0\uff0c\u7136\u540e\u5c1d\u8bd5\u6062\u590d\u56de\u6765\uff0c\u8fd9\u4e2a\u4f1a\u8bdd\u5c31\u53ef\u4ee5\u7ee7\u7eed\u5de5\u4f5c\u4e86\u3002\u56de\u5f52\u5230backup\u4f1a\u8bdd\u4e2d\u7684\u65b9\u6cd5\u5f88\u7b80\u5355\uff0c\u76f4\u63a5\u5728tmux\u547d\u4ee4\u540e\u9762\u52a0attach\u548c\u4f1a\u8bdd\u7f16\u53f7\u6216\u4f1a\u8bdd\u540d\u79f0\u5c31\u53ef\u4ee5\u3002\u5173\u95ed\u4f1a\u8bdd\u7a97\u53e3\u4e4b\u524d\u6b63\u5728\u8fdb\u884c\u7684\u4e00\u5207\u5de5\u4f5c\u72b6\u6001\u90fd\u4f1a\u88ab\u539f\u539f\u672c\u672c\u5730\u5448\u73b0\u51fa\u6765\uff0c\u4e1d\u6beb\u4e0d\u53d7\u5f71\u54cd\uff1a<\/p>\n
[root@linuxprobe ~]# tmux attach -t backup<\/pre>\n\u5982\u679c\u4e0d\u518d\u9700\u8981\u4f7f\u7528\u8fd9\u4e2aTmux\u4f1a\u8bdd\u4e86\uff0c\u4e5f\u4e0d\u7528\u5148\u5728tmux\u547d\u4ee4\u540e\u9762\u6dfb\u52a0attach\uff0c\u518d\u6267\u884cexit\u547d\u4ee4\u9000\u51fa\uff0c\u800c\u662f\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528kill\u547d\u4ee4\u6740\u6b7b\u8fd9\u4e2a\u4f1a\u8bdd\u3002<\/p>\n
[root@linuxprobe ~]# tmux attach -t backup\r\n[exited]\r\n[root@linuxprobe ~]# tmux ls\r\nno server running on \/tmp\/tmux-0\/default\r\n<\/pre>\n\u5728\u65e5\u5e38\u7684\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u5176\u5b9e\u5e76\u4e0d\u662f\u5fc5\u987b\u5148\u521b\u5efa\u4f1a\u8bdd\uff0c\u7136\u540e\u518d\u5f00\u59cb\u5de5\u4f5c\u3002\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528tmux\u547d\u4ee4\u6267\u884c\u8981\u8fd0\u884c\u7684\u6307\u4ee4\uff0c\u8fd9\u6837\u547d\u4ee4\u4e2d\u7684\u4e00\u5207\u64cd\u4f5c\u90fd\u4f1a\u88ab\u8bb0\u5f55\u4e0b\u6765\uff0c\u5f53\u547d\u4ee4\u6267\u884c\u7ed3\u675f\u540e\uff0c\u540e\u53f0\u4f1a\u8bdd\u4e5f\u4f1a\u81ea\u52a8\u7ed3\u675f\u3002<\/p>\n
[root@linuxprobe ~]# tmux new \"vim memo.txt\"\r\n<\/pre>\n9.3.2 \u7ba1\u7406\u591a\u7a97\u683c<\/span><\/strong><\/h6>\n\u5728\u5b9e\u9645\u5de5\u4f5c\u4e2d\uff0c\u4e00\u4e2aShell\u7ec8\u7aef\u7a97\u53e3\u603b\u662f\u4e0d\u591f\u7528\uff0c\u8fd9\u600e\u4e48\u529e\u5462\uff1fTmux\u670d\u52a1\u6709\u4e2a\u591a\u7a97\u683c\u529f\u80fd\uff0c\u80fd\u591f\u628a\u4e00\u4e2a\u7ec8\u7aef\u754c\u9762\u6309\u7167\u4e0a\u4e0b\u6216\u5de6\u53f3\u8fdb\u884c\u5207\u5272\uff0c\u4ece\u800c\u4f7f\u5f97\u80fd\u540c\u65f6\u505a\u591a\u4ef6\u4e8b\u60c5\uff0c\u800c\u4e14\u4e4b\u95f4\u4e92\u4e0d\u6253\u6270\uff0c\u7279\u522b\u65b9\u4fbf\u3002<\/p>\n
\u5148\u521b\u5efa\u4e00\u4e2a\u4f1a\u8bdd\u3002\u4f7f\u7528\u201ctmux split-window\u201d\u547d\u4ee4\u53ef\u4ee5\u521b\u5efa\u4e0a\u4e0b\u5207\u5272\u7684\u591a\u7a97\u683c\u7ec8\u7aef\u754c\u9762\uff0c\u5982\u56fe9-21\u6240\u793a\u3002\u4f7f\u7528\u201ctmux split-window -h\u201d\u547d\u4ee4\u53ef\u4ee5\u521b\u5efa\u5de6\u53f3\u5207\u5272\u7684\u591a\u7a97\u683c\u7ec8\u7aef\u754c\u9762\uff0c\u5982\u56fe9-22\u6240\u793a\u3002<\/p>\n
<\/p>\n
\u56fe9-21 \u4e0a\u4e0b\u5207\u5272\u591a\u7a97\u683c<\/p>\n
<\/p>\n
\u56fe9-22 \u4e0a\u4e0b\u5207\u5272\u591a\u7a97\u683c<\/p>\n
\u521b\u5efa\u591a\u7a97\u683c\u7ec8\u7aef\u754c\u9762\u540e\uff0c\u6211\u4eec\u540c\u65f6\u505a\u51e0\u4ef6\u4e8b\u60c5\u90fd\u4e0d\u4f1a\u4e71\u4e86\u3002\u5982\u679c\u89c9\u5f97\u4e24\u4e2a\u7a97\u683c\u8fd8\u4e0d\u591f\uff0c\u90a3\u5c31\u518d\u6267\u884c\u51e0\u6b21\u4e0a\u9762\u7684\u547d\u4ee4\u5427\uff0c\u9000\u51fa\u65f6\u6267\u884cexit\u547d\u4ee4\u5373\u53ef\u3002<\/p>\n
\u5440\uff01\u4e00\u4e0d\u5c0f\u5fc3\u521b\u5efa\u5f97\u592a\u591a\u4e86\uff0c\u5f53\u524d\u6b63\u5728\u4f7f\u7528\u7684\u7a97\u683c\u53d8\u5f97\u7279\u522b\u5c0f\uff0c\u770b\u4e0d\u5230\u8f93\u5165\u5185\u5bb9\u4e86\uff0c\u600e\u4e48\u529e\u5462\uff1f\u4e0d\u8981\u7740\u6025\uff01\u53ef\u4ee5\u540c\u65f6\u6309\u4e0b\u201cCtrl + B +\u65b9\u5411\u952e\u201d\u8c03\u6574\u7a97\u683c\u7684\u5c3a\u5bf8\u3002\u4f8b\u5982\uff0c\u73b0\u5728\u4f7f\u7528\u7684\u7a97\u683c\u6709\u4e9b\u5c0f\uff0c\u60f3\u5411\u53f3\u6269\u5927\u4e00\u4e9b\uff0c\u5219\u540c\u65f6\u5982\u4e0b\u201cCtrl + B +\u53f3\u7bad\u5934\u952e\u201d\u5c31\u884c\u4e86\u3002<\/p>\n
\u5982\u679c\u9700\u8981\u5207\u6362\u5230\u5176\u4ed6\u7a97\u683c\u8fdb\u884c\u5de5\u4f5c\uff0c\u4f46\u53c8\u4e0d\u80fd\u5173\u95ed\u5f53\u524d\u7684\u7a97\u683c\uff0c\u5219\u53ef\u4f7f\u7528\u5982\u88689-4\u6240\u793a\u7684\u547d\u4ee4\u8fdb\u884c\u5207\u6362\u3002<\/p>\n
\u88689-4\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Tmux\u4e0d\u95f4\u65ad\u4f1a\u8bdd\u591a\u7a97\u683c\u5207\u6362\u547d\u4ee4<\/p>\n
\n\n\n\u547d\u4ee4<\/td>\n | \u4f5c\u7528<\/td>\n<\/tr>\n |
\ntmux select-pane -U <\/td>\n | \u5207\u6362\u81f3\u4e0a\u65b9\u7684\u7a97\u683c<\/td>\n<\/tr>\n |
\ntmux select-pane -D <\/td>\n | \u5207\u6362\u81f3\u4e0b\u65b9\u7684\u7a97\u683c<\/td>\n<\/tr>\n |
\ntmux select-pane -L <\/td>\n | \u5207\u6362\u81f3\u5de6\u65b9\u7684\u7a97\u683c<\/td>\n<\/tr>\n |
\ntmux select-pane -R<\/td>\n | \u5207\u6362\u81f3\u53f3\u65b9\u7684\u7a97\u683c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n \u5047\u5982\u60f3\u8c03\u6574\u7a97\u683c\u7684\u4f4d\u7f6e\uff0c\u628a\u4e0a\u9762\u4e0e\u4e0b\u9762\u7684\u7a97\u683c\u4f4d\u7f6e\u4e92\u6362\uff0c\u5219\u53ef\u4ee5\u7528\u5982\u88689-5\u6240\u793a\u7684\u547d\u4ee4\u8fdb\u884c\u4e92\u6362\u3002<\/p>\n \u88689-5\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Tmux\u4e0d\u95f4\u65ad\u4f1a\u8bdd\u591a\u7a97\u683c\u4e92\u6362\u547d\u4ee4<\/p>\n \n\n\n\u547d\u4ee4<\/td>\n | \u4f5c\u7528<\/td>\n<\/tr>\n | \ntmux swap-pane -U<\/td>\n | \u5c06\u5f53\u524d\u7a97\u683c\u4e0e\u4e0a\u65b9\u7684\u7a97\u683c\u4e92\u6362<\/td>\n<\/tr>\n | \ntmux swap-pane -D<\/td>\n | \u5c06\u5f53\u524d\u7a97\u683c\u4e0e\u4e0b\u65b9\u7684\u7a97\u683c\u4e92\u6362<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n \u5982\u56fe9-23\u6240\u793a\uff0c\u539f\u672c\u6267\u884c\u8fc7uptime\u547d\u4ee4\u7684\u7a97\u683c\u5728\u4e0b\u65b9\uff0c\u53ea\u9700\u8981\u5728\u8be5\u7a97\u683c\u4e2d\u6267\u884c\u201ctmux swap-pane -U\u201d\u547d\u4ee4\u5373\u53ef\u4e0e\u4e0a\u65b9\u7a97\u683c\u4e92\u6362\u4f4d\u7f6e\uff0c\u6548\u679c\u5982\u56fe9-24\u6240\u793a\u3002<\/p>\n <\/p>\n \u56fe9-23 \u5207\u6362\u7a97\u683c\u4f4d\u7f6e\u524d<\/p>\n \n\u56fe9-24 \u5207\u6362\u7a97\u683c\u4f4d\u7f6e\u540e<\/p>\n
\u5728\u5de5\u4f5c\u4e2d\uff0c\u901a\u8fc7\u8f93\u5165\u547d\u4ee4\u6765\u5207\u6362\u7a97\u683c\u96be\u514d\u6709\u4e9b\u9ebb\u70e6\uff0c\u5b9e\u9645\u4e0aTmux\u670d\u52a1\u4e3a\u7528\u6237\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u5feb\u6377\u952e\u6765\u6267\u884c\u7a97\u683c\u7684\u5207\u6362\u3002\u65b9\u6cd5\u662f\u5148\u540c\u65f6\u6309\u4e0bCtrl+B\u7ec4\u5408\u952e\uff0c\u7136\u540e\u677e\u624b\u540e\u518d\u8fc5\u901f\u6309\u4e0b\u5176\u4ed6\u540e\u7eed\u6309\u952e\uff0c\u800c\u4e0d\u662f\u4e00\u8d77\u6309\u4e0b\u3002\u7528\u4e8e\u64cd\u4f5c\u4f1a\u8bdd\u7a97\u683c\u7684\u5e38\u89c1\u5feb\u6377\u952e\u5982\u88689-6 \u6240\u793a\u3002<\/p>\n \u88689-6\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Tmux\u4f1a\u8bdd\u7a97\u683c\u76f8\u5173\u7684\u5e38\u7528\u5feb\u6377\u952e<\/p>\n \n\n\n\u5feb\u6377\u952e<\/td>\n | \u4f5c\u7528<\/td>\n<\/tr>\n | \n%<\/td>\n | \u5212\u5206\u5de6\u53f3\u4e24\u4e2a\u7a97\u683c<\/td>\n<\/tr>\n | \n\"<\/td>\n | \u5212\u5206\u4e0a\u4e0b\u4e24\u4e2a\u7a97\u683c<\/td>\n<\/tr>\n | \n;<\/td>\n | \u5207\u6362\u81f3\u4e0a\u4e00\u4e2a\u7a97\u683c<\/td>\n<\/tr>\n | \no<\/td>\n | \u5207\u6362\u81f3\u4e0b\u4e00\u4e2a\u7a97\u683c<\/td>\n<\/tr>\n | \n{<\/td>\n | \u5c06\u5f53\u524d\u7a97\u683c\u4e0e\u4e0a\u4e00\u4e2a\u7a97\u683c\u4f4d\u7f6e\u4e92\u6362<\/td>\n<\/tr>\n | \n}<\/td>\n | \u5c06\u5f53\u524d\u7a97\u683c\u4e0e\u4e0b\u4e00\u4e2a\u7a97\u683c\u4f4d\u7f6e\u4e92\u6362<\/td>\n<\/tr>\n | \nx<\/td>\n | \u5173\u95ed\u7a97\u683c<\/td>\n<\/tr>\n | \n!<\/td>\n | \u5c06\u5f53\u524d\u7a97\u683c\u62c6\u5206\u6210\u72ec\u7acb\u7a97\u53e3<\/td>\n<\/tr>\n | \nq<\/td>\n | \u663e\u793a\u7a97\u683c\u7f16\u53f7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n \u8bf7\u5927\u5bb6\u4e00\u5b9a\u8981\u6ce8\u610f\uff0c\u5728\u901a\u8fc7\u5feb\u6377\u952e\u6765\u64cd\u4f5c\u4f1a\u8bdd\u7a97\u683c\u65f6\uff0c\u4e00\u5b9a\u662f\u5148\u6309\u4e0bCtrl+B\u7ec4\u5408\u952e\u540e\uff0c\u518d\u6572\u51fb\u5176\u4ed6\u6309\u952e\uff0c\u5426\u5219\u64cd\u4f5c\u4e0d\u751f\u6548\u3002\u5047\u8bbe\u73b0\u5728\u6709\u5982\u56fe9-25\u6240\u793a\u7684\u4e24\u4e2a\u7a97\u683c\uff0c\u6211\u4eec\u60f3\u5c06\u8fd9\u4e24\u4e2a\u7a97\u53e3\u7684\u4f4d\u7f6e\u4e92\u6362\u3002\u64cd\u4f5c\u65b9\u6cd5\u662f\u5148\u540c\u65f6\u6309\u4e0bCtrl+B\u7ec4\u5408\u952e\uff0c\u7136\u540e\u677e\u624b\uff0c\u518d\u6309\u4e0b\u201c}\u201d\u952e\uff0c\u5373\u53ef\u5b9e\u73b0\uff0c\u6700\u7ec8\u6548\u679c\u5982\u56fe9-26\u6240\u793a\u3002<\/p>\n \u5728\u5b66\u4f1a\u4e86Tmux\u670d\u52a1\u7684\u8fd9\u4e9b\u64cd\u4f5c\u4e4b\u540e\uff0c\u65e5\u5e38\u7ba1\u7406\u5c31\u4e0d\u6210\u95ee\u9898\u4e86\u3002\u8fd9\u91cc\u63d0\u53ca\u7684\u547d\u4ee4\u548c\u5feb\u6377\u952e\u4e0d\u5efa\u8bae\u6b7b\u8bb0\u786c\u80cc\uff0c\u5de5\u4f5c\u65f6\u53ef\u4ee5\u628a\u4e66\u653e\u5728\u6848\u5934\uff0c\u968f\u7528\u968f\u67e5\u5373\u53ef\u3002<\/p>\n <\/p>\n \u56fe9-25 \u7a97\u683c\u4e92\u6362\u524d<\/p>\n <\/p>\n \u56fe9-26 \u7a97\u683c\u4e92\u6362\u540e<\/p>\n 9.3.3 \u4f1a\u8bdd\u5171\u4eab\u529f\u80fd<\/span><\/strong><\/h6>\nTmux\u670d\u52a1\u4e0d\u4ec5\u53ef\u4ee5\u786e\u4fdd\u7528\u6237\u5728\u6781\u7aef\u60c5\u51b5\u4e0b\u4e5f\u4e0d\u4e22\u5931\u5bf9\u7cfb\u7edf\u7684\u8fdc\u7a0b\u63a7\u5236\uff0c\u4fdd\u8bc1\u4e86\u751f\u4ea7\u73af\u5883\u4e2d\u8fdc\u7a0b\u5de5\u4f5c\u7684\u4e0d\u95f4\u65ad\u6027\uff0c\u800c\u4e14\u5b83\u8fd8\u5177\u6709\u4f1a\u8bdd\u5171\u4eab\u3001\u5206\u5c4f\u5207\u5272\u7a97\u683c\u3001\u4f1a\u8bdd\u9501\u5b9a\u7b49\u5b9e\u7528\u7684\u529f\u80fd\u3002\u5176\u4e2d\uff0c\u4f1a\u8bdd\u5171\u4eab\u529f\u80fd\u662f\u4e00\u4ef6\u5f88\u9177\u7684\u4e8b\u60c5\uff0c\u5f53\u591a\u4e2a\u7528\u6237\u540c\u65f6\u63a7\u5236\u670d\u52a1\u5668\u7684\u65f6\u5019\uff0c\u5b83\u53ef\u4ee5\u628a\u670d\u52a1\u5668\u5c4f\u5e55\u5185\u5bb9\u5171\u4eab\u51fa\u6765\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u6bcf\u4e2a\u7528\u6237\u90fd\u80fd\u591f\u770b\u5230\u76f8\u540c\u7684\u5185\u5bb9\uff0c\u8fd8\u80fd\u4e00\u8d77\u540c\u65f6\u64cd\u4f5c\u3002\u4f1a\u8bdd\u5171\u4eab\u529f\u80fd\u7684\u6280\u672f\u62d3\u6251\u5982\u56fe9-27\u6240\u793a\u3002<\/p>\n <\/p>\n \u56fe9-27\u00a0 \u4f1a\u8bdd\u5171\u4eab\u529f\u80fd\u6280\u672f\u62d3\u6251<\/p>\n \u8981\u5b9e\u73b0\u4f1a\u8bdd\u5171\u4eab\u529f\u80fd\uff0c\u9996\u5148\u4f7f\u7528ssh\u670d\u52a1\u5c06\u5ba2\u6237\u7aefA\u8fdc\u7a0b\u8fde\u63a5\u5230\u670d\u52a1\u5668\uff0c\u968f\u540e\u4f7f\u7528Tmux\u670d\u52a1\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u4f1a\u8bdd\u7a97\u53e3\uff0c\u540d\u79f0\u4e3ashare\uff1a<\/p>\n [root@client A ~]# ssh 192.168.10.10\r\nThe authenticity of host '192.168.10.10 (192.168.10.10)' can't be established.\r\nECDSA key fingerprint is SHA256:5d52kZi1la\/FJK4v4jibLBZhLqzGqbJAskZiME6ZXpQ.\r\nAre you sure you want to continue connecting (yes\/no)? yes<\/strong>\r\nWarning: Permanently added '192.168.10.10' (ECDSA) to the list of known hosts.\r\nroot@192.168.10.10's password: \u6b64\u5904\u8f93\u5165\u670d\u52a1\u5668\u7ba1\u7406\u5458\u5bc6\u7801<\/strong>\r\nActivate the web console with: systemctl enable --now cockpit.socket\r\n\r\nLast login: Fri Jul 24 06:26:58 2020\r\n[root@client A ~]# tmux new -s share\r\n<\/pre>\n\u7136\u540e\uff0c\u4f7f\u7528ssh\u670d\u52a1\u5c06\u5ba2\u6237\u7aefB\u4e5f\u8fdc\u7a0b\u8fde\u63a5\u5230\u670d\u52a1\u5668\uff0c\u5e76\u6267\u884c\u83b7\u53d6\u8fdc\u7a0b\u4f1a\u8bdd\u7684\u547d\u4ee4\u3002\u63a5\u4e0b\u6765\uff0c\u4e24\u53f0\u5ba2\u6237\u7aef\u5c31\u80fd\u770b\u5230\u76f8\u540c\u7684\u5185\u5bb9\u4e86\u3002<\/p>\n [root@client B ~]# ssh 192.168.10.10\r\nThe authenticity of host '192.168.10.10 (192.168.10.10)' can't be established.\r\nECDSA key fingerprint is SHA256:5d52kZi1la\/FJK4v4jibLBZhLqzGqbJAskZiME6ZXpQ.\r\nAre you sure you want to continue connecting (yes\/no)? yes<\/strong>\r\nWarning: Permanently added '192.168.10.10' (ECDSA) to the list of known hosts.\r\nroot@192.168.10.10's password: \u6b64\u5904\u8f93\u5165\u670d\u52a1\u5668\u7ba1\u7406\u5458\u5bc6\u7801<\/strong>\r\nActivate the web console with: systemctl enable --now cockpit.socket\r\n\r\nLast login: Fri Jul 24 06:26:58 2020\r\n[root@client B ~]# tmux attach-session -t share<\/pre>\n\u64cd\u4f5c\u5b8c\u6210\u540e\uff0c\u4e24\u53f0\u5ba2\u6237\u7aef\u7684\u6240\u6709\u7ec8\u7aef\u4fe1\u606f\u90fd\u4f1a\u88ab\u5b9e\u65f6\u540c\u6b65\uff0c\u5b83\u4eec\u53ef\u4ee5\u4e00\u8d77\u5171\u4eab\u540c\u4e00\u4e2a\u4f1a\u8bdd\u7a97\u53e3\uff0c\u7279\u522b\u65b9\u4fbf\u3002\u4e3a\u4e86\u8ba9\u5927\u5bb6\u66f4\u597d\u5730\u611f\u53d7\u4f1a\u8bdd\u5171\u4eab\u529f\u80fd\u7684\u5f3a\u5927\u4e4b\u5904\uff0c\u8bfb\u8005\u53ef\u4ee5\u4ece\u4e24\u53f0\u4e0d\u540c\u7684\u5ba2\u6237\u7aef\u540c\u65f6\u8fdc\u7a0b\u63a7\u5236\u5230\u670d\u52a1\u5668\u4e0a\u9762\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u5728\u540c\u4e00\u53f0\u7535\u8111\u4e0a\u521b\u5efa\u51fa\u4e24\u4e2a\u7a97\u683c\uff08\u89c1\u56fe9-28\uff09\u6765\u6a21\u62df\u8fd9\u4e00\u884c\u4e3a\uff0c\u66f4\u80fd\u6e05\u6670\u5730\u770b\u5230\u6570\u636e\u88ab\u540c\u6b65\u7684\u8fc7\u7a0b\u3002<\/p>\n <\/p>\n \u56fe9-28 \u7ec8\u7aef\u754c\u9762\u8fdb\u884c\u4f1a\u8bdd\u540c\u6b65<\/p>\n 9.4 \u68c0\u7d22\u65e5\u5fd7\u4fe1\u606f<\/strong><\/span><\/h5>\nLinux\u7cfb\u7edf\u62e5\u6709\u5341\u5206\u5f3a\u5927\u4e14\u7075\u6d3b\u7684\u65e5\u5fd7\u7cfb\u7edf\uff0c\u7528\u4e8e\u4fdd\u5b58\u51e0\u4e4e\u6240\u6709\u7684\u64cd\u4f5c\u8bb0\u5f55\u548c\u670d\u52a1\u8fd0\u884c\u72b6\u6001\uff0c\u5e76\u4e14\u6309\u7167\u201c\u62a5\u9519\u201d\u201c\u8b66\u544a\u201d\u201c\u63d0\u793a\u201d\u548c\u201c\u5176\u4ed6\u201d\u7b49\u6807\u6ce8\u8fdb\u884c\u4e86\u5206\u7c7b\u3002\u8fd0\u7ef4\u7ba1\u7406\u5458\u53ef\u4ee5\u6839\u636e\u6240\u9700\u7684\u4fe1\u606f\u8fdb\u884c\u68c0\u7d22\uff0c\u5feb\u901f\u627e\u51fa\u60f3\u8981\u7684\u4fe1\u606f\uff0c\u56e0\u6b64\u5bf9\u4e8e\u4e86\u89e3\u7cfb\u7edf\u8fd0\u884c\u72b6\u6001\u6709\u7740\u4e0d\u9519\u7684\u5e2e\u52a9\u4f5c\u7528\u3002<\/p>\n \u5728RHEL 8\u7cfb\u7edf\u4e2d\uff0c\u9ed8\u8ba4\u7684\u65e5\u5fd7\u670d\u52a1\u7a0b\u5e8f\u662frsyslog\u3002\u53ef\u4ee5\u5c06rsyslog\u7406\u89e3\u6210\u4e4b\u524d\u7684syslogd\u670d\u52a1\u7684\u589e\u5f3a\u7248\u672c\uff0c\u5b83\u66f4\u52a0\u6ce8\u91cd\u65e5\u5fd7\u7684\u5b89\u5168\u6027\u548c\u6027\u80fd\u6307\u6807\u3002\u4e3a\u4e86\u4fbf\u4e8e\u65e5\u540e\u7684\u68c0\u7d22\uff0c\u4e0d\u540c\u7684\u65e5\u5fd7\u4fe1\u606f\u4f1a\u88ab\u5199\u5165\u5230\u4e0d\u540c\u7684\u6587\u4ef6\u4e2d\u3002\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u5e38\u89c1\u7684\u65e5\u5fd7\u6587\u4ef6\u5982\u88689-7\u6240\u793a\u3002<\/p>\n \u88689-7\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5e38\u89c1\u7684\u65e5\u5fd7\u6587\u4ef6\u4fdd\u5b58\u8def\u5f84<\/p>\n \n\n\n\u6587\u4ef6\u8def\u5f84\u53ca\u547d\u4ee4<\/td>\n | \u4f5c\u7528<\/td>\n<\/tr>\n | \n\/var\/log\/boot.log<\/td>\n | \u7cfb\u7edf\u5f00\u673a\u81ea\u68c0\u4e8b\u4ef6\u53ca\u5f15\u5bfc\u8fc7\u7a0b\u7b49\u4fe1\u606f<\/td>\n<\/tr>\n | \n\/var\/log\/lastlog<\/td>\n | \u7528\u6237\u767b\u5f55\u6210\u529f\u65f6\u95f4\u3001\u7ec8\u7aef\u540d\u79f0\u53caIP\u5730\u5740\u7b49\u4fe1\u606f<\/td>\n<\/tr>\n | \n\/var\/log\/btmp<\/td>\n | \u8bb0\u5f55\u767b\u5f55\u5931\u8d25\u7684\u65f6\u95f4\u3001\u7ec8\u7aef\u540d\u79f0\u53caIP\u5730\u5740\u7b49\u4fe1\u606f<\/td>\n<\/tr>\n | \n\/var\/log\/messages <\/td>\n | \u7cfb\u7edf\u53ca\u5404\u4e2a\u670d\u52a1\u7684\u8fd0\u884c\u548c\u62a5\u9519\u4fe1\u606f<\/td>\n<\/tr>\n | \n\/var\/log\/secure<\/td>\n | \u7cfb\u7edf\u5b89\u5168\u76f8\u5173\u7684\u4fe1\u606f<\/td>\n<\/tr>\n | \n\/var\/log\/wtmp<\/td>\n | \u7cfb\u7edf\u542f\u52a8\u4e0e\u5173\u673a\u7b49\u76f8\u5173\u4fe1\u606f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n \u5728\u65e5\u5e38\u5de5\u4f5c\u4e2d\uff0c\/var\/log\/message\u8fd9\u4e2a\u7efc\u5408\u6027\u7684\u6587\u4ef6\u7528\u5f97\u6700\u591a\u3002\u5728\u5904\u7406Linux\u7cfb\u7edf\u4e2d\u51fa\u73b0\u7684\u5404\u79cd\u6545\u969c\u65f6\uff0c\u4e00\u822c\u662f\u6700\u5148\u53d1\u73b0\u6545\u969c\u7684\u75c7\u72b6\uff0c\u800c\u627e\u5230\u6545\u969c\u7684\u539f\u56e0\u5219\u4e00\u5b9a\u79bb\u4e0d\u5f00\u65e5\u5fd7\u4fe1\u606f\u7684\u5e2e\u5fd9\u3002<\/p>\n \u4ece\u7406\u8bba\u4e0a\u8bb2\uff0c\u65e5\u5fd7\u6587\u4ef6\u5206\u4e3a\u4e0b\u97623\u79cd\u7c7b\u578b\u3002<\/p>\n \u7cfb\u7edf\u65e5\u5fd7<\/strong>\uff1a\u4e3b\u8981\u8bb0\u5f55\u7cfb\u7edf\u7684\u8fd0\u884c\u60c5\u51b5\u548c\u5185\u6838\u4fe1\u606f\u3002<\/p>\n\u7528\u6237\u65e5\u5fd7<\/strong>\uff1a\u4e3b\u8981\u8bb0\u5f55\u7528\u6237\u7684\u8bbf\u95ee\u4fe1\u606f\uff0c\u5305\u542b\u7528\u6237\u540d\u3001\u7ec8\u7aef\u540d\u79f0\u3001\u767b\u5165\u53ca\u9000\u51fa\u65f6\u95f4\u3001\u6765\u6e90IP\u5730\u5740\u548c\u6267\u884c\u8fc7\u7684\u64cd\u4f5c\u7b49\u3002<\/p>\n\u7a0b\u5e8f\u65e5\u5fd7<\/strong>\uff1a\u7a0d\u5fae\u5927\u4e00\u4e9b\u7684\u670d\u52a1\u4e00\u822c\u90fd\u4f1a\u4fdd\u5b58\u4e00\u4efd\u4e0e\u5176\u540c\u540d\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u91cc\u9762\u8bb0\u5f55\u7740\u670d\u52a1\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u5404\u79cd\u4e8b\u4ef6\u7684\u4fe1\u606f\uff1b\u6bcf\u4e2a\u670d\u52a1\u7a0b\u5e8f\u90fd\u6709\u81ea\u5df1\u72ec\u7acb\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u4e14\u683c\u5f0f\u76f8\u5dee\u8f83\u5927\u3002<\/p><\/blockquote>\n\u53ea\u6709\u5feb\u901f\u5730\u5b9a\u4f4d\u6545\u969c\u70b9\uff0c\u624d\u80fd\u5bf9\u75c7\u4e0b\u836f\uff0c\u53ca\u65f6\u89e3\u51b3\u5404\u79cd\u7cfb\u7edf\u95ee\u9898\u3002<\/p>\n \u4e0a\u9762\u63d0\u5230\uff0c\u6bcf\u4e2a\u7a0d\u5fae\u5927\u4e00\u4e9b\u7684\u670d\u52a1\u90fd\u6709\u81ea\u5df1\u72ec\u7acb\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u4e3a\u4e86\u8ba9\u7528\u6237\u5728\u68c0\u7d22\u4fe1\u606f\u65f6\u4e0d\u81f3\u4e8e\u7279\u522b\u9ebb\u70e6\uff0cjournalctl\u547d\u4ee4\u5e94\u8fd0\u800c\u751f\u3002journalctl\u547d\u4ee4\u7528\u4e8e\u68c0\u7d22\u548c\u7ba1\u7406\u7cfb\u7edf\u65e5\u5fd7\u4fe1\u606f\uff0c\u82f1\u6587\u5168\u79f0\u4e3a\u201cjournal control\u201d\uff0c\u8bed\u6cd5\u683c\u5f0f\u4e3a\u201cjournalctl\u53c2\u6570\u201d\u3002\u5b83\u53ef\u4ee5\u6839\u636e\u4e8b\u4ef6\u3001\u7c7b\u578b\u3001\u670d\u52a1\u540d\u79f0\u7b49\u4fe1\u606f\u8fdb\u884c\u4fe1\u606f\u68c0\u7d22\uff0c\u4ece\u800c\u5927\u5927\u63d0\u9ad8\u4e86\u65e5\u5e38\u6392\u9519\u7684\u6548\u7387\u3002journalctl\u547d\u4ee4\u7684\u5e38\u89c1\u53c2\u6570\u5982\u88689-8\u6240\u793a\u3002\u5927\u5bb6\u53ef\u4ee5\u5148\u6df7\u4e2a\u8138\u719f\uff0c\u7136\u540e\u518d\u5f00\u59cb\u5b9e\u9a8c\u3002<\/p>\n \u88689-7\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 journalctl\u547d\u4ee4\u4e2d\u5e38\u7528\u6309\u952e\u4ee5\u53ca\u4f5c\u7528<\/p>\n \n\n\n\u53c2\u6570<\/td>\n | \u4f5c\u7528<\/td>\n<\/tr>\n | \n-k<\/td>\n | \u5185\u6838\u65e5\u5fd7<\/td>\n<\/tr>\n | \n-b<\/td>\n | \u542f\u52a8\u65e5\u5fd7<\/td>\n<\/tr>\n | \n-u<\/td>\n | \u6307\u5b9a\u670d\u52a1<\/td>\n<\/tr>\n | \n-n<\/td>\n | \u6307\u5b9a\u6761\u6570<\/td>\n<\/tr>\n | \n-p<\/td>\n | \u6307\u5b9a\u7c7b\u578b<\/td>\n<\/tr>\n | \n-f<\/td>\n | \u5b9e\u65f6\u5237\u65b0\uff08\u8ffd\u8e2a\u65e5\u5fd7\uff09<\/td>\n<\/tr>\n | \n--since<\/td>\n | \u6307\u5b9a\u65f6\u95f4<\/td>\n<\/tr>\n | \n--disk-usage<\/td>\n | \u5360\u7528\u7a7a\u95f4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n \u73b0\u5728\u51c6\u5907\u52a8\u624b\u52a8\u624b\u64cd\u7ec3\u8d77\u6765\uff01\u9996\u5148\u67e5\u770b\u7cfb\u7edf\u4e2d\u6700\u540e5\u6761\u65e5\u5fd7\u4fe1\u606f\uff1a<\/p>\n [root@linuxprobe ~]# journalctl -n 5 \r\n-- Logs begin at Fri 2020-07-24 05:59:38 CST, end at Sun 2021-01-31 13:39:51 CS>\r\nJan 31 13:33:54 localhost.localdomain systemd[1]: Started Fingerprint Authentic>\r\nJan 31 13:33:55 localhost.localdomain gnome-keyring-daemon[2533]: couldn't init>\r\nJan 31 13:33:55 localhost.localdomain gdm-password][4983]: gkr-pam: unlocked lo>\r\nJan 31 13:33:56 localhost.localdomain NetworkManager[1203]: [1612071236>\r\nJan 31 13:39:51 localhost.localdomain cupsd[1230]: REQUEST localhost - - \"POST >\r\nlines 1-6\/6 (END)\r\n<\/pre>\n\u8fd8\u53ef\u4ee5\u4f7f\u7528-f\u53c2\u6570\u5b9e\u65f6\u5237\u65b0\u65e5\u5fd7\u7684\u6700\u65b0\u5185\u5bb9\uff08\u8fd9\u4e0e\u7b2c2\u7ae0\u4ecb\u7ecd\u7684tail -f \/var\/log\/message\u547d\u4ee4\u7684\u6548\u679c\u76f8\u540c\uff09\uff1a<\/p>\n [root@linuxprobe ~]# journalctl -f \r\n-- Logs begin at Fri 2020-07-24 05:59:38 CST. --\r\nJan 31 13:33:54 localhost.localdomain dbus-daemon[1058]: [system] Activating via systemd: service name='net.reactivated.Fprint' unit='fprintd.service' requested by ':1.172' (uid=0 pid=2600 comm=\"\/usr\/bin\/gnome-shell \" label=\"unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023\")\r\nJan 31 13:33:54 localhost.localdomain systemd[1]: Starting Fingerprint Authentication Daemon...\r\nJan 31 13:33:54 localhost.localdomain dbus-daemon[1058]: [system] Successfully activated service 'net.reactivated.Fprint'\r\nJan 31 13:33:54 localhost.localdomain systemd[1]: Started Fingerprint Authentication Daemon.\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026<\/pre>\n\u5728rsyslog\u670d\u52a1\u7a0b\u5e8f\u4e2d\uff0c\u65e5\u5fd7\u6839\u636e\u91cd\u8981\u7a0b\u5ea6\u88ab\u5206\u4e3a9\u4e2a\u7b49\u7ea7\uff0c\u5982\u88689-9\u6240\u793a\u3002\u8fd9\u6837\u7684\u597d\u5904\u662f\uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u51fb\u6700\u91cd\u8981\u7684\u4fe1\u606f\uff0c\u800c\u4e0d\u7528\u62c5\u5fc3\u4f1a\u88ab\u6d77\u5578\u822c\u7684\u8f93\u51fa\u5185\u5bb9\u6240\u6df9\u6ca1\u3002\u5927\u5bb6\u53ef\u4ee5\u5c06\u88689-9\u7559\u5b58\uff0c\u4ee5\u5907\u65e5\u540e\u5de5\u4f5c\u4e2d\u8fdb\u884c\u67e5\u9605\u3002<\/p>\n \u88689-9\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u65e5\u5fd7\u4fe1\u606f\u767b\u8bb0\u5206\u7c7b<\/p>\n \n\n\n\u65e5\u5fd7\u7b49\u7ea7<\/td>\n | \u8bf4\u660e\u4ecb\u7ecd<\/td>\n<\/tr>\n | \nemerg<\/td>\n | \u7cfb\u7edf\u51fa\u73b0\u4e25\u91cd\u6545\u969c\uff0c\u5185\u6838\u5d29\u6e83\u7b49\u60c5\u51b5<\/td>\n<\/tr>\n | \nalert<\/td>\n | \u5e94\u7acb\u5373\u4fee\u590d\u7684\u6545\u969c\uff0c\u6570\u636e\u5e93\u635f\u574f\u7b49\u60c5\u51b5<\/td>\n<\/tr>\n | \ncrit<\/td>\n | \u5371\u9669\u8f83\u9ad8\u7684\u6545\u969c\uff0c\u786c\u76d8\u635f\u574f\u5bfc\u81f4\u7a0b\u5e8f\u8fd0\u884c\u5931\u8d25\u7684\u60c5\u51b5<\/td>\n<\/tr>\n | \nerr<\/td>\n | \u4e00\u822c\u5371\u9669\u7684\u6545\u969c\uff0c\u67d0\u4e2a\u670d\u52a1\u542f\u52a8\u6216\u8fd0\u884c\u5931\u8d25\u7684\u60c5\u51b5<\/td>\n<\/tr>\n | \nwarning<\/td>\n | \u8b66\u544a\u4fe1\u606f\uff0c\u67d0\u4e2a\u670d\u52a1\u53c2\u6570\u6216\u529f\u80fd\u9519\u8bef\u7684\u60c5\u51b5<\/td>\n<\/tr>\n | \nnotice<\/td>\n | \u4e00\u822c\u65e0\u5371\u9669\u7684\u6545\u969c\uff0c\u53ea\u662f\u9700\u8981\u5904\u7406\u7684\u60c5\u51b5<\/td>\n<\/tr>\n | \ninfo<\/td>\n | \u901a\u7528\u6027\u6d88\u606f\uff0c\u7ed9\u7528\u6237\u63d0\u793a\u4e00\u4e9b\u6709\u7528\u4fe1\u606f<\/td>\n<\/tr>\n | \ndebug<\/td>\n | \u8c03\u8bd5\u7a0b\u5e8f\u6240\u4ea7\u751f\u7684\u4fe1\u606f<\/td>\n<\/tr>\n | \nnone<\/td>\n | \u6ca1\u6709\u4f18\u5148\u7ea7\uff0c\u4e0d\u505a\u65e5\u5fd7\u8bb0\u5f55<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n \u5982\u679c\u53ea\u60f3\u770b\u7cfb\u7edf\u4e2d\u8f83\u9ad8\u7ea7\u522b\u7684\u62a5\u9519\u4fe1\u606f\uff0c\u53ef\u4ee5\u5728journalctl\u547d\u4ee4\u4e2d\u7528-p\u53c2\u6570\u8fdb\u884c\u6307\u5b9a\uff1a<\/p>\n [root@linuxprobe ~]# journalctl -p crit\r\n-- Logs begin at Fri 2020-07-24 05:59:38 CST, end at Sun 2021-01-31 15:06:07 CST. --\r\nJul 24 05:59:38 localhost.localdomain kernel: Detected CPU family 6 model 158 stepping 13\r\nJul 24 05:59:38 localhost.localdomain kernel: Warning: Intel Processor - this hardware has not undergone testing by Red Hat and might not be certified. Please consult https:\/\/hardware.redhat.com for certified hardware.\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\n<\/pre>\n\u6211\u4eec\u4e0d\u4ec5\u80fd\u591f\u6839\u636e\u65e5\u5fd7\u7b49\u7ea7\u8fdb\u884c\u68c0\u7d22\uff0c\u8fd8\u53ef\u4ee5\u7528--since\u53c2\u6570\u6309\u7167\u4eca\u65e5\uff08today\uff09\u3001\u8fd1N<\/em>\u5c0f\u65f6\uff08hour\uff09\u3001\u6307\u5b9a\u65f6\u95f4\u8303\u56f4\u7684\u683c\u5f0f\u8fdb\u884c\u68c0\u7d22\uff0c\u627e\u51fa\u6700\u8fd1\u7684\u65e5\u5fd7\u6570\u636e\u3002\u6765\u770b\u4e0b\u9762\u51e0\u4e2a\u4f8b\u5b50\u3002<\/p>\n\u4ec5\u67e5\u8be2\u4eca\u65e5\u7684\u65e5\u5fd7\u4fe1\u606f\uff1a<\/p>\n [root@linuxprobe ~]# journalctl --since today\r\n-- Logs begin at Fri 2020-07-24 05:59:38 CST, end at Sun 2021-01-31 15:10:01 CST. --\r\nJan 31 12:48:25 localhost.localdomain systemd[1]: Starting update of the root trust anchor >\r\nJan 31 12:48:25 localhost.localdomain rsyslogd[1392]: imjournal: sd_journal_get_cursor() fail>\r\nJan 31 12:48:25 localhost.localdomain rsyslogd[1392]: imjournal: journal reloaded... [v8.3>\r\nJan 31 12:48:25 localhost.localdomain systemd[1]: Started update of the root trust anchor for>\r\nJan 31 12:48:25 localhost.localdomain sssd[kcm][2764]: Shutting down\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\n<\/pre>\n\u4ec5\u67e5\u8be2\u6700\u8fd11\u5c0f\u65f6\u7684\u65e5\u5fd7\u4fe1\u606f\uff1a<\/p>\n [root@linuxprobe ~]# journalctl --since \"-1 hour\"\r\n-- Logs begin at Fri 2020-07-24 05:59:38 CST, end at Sun 2021-01-31 15:10:01 CST. --\r\nJan 31 14:25:36 localhost.localdomain systemd[1]: Starting dnf makecache...\r\nJan 31 14:25:36 localhost.localdomain dnf[5516]: Updating Subscription Management repositories.\r\nJan 31 14:25:36 localhost.localdomain dnf[5516]: Unable to read consumer identity\r\nJan 31 14:25:36 localhost.localdomain dnf[5516]: This system is not registered to Red Hat>\r\nJan 31 14:25:36 localhost.localdomain dnf[5516]: Metadata cache refreshed recently.\r\nJan 31 14:25:36 localhost.localdomain systemd[1]: Started dnf makecache.\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\n<\/pre>\n\u4ec5\u67e5\u8be212\u70b9\u6574\u523014\u70b9\u6574\u7684\u65e5\u5fd7\u4fe1\u606f\uff1a<\/p>\n [root@linuxprobe ~]# journalctl --since \"12:00\" --until \"14:00\"\r\n-- Logs begin at Fri 2020-07-24 05:59:38 CST, end at Sun 2021-01-31 15:10:01 CST. --\r\nJan 31 12:48:25 localhost.localdomain systemd[1]: Starting update of the root trust anchor>\r\nJan 31 12:48:25 localhost.localdomain rsyslogd[1392]: imjournal: sd_journal_get_cursor()>\r\nJan 31 12:48:25 localhost.localdomain rsyslogd[1392]: imjournal: journal reloaded... [v8.37>\r\nJan 31 12:48:25 localhost.localdomain systemd[1]: Started update of the root trust anchor>\r\nJan 31 12:48:25 localhost.localdomain sssd[kcm][2764]: Shutting down\r\nJan 31 12:48:30 localhost.localdomain systemd[1]: Starting SSSD Kerberos Cache Manager...\r\nJan 31 12:48:30 localhost.localdomain systemd[1]: Started SSSD Kerberos Cache Manager.\r\nJan 31 12:48:30 localhost.localdomain sssd[kcm][3981]: Starting up\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\n<\/pre>\n\u4ec5\u67e5\u8be2\u4ece2020\u5e747\u67081\u65e5\u81f32020\u5e748\u67081\u65e5\u7684\u65e5\u5fd7\u4fe1\u606f\uff1a<\/p>\n [root@linuxprobe ~]# journalctl --since \"2020-07-01\" --until \"2020-08-01\"\r\n-- Logs begin at Fri 2020-07-24 05:59:38 CST, end at Sun 2021-01-31 15:10:01 CST. --\r\nJul 24 05:59:38 localhost.localdomain kernel: Linux version 4.18.0-80.el8.x86_64 (mockbuild>\r\nJul 24 05:59:38 localhost.localdomain kernel: Command line: BOOT_IMAGE=(hd0,msdos1)\/vmlinuz>\r\nJul 24 05:59:38 localhost.localdomain kernel: Disabled fast string operations\r\nJul 24 05:59:38 localhost.localdomain kernel: x86\/fpu: Supporting XSAVE feature 0x001: 'x87>\r\nJul 24 05:59:38 localhost.localdomain kernel: x86\/fpu: Supporting XSAVE feature 0x002: 'SSE>\r\nJul 24 05:59:38 localhost.localdomain kernel: x86\/fpu: Supporting XSAVE feature 0x004: 'AVX>\r\nJul 24 05:59:38 localhost.localdomain kernel: x86\/fpu: xstate_offset[2]: 576, xstate_sizes>\r\nJul 24 05:59:38 localhost.localdomain kernel: x86\/fpu: Enabled xstate features 0x7, context>\r\nJul 24 05:59:38 localhost.localdomain kernel: BIOS-provided physical RAM map:\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\n<\/pre>\n\u4e0b\u9762\u6211\u4eec\u6765\u770b\u4e2a\u4e0d\u4e00\u6837\u7684\uff1a\u67e5\u8be2\u6307\u5b9a\u670d\u52a1\u7684\u65e5\u5fd7\u4fe1\u606f\u3002\u5728\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u6240\u6709\u7684\u65e5\u5fd7\u4fe1\u606f\u90fd\u662f\u6df7\u5728\u4e00\u8d77\u7684\u3002\u5982\u679c\u60f3\u770b\u5177\u4f53\u67d0\u9879\u670d\u52a1\u7684\u65e5\u5fd7\u4fe1\u606f\uff0c\u53ef\u4ee5\u4f7f\u7528_SYSTEMD_UNIT\u53c2\u6570\u8fdb\u884c\u67e5\u8be2\uff0c\u670d\u52a1\u540d\u79f0\u7684\u540e\u9762\u8981\u6709\u201c.service\u201d\uff0c\u8fd9\u662f\u6807\u51c6\u670d\u52a1\u540d\u79f0\u7684\u5199\u6cd5\u3002<\/p>\n [root@linuxprobe ~]# journalctl -u sshd\r\n-- Logs begin at Mon 2020-09-14 15:35:27 CST, end at Sun 2021-01-31 17:26:15 CST. --\r\nNov 09 13:50:03 iZuf61gqesu0zmrcsma8x4Z sshd[1218]: Server listening on 0.0.0.0 port 22.\r\nNov 09 13:58:45 iZuf61gqesu0zmrcsma8x4Z sshd[1218]: Received signal 15; terminating.\r\n-- Reboot --\r\nNov 09 13:59:29 iZuf61gqesu0zmrcsma8x4Z sshd[1127]: Server listening on 0.0.0.0 port 22.\r\nNov 09 14:12:12 iZuf61gqesu0zmrcsma8x4Z sshd[1262]: Accepted password for root from 111.196\r\nNov 09 14:12:12 iZuf61gqesu0zmrcsma8x4Z sshd[1262]: pam_unix(sshd:session): session opened\r\nNov 09 14:14:31 iZuf61gqesu0zmrcsma8x4Z sshd[1127]: Received signal 15; terminating.\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026<\/pre>\n\u606d\u559c\u60a8\uff01\u53c8\u5b66\u4e60\u5b8c\u4e86\u4e00\u7ae0\u3002\u6309\u7167\u672c\u4e66\u5185\u5bb9\u7ed3\u6784\u7684\u5212\u5206\uff0c\u4ece\u7b2c10\u7ae0\u5f00\u59cb\u5c06\u4ecb\u7ecd\u5404\u79cd\u670d\u52a1\u7684\u914d\u7f6e\u65b9\u6cd5\u3002\u968f\u7740\u5b9e\u9a8c\u7684\u6210\u529f\uff0c\u76f8\u4fe1\u5927\u5bb6\u7684\u5b66\u4e60\u4e50\u8da3\u4e5f\u4f1a\u7ffb\u500d\u63d0\u5347\u3002\u4e00\u5b9a\u8981\u575a\u6301\u4e0b\u53bb\u54e6\uff01<\/p>\n \u51fa\u73b0\u95ee\u9898?\u5927\u80c6\u63d0\u95ee!<\/strong><\/span><\/p>\n\u56e0\u8bfb\u8005\u4eec\u786c\u4ef6\u4e0d\u540c\u6216\u64cd\u4f5c\u9519\u8bef\u90fd\u53ef\u80fd\u5bfc\u81f4\u5b9e\u9a8c\u914d\u7f6e\u51fa\u9519\uff0c\u8bf7\u8010\u5fc3\u518d\u4ed4\u7ec6\u770b\u770b\u64cd\u4f5c\u6b65\u9aa4\u5427\uff0c\u4e0d\u8981\u6c14\u9981~<\/p>\n Linux\u6280\u672f\u4ea4\u6d41\u5b66\u4e60\u8bf7\u52a0\u8bfb\u8005\u7fa4\uff08\u63a8\u8350<\/span><\/strong>\uff09\uff1ahttps:\/\/q13zd.cn\/club<\/a><\/p>\n*\u672c\u7fa4\u7279\u8272\uff1a\u786e\u4fdd\u6bcf\u4e00\u4f4d\u7fa4\u53cb\u90fd\u662f\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b\u7684\u8bfb\u8005\uff0c\u7b54\u7591\u66f4\u6709\u9488\u5bf9\u6027\uff0c\u4e0d\u5b9a\u671f\u9886\u53d6\u5b9a\u5236\u793c\u54c1\u3002<\/p><\/blockquote>\n \u672c\u7ae0\u8282\u7684\u590d\u4e60\u4f5c\u4e1a<\/span>(\u7b54\u6848\u5c31\u5728\u95ee\u9898\u7684\u4e0b\u4e00\u884c\u54e6\uff0c\u7528\u9f20\u6807\u9009\u4e2d\u5373\u53ef\u770b\u5230\u7684~)<\/strong><\/span><\/p>\n1\uff0e\u5728Linux\u7cfb\u7edf\u4e2d\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u914d\u7f6e\u7f51\u7edc\u53c2\u6570\uff0c\u8bf7\u5217\u4e3e\u51e0\u79cd\u3002<\/p>\n \u7b54\uff1a<\/strong>\u914d\u7f6e\u7f51\u7edc\u53c2\u6570\u53ef\u4ee5\u4f7f\u7528nmtui\u547d\u4ee4\u3001nmcli\u547d\u4ee4\u3001nm-connection-editor\u547d\u4ee4\u6216\u8005\u76f4\u63a5\u7f16\u8f91\u7f51\u7edc\u914d\u7f6e\u6587\u4ef6\u6765\u5b9e\u73b0\u5bf9\u7f51\u7edc\u53c2\u6570\u7684\u4fee\u6539\u3002<\/span><\/p>\n2\uff0e\u5728RHEL 8\u7cfb\u7edf\u4e2d\u4f7f\u7528\u7f51\u7edc\u4f1a\u8bdd\u6280\u672f\u7684\u76ee\u7684\u662f\u4ec0\u4e48\uff1f<\/p>\n \u7b54\uff1a<\/strong>\u4f7f\u7528nmcli\u547d\u4ee4\u6765\u7ba1\u7406\u7f51\u7edc\u4f1a\u8bdd\u7684\u76ee\u7684\u662f\u4e3a\u4e86\u5feb\u901f\u5207\u6362\u7f51\u7edc\u53c2\u6570\uff0c\u4ee5\u4fbf\u9002\u5e94\u4e0d\u540c\u7684\u5de5\u4f5c\u573a\u666f\u3002<\/span><\/p>\n3\uff0e\u8bf7\u7b80\u8ff0\u7f51\u5361\u7ed1\u5b9a\u6280\u672fbalaner-rr\u6a21\u5f0f\u7684\u7279\u70b9\u3002<\/p>\n \u7b54\uff1a<\/strong>\u5e73\u65f6\u4e24\u5757\u7f51\u5361\u5747\u5de5\u4f5c\uff0c\u4e14\u81ea\u52a8\u5907\u63f4\uff0c\u65e0\u987b\u4ea4\u6362\u673a\u8bbe\u5907\u63d0\u4f9b\u8f85\u52a9\u652f\u6301\u3002<\/span><\/p>\n4\uff0e\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u5f53\u901a\u8fc7\u4fee\u6539\u5176\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u53c2\u6570\u6765\u914d\u7f6e\u670d\u52a1\u7a0b\u5e8f\u65f6\uff0c\u82e5\u60f3\u8981\u8ba9\u65b0\u914d\u7f6e\u7684\u53c2\u6570\u751f\u6548\uff0c\u8fd8\u9700\u8981\u6267\u884c\u4ec0\u4e48\u64cd\u4f5c\uff1f<\/p>\n \u7b54\uff1a<\/strong>\u9700\u8981\u91cd\u65b0\u542f\u52a8\u76f8\u5173\u7684\u670d\u52a1\u7a0b\u5e8f\uff0c\u6216\u8ba9\u670d\u52a1\u7a0b\u5e8f\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\uff0c\u6216\u91cd\u542f\u7cfb\u7edf\u3002<\/span><\/p>\n5\uff0esshd\u670d\u52a1\u7684\u5bc6\u7801\u9a8c\u8bc1\u4e0e\u5bc6\u94a5\u9a8c\u8bc1\u65b9\u5f0f\uff0c\u54ea\u4e2a\u66f4\u5b89\u5168\uff1f<\/p>\n \u7b54\uff1a<\/strong>\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u5bc6\u94a5\u9a8c\u8bc1\u65b9\u5f0f\u66f4\u52a0\u5b89\u5168\u3002\u82e5\u7528\u6237\u6709\u66f4\u9ad8\u7684\u5b89\u5168\u9700\u6c42\uff0c\u8fd8\u53ef\u4ee5\u518d\u5bf9\u5bc6\u94a5\u6587\u4ef6\u8fdb\u884c\u5bc6\u7801\u52a0\u5bc6\uff0c\u4ece\u800c\u5b9e\u73b0\u53cc\u91cd\u52a0\u5bc6\u3002<\/span><\/p>\n6\uff0e\u00a0\u60f3\u8981\u628a\u672c\u5730\u6587\u4ef6\/root\/out.txt\u4f20\u9001\u5230\u5730\u5740\u4e3a192.168.10.20\u7684\u8fdc\u7a0b\u4e3b\u673a\u7684\/home\u76ee\u5f55\u4e0b\uff0c\u4e14\u672c\u5730\u4e3b\u673a\u4e0e\u8fdc\u7a0b\u4e3b\u673a\u5747\u4e3aLinux\u7cfb\u7edf\uff0c\u6700\u4e3a\u7b80\u4fbf\u7684\u4f20\u9001\u65b9\u5f0f\u662f\u4ec0\u4e48\uff1f<\/p>\n \u7b54\uff1a<\/strong>\u6267\u884c\u547d\u4ee4scp \/root\/out.txt root@192.168.10.20:\/home\uff0c\u5e76\u5728\u8fdb\u884c\u5bc6\u7801\u9a8c\u8bc1\u540e\u5373\u53ef\u5f00\u59cb\u4f20\u9001\u3002<\/span><\/p>\n7\uff0eTmux\u670d\u52a1\u7a0b\u5e8f\u80fd\u591f\u8ba9\u7528\u6237\u5b9e\u73b0\u8fdc\u7a0b\u63a7\u5236\u7684\u4e0d\u95f4\u65ad\u4f1a\u8bdd\uff0c\u5373\u4fbf\u7f51\u7edc\u53d1\u751f\u4e2d\u65ad\u4e5f\u4e0d\u4e22\u5931\u5bf9\u8fdc\u7a0b\u4e3b\u673a\u7684\u4f1a\u8bdd\u63a7\u5236\u3002\u90a3\u4e48\uff0c\u5f53\u60f3\u8981\u6062\u590d\u4e00\u4e2a\u540d\u4e3alinux\u7684\u4f1a\u8bdd\u7a97\u53e3\u65f6\uff0c\u5e94\u8be5\u600e\u4e48\u505a\u5462\uff1f<\/p>\n \u7b54\uff1a<\/strong>\u6267\u884c\u547d\u4ee4tmux attach -t linux\u5373\u53ef\u6062\u590d\u8fd9\u4e2a\u4f1a\u8bdd\u7a97\u53e3\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"\u7ae0\u8282\u7b80\u8ff0\uff1a\u00a0 \u672c\u7ae0\u8bb2\u89e3\u4e86\u5982\u4f55\u4f7f\u7528nmtui\u547d\u4ee4\u914d\u7f6e\u7f51\u5361\u53c2\u6570\uff0c\u4ee5\u53ca\u901a\u8fc7nmcli\u547d\u4ee4\u67e5\u770b\u7f51\u7edc\u4fe1\u606f\u5e76\u7ba1\u7406\u7f51\u7edc\u4f1a\u8bdd\u670d […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[559],"tags":[],"class_list":["post-181460","post","type-post","status-publish","format-standard","hentry","category-rhel8"],"acf":[],"_links":{"self":[{"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/posts\/181460"}],"collection":[{"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/comments?post=181460"}],"version-history":[{"count":107,"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/posts\/181460\/revisions"}],"predecessor-version":[{"id":275438,"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/posts\/181460\/revisions\/275438"}],"wp:attachment":[{"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/media?parent=181460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/categories?post=181460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/tags?post=181460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
| |
| | | |