{"id":124849,"date":"2026-05-08T15:07:23","date_gmt":"2026-05-08T08:07:23","guid":{"rendered":"https:\/\/tino.vn\/blog\/?p=124849"},"modified":"2026-05-08T15:25:09","modified_gmt":"2026-05-08T08:25:09","slug":"khoi-dong-lai-hermes-agent","status":"publish","type":"post","link":"https:\/\/tino.vn\/blog\/khoi-dong-lai-hermes-agent\/","title":{"rendered":"C\u00e1ch kh\u1edfi \u0111\u1ed9ng l\u1ea1i Hermes Agent: H\u01b0\u1edbng d\u1eabn \u0111\u1ea7y \u0111\u1ee7 m\u1ecdi t\u00ecnh hu\u1ed1ng (2026)"},"content":{"rendered":"\n<p><strong>Hermes Agent kh\u00f4ng c\u00f3 m\u1ed9t n\u00fat &#8220;restart&#8221; duy nh\u1ea5t nh\u01b0 c\u00e1c \u1ee9ng d\u1ee5ng desktop th\u00f4ng th\u01b0\u1eddng v\u00e0 \u0111i\u1ec1u \u0111\u00f3 ho\u00e0n to\u00e0n c\u00f3 l\u00fd do. Hermes th\u1ef1c ra g\u1ed3m nhi\u1ec1u th\u00e0nh ph\u1ea7n ho\u1ea1t \u0111\u1ed9ng \u0111\u1ed9c l\u1eadp: phi\u00ean chat CLI, gateway nh\u1eafn tin, cron scheduler, v\u00e0 daemon n\u1ec1n. M\u1ed7i th\u00e0nh ph\u1ea7n c\u00f3 c\u00e1ch kh\u1edfi \u0111\u1ed9ng l\u1ea1i ri\u00eang v\u00e0 restart \u0111\u00fang th\u00e0nh ph\u1ea7n s\u1ebd gi\u1ea3i quy\u1ebft \u0111\u00fang v\u1ea5n \u0111\u1ec1 b\u1ea1n \u0111ang g\u1eb7p. B\u00e0i vi\u1ebft n\u00e0y s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch kh\u1edfi \u0111\u1ed9ng l\u1ea1i Hermes Agent A-Z.<\/strong><\/p>\n\n\n\n<h2 id=\"Hi\u1ec3u_c\u1ea5u_tr\u00fac_Hermes_Agent_tr\u01b0\u1edbc_khi_restart\"><a id=\"post-124849-_uq005hlc33kq\"><\/a><strong>Hi\u1ec3u c\u1ea5u tr\u00fac Hermes Agent tr\u01b0\u1edbc khi restart<\/strong><\/h2>\n\n\n\n<p>Tr\u01b0\u1edbc khi restart b\u1ea5t c\u1ee9 th\u1ee9 g\u00ec, c\u1ea7n bi\u1ebft m\u00ecnh \u0111ang restart c\u00e1i g\u00ec. Hermes g\u1ed3m ba th\u00e0nh ph\u1ea7n ch\u00ednh c\u00f3 th\u1ec3 c\u1ea7n restart \u0111\u1ed9c l\u1eadp v\u1edbi nhau:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Phi\u00ean chat CLI<\/strong> \u2014 Giao di\u1ec7n terminal b\u1ea1n g\u00f5 l\u1ec7nh v\u00e0 nh\u1eadn ph\u1ea3n h\u1ed3i. \u0110\u00e2y l\u00e0 th\u00e0nh ph\u1ea7n b\u1ea1n t\u01b0\u01a1ng t\u00e1c tr\u1ef1c ti\u1ebfp. M\u1ed7i l\u1ea7n g\u00f5 hermes l\u00e0 m\u1ed9t phi\u00ean m\u1edbi \u0111\u01b0\u1ee3c m\u1edf.<\/li>\n\n\n\n<li><strong>Gateway<\/strong> \u2014 D\u1ecbch v\u1ee5 n\u1ec1n k\u1ebft n\u1ed1i Hermes v\u1edbi Telegram, Discord, <a href=\"https:\/\/slack.com\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/slack.com\/\" rel=\"noreferrer noopener nofollow\">Slack<\/a> v\u00e0 c\u00e1c n\u1ec1n t\u1ea3ng nh\u1eafn tin kh\u00e1c. Gateway c\u00f3 th\u1ec3 ch\u1ea1y nh\u01b0 ti\u1ebfn tr\u00ecnh foreground b\u1eb1ng <code>hermes gateway run<\/code> ho\u1eb7c nh\u01b0 d\u1ecbch v\u1ee5 systemd\/launchd n\u1ec1n b\u1eb1ng <code>hermes gateway start<\/code>. \u0110\u00e2y l\u00e0 th\u00e0nh ph\u1ea7n c\u1ea7n restart th\u01b0\u1eddng xuy\u00ean nh\u1ea5t sau khi c\u1eadp nh\u1eadt c\u1ea5u h\u00ecnh.<\/li>\n\n\n\n<li><strong>Cron scheduler<\/strong> \u2014 Th\u00e0nh ph\u1ea7n x\u1eed l\u00fd c\u00e1c t\u00e1c v\u1ee5 t\u1ef1 \u0111\u1ed9ng theo l\u1ecbch. Ki\u1ec3m tra tr\u1ea1ng th\u00e1i scheduler b\u1eb1ng hermes cron status v\u00e0 k\u00edch ho\u1ea1t ch\u1ea1y ngay b\u1eb1ng hermes cron tick.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/khoi-dong-lai-hermes-agent-1.png\" alt=\"Hi\u1ec3u c\u1ea5u tr\u00fac Hermes Agent tr\u01b0\u1edbc khi restart\" class=\"wp-image-124857\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/khoi-dong-lai-hermes-agent-1.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/khoi-dong-lai-hermes-agent-1-300x161.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>Hi\u1ec3u c\u1ea5u tr\u00fac Hermes Agent tr\u01b0\u1edbc khi restart<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h2 id=\"H\u01b0\u1edbng_d\u1eabn_kh\u1edfi_\u0111\u1ed9ng_l\u1ea1i_Hermes_Agent_\u0111\u00fang_c\u00e1ch\"><a id=\"post-124849-_en0w9lepo95b\"><\/a><strong>H\u01b0\u1edbng d\u1eabn kh\u1edfi \u0111\u1ed9ng l\u1ea1i Hermes Agent \u0111\u00fang c\u00e1ch<\/strong><\/h2>\n\n\n\n<h3 id=\"T\u00ecnh_hu\u1ed1ng_1_\u2014_Kh\u1edfi_\u0111\u1ed9ng_l\u1ea1i_phi\u00ean_chat_CLI\"><a id=\"post-124849-_yjhs62ripa78\"><\/a><strong>T\u00ecnh hu\u1ed1ng 1 \u2014 Kh\u1edfi \u0111\u1ed9ng l\u1ea1i phi\u00ean chat CLI<\/strong><\/h3>\n\n\n\n<p>\u0110\u00e2y l\u00e0 tr\u01b0\u1eddng h\u1ee3p \u0111\u01a1n gi\u1ea3n nh\u1ea5t khi b\u1ea1n mu\u1ed1n b\u1eaft \u0111\u1ea7u l\u1ea1i cu\u1ed9c h\u1ed9i tho\u1ea1i ho\u1eb7c \u00e1p d\u1ee5ng c\u1ea5u h\u00ecnh m\u1edbi v\u00e0o phi\u00ean chat.<\/p>\n\n\n\n<h4 id=\"Tho\u00e1t_v\u00e0_m\u1edf_l\u1ea1i_phi\u00ean_m\u1edbi\"><a id=\"post-124849-_53v5728a13wu\"><\/a><strong>Tho\u00e1t v\u00e0 m\u1edf l\u1ea1i phi\u00ean m\u1edbi<\/strong><\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p># Trong phi\u00ean chat \u0111ang m\u1edf, tho\u00e1t b\u1eb1ng m\u1ed9t trong c\u00e1c c\u00e1ch sau:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Ctrl+C:<\/strong> Nh\u1ea5n 2 l\u1ea7n trong 2 gi\u00e2y \u0111\u1ec3 tho\u00e1t ho\u00e0n to\u00e0n<\/li>\n\n\n\n<li><strong>Ctrl+D: <\/strong>Tho\u00e1t ngay l\u1eadp t\u1ee9c<\/li>\n\n\n\n<li><strong>\/quit: <\/strong>Slash command tho\u00e1t<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"919\" height=\"241\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/1.png\" alt=\"Tho\u00e1t v\u00e0 m\u1edf l\u1ea1i phi\u00ean m\u1edbi\" class=\"wp-image-124852\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/1.png 919w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/1-300x79.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/1-768x201.png 768w\" sizes=\"(max-width: 919px) 100vw, 919px\" \/><figcaption class=\"wp-element-caption\"><strong>Tho\u00e1t v\u00e0 m\u1edf l\u1ea1i phi\u00ean m\u1edbi<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p># M\u1edf phi\u00ean m\u1edbi<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes\n\nhermes --tui # Giao di\u1ec7n TUI hi\u1ec7n \u0111\u1ea1i h\u01a1n<\/code><\/pre>\n\n\n\n<h4 id=\"Ti\u1ebfp_t\u1ee5c_\u0111\u00fang_phi\u00ean_c\u0169_sau_khi_tho\u00e1t\"><a id=\"post-124849-_2kfbxja1omol\"><\/a><strong>Ti\u1ebfp t\u1ee5c \u0111\u00fang phi\u00ean c\u0169 sau khi tho\u00e1t<\/strong><\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p>Khi tho\u00e1t, Hermes hi\u1ec3n th\u1ecb l\u1ec7nh \u0111\u1ec3 resume nh\u01b0 sau, v\u00ed d\u1ee5:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Resume this session with:\n\nhermes --resume 20260225_143052_a1b2c3<\/code><\/pre>\n\n\n\n<p>C\u00e1c l\u1ec7nh resume ph\u1ed5 bi\u1ebfn:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>hermes &#8211;continue: <\/strong>Ti\u1ebfp t\u1ee5c phi\u00ean g\u1ea7n nh\u1ea5t<\/li>\n\n\n\n<li><strong>hermes -c:<\/strong> Vi\u1ebft t\u1eaft<\/li>\n\n\n\n<li><strong>hermes -c &#8220;t\u00ean d\u1ef1 \u00e1n&#8221;:<\/strong> Ti\u1ebfp t\u1ee5c phi\u00ean c\u00f3 t\u00ean n\u00e0y<\/li>\n\n\n\n<li><strong>hermes &#8211;resume &lt;session-id>:<\/strong> Ti\u1ebfp t\u1ee5c theo ID c\u1ee5 th\u1ec3<\/li>\n<\/ul>\n\n\n\n<h4 id=\"M\u1edf_phi\u00ean_ho\u00e0n_to\u00e0n_t\u00e1ch_bi\u1ec7t_\u2014_b\u1ecf_qua_c\u1ea5u_h\u00ecnh_c\u00e1_nh\u00e2n\"><a id=\"post-124849-_yo9x2fcuu8np\"><\/a><strong>M\u1edf phi\u00ean ho\u00e0n to\u00e0n t\u00e1ch bi\u1ec7t \u2014 b\u1ecf qua c\u1ea5u h\u00ecnh c\u00e1 nh\u00e2n<\/strong><\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p>Khi c\u1ea7n debug m\u00e0 kh\u00f4ng mu\u1ed1n c\u1ea5u h\u00ecnh c\u00e1 nh\u00e2n \u1ea3nh h\u01b0\u1edfng \u0111\u1ebfn k\u1ebft qu\u1ea3:<\/p>\n\n\n\n<p># B\u1ecf qua config.yaml, d\u00f9ng gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes chat --ignore-user-config<\/code><\/pre>\n\n\n\n<p># B\u1ecf qua c\u1ea3 memory, skills, AGENTS.md<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes chat --ignore-rules<\/code><\/pre>\n\n\n\n<p># K\u1ebft h\u1ee3p c\u1ea3 hai \u0111\u1ec3 c\u00f3 phi\u00ean ho\u00e0n to\u00e0n c\u00f4 l\u1eadp<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes chat --ignore-user-config --ignore-rules -q \"T\u00e1i hi\u1ec7n l\u1ed7i m\u00e0 kh\u00f4ng c\u00f3 c\u1ea5u h\u00ecnh c\u00e1 nh\u00e2n\"<\/code><\/pre>\n\n\n\n<h3 id=\"T\u00ecnh_hu\u1ed1ng_2_\u2014_Kh\u1edfi_\u0111\u1ed9ng_l\u1ea1i_Gateway\"><a id=\"post-124849-_vu4okldnstdc\"><\/a><strong>T\u00ecnh hu\u1ed1ng 2 \u2014 Kh\u1edfi \u0111\u1ed9ng l\u1ea1i Gateway<\/strong><\/h3>\n\n\n\n<p>Gateway l\u00e0 th\u00e0nh ph\u1ea7n c\u1ea7n restart th\u01b0\u1eddng xuy\u00ean nh\u1ea5t sau khi thay \u0111\u1ed5i c\u1ea5u h\u00ecnh Telegram, th\u00eam n\u1ec1n t\u1ea3ng m\u1edbi ho\u1eb7c sau khi ch\u1ea1y hermes update.<\/p>\n\n\n\n<h4 id=\"Restart_gateway_tr\u00ean_Linux_(systemd)_\"><a id=\"post-124849-_yx6pv9uj64bj\"><\/a><strong>Restart gateway tr\u00ean Linux (systemd) <\/strong><\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p># D\u1eebng gateway<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes gateway stop<\/code><\/pre>\n\n\n\n<p># Kh\u1edfi \u0111\u1ed9ng l\u1ea1i<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes gateway restart<\/code><\/pre>\n\n\n\n<p># Ki\u1ec3m tra tr\u1ea1ng th\u00e1i<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes gateway status<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"409\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/2-1024x409.png\" alt=\"Ki\u1ec3m tra tr\u1ea1ng th\u00e1i gateway\" class=\"wp-image-124851\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/2-1024x409.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/2-300x120.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/2-768x307.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/2.png 1257w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>Ki\u1ec3m tra tr\u1ea1ng th\u00e1i gateway<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h4 id=\"Restart_gateway_tr\u00ean_WSL2_v\u00e0_Docker\"><a id=\"post-124849-_9e6lwehcj5l\"><\/a><strong>Restart gateway tr\u00ean WSL2 v\u00e0 Docker<\/strong><\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p>WSL2 kh\u00f4ng h\u1ed7 tr\u1ee3 systemd \u1ed5n \u0111\u1ecbnh \u2014 d\u00f9ng hermes gateway run thay v\u00ec hermes gateway start. K\u1ebft h\u1ee3p tmux \u0111\u1ec3 gi\u1eef gateway ch\u1ea1y li\u00ean t\u1ee5c:<\/p>\n\n\n\n<p># V\u00e0o phi\u00ean tmux \u0111ang ch\u1ea1y gateway<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tmux attach -t hermes<\/code><\/pre>\n\n\n\n<p># D\u1eebng gateway<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Ctrl+C<\/code><\/pre>\n\n\n\n<p># Kh\u1edfi \u0111\u1ed9ng l\u1ea1i<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes gateway run<\/code><\/pre>\n\n\n\n<p># T\u00e1ch ra kh\u1ecfi tmux m\u00e0 gateway v\u1eabn ch\u1ea1y<\/p>\n\n\n\n<p># Nh\u1ea5n <strong>Ctrl+B<\/strong> r\u1ed3i nh\u1ea5n <strong>D<\/strong><\/p>\n\n\n\n<p>N\u1ebfu ch\u01b0a c\u00f3 phi\u00ean tmux:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># T\u1ea1o phi\u00ean tmux m\u1edbi v\u00e0 kh\u1edfi \u0111\u1ed9ng gateway\n\ntmux new -s hermes 'hermes gateway run'<\/code><\/pre>\n\n\n\n<h4 id=\"Restart_gateway_tr\u00ean_macOS_(launchd)_\"><a id=\"post-124849-_z0ilz54fbdlr\"><\/a><strong>Restart gateway tr\u00ean macOS (launchd) <\/strong><\/h4>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes gateway stop\n\nhermes gateway start\n\nhermes gateway status<\/code><\/pre>\n\n\n\n<h4 id=\"Restart_t\u1ea5t_c\u1ea3_gateway_c\u1ee7a_m\u1ecdi_profile_c\u00f9ng_l\u00fac\"><a id=\"post-124849-_b3zlvkt33apn\"><\/a><strong>Restart t\u1ea5t c\u1ea3 gateway c\u1ee7a m\u1ecdi profile c\u00f9ng l\u00fac<\/strong><\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p>N\u1ebfu b\u1ea1n ch\u1ea1y nhi\u1ec1u profile song song v\u00e0 mu\u1ed1n restart t\u1ea5t c\u1ea3 sau khi c\u1eadp nh\u1eadt:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes gateway restart --all<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"584\" height=\"140\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/3.png\" alt=\"Restart t\u1ea5t c\u1ea3 gateway c\u1ee7a m\u1ecdi profile c\u00f9ng l\u00fac\" class=\"wp-image-124853\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/3.png 584w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/3-300x72.png 300w\" sizes=\"(max-width: 584px) 100vw, 584px\" \/><figcaption class=\"wp-element-caption\"><strong>Restart t\u1ea5t c\u1ea3 gateway c\u1ee7a m\u1ecdi profile c\u00f9ng l\u00fac<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 id=\"T\u00ecnh_Hu\u1ed1ng_3_\u2014_Kh\u1edfi_\u0111\u1ed9ng_l\u1ea1i_sau_khi_c\u1eadp_nh\u1eadt\"><a id=\"post-124849-_ac2ru3swj6va\"><\/a><strong>T\u00ecnh Hu\u1ed1ng 3 \u2014 Kh\u1edfi \u0111\u1ed9ng l\u1ea1i sau khi c\u1eadp nh\u1eadt<\/strong><\/h3>\n\n\n\n<p>\u0110\u00e2y l\u00e0 t\u00ecnh hu\u1ed1ng ph\u1ed5 bi\u1ebfn nh\u1ea5t c\u1ea7n restart \u2014 sau khi ch\u1ea1y hermes update \u0111\u1ec3 \u00e1p d\u1ee5ng phi\u00ean b\u1ea3n m\u1edbi.<\/p>\n\n\n\n<h4 id=\"C\u1eadp_nh\u1eadt_v\u00e0_restart_trong_m\u1ed9t_b\u01b0\u1edbc\"><a id=\"post-124849-_yhlnc3kpgulu\"><\/a><strong>C\u1eadp nh\u1eadt v\u00e0 restart trong m\u1ed9t b\u01b0\u1edbc<\/strong><\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p># C\u1eadp nh\u1eadt v\u00e0 t\u1ef1 \u0111\u1ed9ng restart gateway sau khi xong<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes update --restart-gateway<\/code><\/pre>\n\n\n\n<h4 id=\"C\u1eadp_nh\u1eadt_th\u1ee7_c\u00f4ng_t\u1eebng_b\u01b0\u1edbc\"><a id=\"post-124849-_t5k6rck34r58\"><\/a><strong>C\u1eadp nh\u1eadt th\u1ee7 c\u00f4ng t\u1eebng b\u01b0\u1edbc<\/strong><\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p># <strong>B\u01b0\u1edbc 1:<\/strong> Ki\u1ec3m tra c\u00f3 b\u1ea3n c\u1eadp nh\u1eadt kh\u00f4ng m\u00e0 ch\u01b0a t\u1ea3i v\u1ec1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes update --check<\/code><\/pre>\n\n\n\n<p># <strong>B\u01b0\u1edbc 2:<\/strong> T\u1ea3i v\u1ec1 v\u00e0 c\u00e0i \u0111\u1eb7t b\u1ea3n m\u1edbi nh\u1ea5t<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes update<\/code><\/pre>\n\n\n\n<p># <strong>B\u01b0\u1edbc 3:<\/strong> Restart gateway th\u1ee7 c\u00f4ng<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes gateway restart<\/code><\/pre>\n\n\n\n<p># <strong>B\u01b0\u1edbc 4:<\/strong> X\u00e1c nh\u1eadn m\u1ecdi th\u1ee9 ho\u1ea1t \u0111\u1ed9ng<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes doctor\n\nhermes gateway status<\/code><\/pre>\n\n\n\n<h4 id=\"C\u1eadp_nh\u1eadt_c\u00f3_sao_l\u01b0u_tr\u01b0\u1edbc_\"><a id=\"post-124849-_d5ax5t3hmrt0\"><\/a><strong>C\u1eadp nh\u1eadt c\u00f3 sao l\u01b0u tr\u01b0\u1edbc <\/strong><\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p># Sao l\u01b0u to\u00e0n b\u1ed9 d\u1eef li\u1ec7u tr\u01b0\u1edbc khi c\u1eadp nh\u1eadt, r\u1ed3i restart gateway<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes update --backup --restart-gateway<\/code><\/pre>\n\n\n\n<h3 id=\"T\u00ecnh_hu\u1ed1ng_4_\u2014_Kh\u1edfi_\u0111\u1ed9ng_l\u1ea1i_khi_g\u1eb7p_s\u1ef1_c\u1ed1\"><a id=\"post-124849-_2nuudpwhwiy5\"><\/a><strong>T\u00ecnh hu\u1ed1ng 4 \u2014 Kh\u1edfi \u0111\u1ed9ng l\u1ea1i khi g\u1eb7p s\u1ef1 c\u1ed1<\/strong><\/h3>\n\n\n\n<p>Khi Hermes ho\u1ea1t \u0111\u1ed9ng b\u1ea5t th\u01b0\u1eddng, ch\u1eb3ng h\u1ea1n nh\u01b0 ph\u1ea3n h\u1ed3i ch\u1eadm, gateway m\u1ea5t k\u1ebft n\u1ed1i, ho\u1eb7c config kh\u00f4ng \u0111\u01b0\u1ee3c \u00e1p d\u1ee5ng \u2014 th\u1ee9 t\u1ef1 x\u1eed l\u00fd sau s\u1ebd gi\u00fap b\u1ea1n nhanh ch\u00f3ng kh\u00f4i ph\u1ee5c:<\/p>\n\n\n\n<p># <strong>B\u01b0\u1edbc 1:<\/strong> Ch\u1ea9n \u0111o\u00e1n t\u1ed5ng th\u1ec3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes doctor<\/code><\/pre>\n\n\n\n<p># <strong>B\u01b0\u1edbc 2: <\/strong>T\u1ef1 \u0111\u1ed9ng s\u1eeda n\u1ebfu c\u00f3 th\u1ec3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes doctor --fix<\/code><\/pre>\n\n\n\n<p># <strong>B\u01b0\u1edbc 3:<\/strong> Ki\u1ec3m tra l\u1ea1i model v\u00e0 provider<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes model<\/code><\/pre>\n\n\n\n<p># <strong>B\u01b0\u1edbc 4:<\/strong> Ch\u1ea1y l\u1ea1i wizard thi\u1ebft l\u1eadp n\u1ebfu c\u1ea7n<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes setup<\/code><\/pre>\n\n\n\n<p># <strong>B\u01b0\u1edbc 5:<\/strong> Ki\u1ec3m tra danh s\u00e1ch session<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes sessions list<\/code><\/pre>\n\n\n\n<p># <strong>B\u01b0\u1edbc 6:<\/strong> Ki\u1ec3m tra tr\u1ea1ng th\u00e1i gateway<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes gateway status<\/code><\/pre>\n\n\n\n<p>N\u1ebfu gateway b\u1ecb treo ho\u00e0n to\u00e0n v\u00e0 kh\u00f4ng ph\u1ea3n h\u1ed3i v\u1edbi l\u1ec7nh stop:<\/p>\n\n\n\n<p># T\u00ecm ti\u1ebfn tr\u00ecnh Hermes \u0111ang ch\u1ea1y<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ps aux | grep hermes<\/code><\/pre>\n\n\n\n<p># Bu\u1ed9c d\u1eebng t\u1ea5t c\u1ea3 ti\u1ebfn tr\u00ecnh Hermes<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pkill -f hermes<\/code><\/pre>\n\n\n\n<p># \u0110\u1ee3i v\u00e0i gi\u00e2y r\u1ed3i kh\u1edfi \u0111\u1ed9ng l\u1ea1i<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes gateway run # Tr\u00ean WSL2\n\nhermes gateway start # Tr\u00ean Linux\/macOS c\u00f3 systemd\/launchd<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"770\" height=\"360\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/4.png\" alt=\"Kh\u1edfi \u0111\u1ed9ng l\u1ea1i gateway\" class=\"wp-image-124854\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/4.png 770w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/4-300x140.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/4-768x359.png 768w\" sizes=\"(max-width: 770px) 100vw, 770px\" \/><figcaption class=\"wp-element-caption\"><strong>Kh\u1edfi \u0111\u1ed9ng l\u1ea1i gateway<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 id=\"T\u00ecnh_hu\u1ed1ng_5_\u2014_Kh\u1edfi_\u0111\u1ed9ng_l\u1ea1i_theo_profile\"><a id=\"post-124849-_yio7k24wzgfa\"><\/a><strong>T\u00ecnh hu\u1ed1ng 5 \u2014 Kh\u1edfi \u0111\u1ed9ng l\u1ea1i theo profile<\/strong><\/h3>\n\n\n\n<p>N\u1ebfu d\u00f9ng nhi\u1ec1u profile, v\u00ed d\u1ee5 m\u1ed9t profile cho c\u00f4ng vi\u1ec7c, m\u1ed9t profile c\u00e1 nh\u00e2n, b\u1ea1n c\u00f3 th\u1ec3 restart t\u1eebng profile ri\u00eang l\u1ebb.<\/p>\n\n\n\n<p># Kh\u1edfi \u0111\u1ed9ng Hermes v\u1edbi profile c\u1ee5 th\u1ec3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes --profile work\n\nhermes -p work<\/code><\/pre>\n\n\n\n<p># Restart gateway c\u1ee7a m\u1ed9t profile c\u1ee5 th\u1ec3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes -p work gateway restart<\/code><\/pre>\n\n\n\n<p># Xem danh s\u00e1ch t\u1ea5t c\u1ea3 profile<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes profile list<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"803\" height=\"175\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/5.png\" alt=\"Xem danh s\u00e1ch t\u1ea5t c\u1ea3 profile\" class=\"wp-image-124855\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/5.png 803w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/5-300x65.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/05\/5-768x167.png 768w\" sizes=\"(max-width: 803px) 100vw, 803px\" \/><figcaption class=\"wp-element-caption\"><strong>Xem danh s\u00e1ch t\u1ea5t c\u1ea3 profile<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p># Xem chi ti\u1ebft profile \u0111ang d\u00f9ng<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes status<\/code><\/pre>\n\n\n\n<h3 id=\"T\u00ecnh_hu\u1ed1ng_6_\u2014_Kh\u1edfi_\u0111\u1ed9ng_l\u1ea1i_Cron_Scheduler\"><a id=\"post-124849-_qtoto620rl5\"><\/a><strong>T\u00ecnh hu\u1ed1ng 6 \u2014 Kh\u1edfi \u0111\u1ed9ng l\u1ea1i Cron Scheduler<\/strong><\/h3>\n\n\n\n<p>Khi t\u00e1c v\u1ee5 t\u1ef1 \u0111\u1ed9ng kh\u00f4ng ch\u1ea1y \u0111\u00fang gi\u1edd ho\u1eb7c c\u1ea7n k\u00edch ho\u1ea1t th\u1ee7 c\u00f4ng:<\/p>\n\n\n\n<p># Ki\u1ec3m tra scheduler \u0111ang ch\u1ea1y kh\u00f4ng<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes cron status<\/code><\/pre>\n\n\n\n<p># Xem danh s\u00e1ch t\u00e1c v\u1ee5 \u0111\u00e3 l\u00ean l\u1ecbch<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes cron list<\/code><\/pre>\n\n\n\n<p># K\u00edch ho\u1ea1t m\u1ed9t t\u00e1c v\u1ee5 c\u1ee5 th\u1ec3 ch\u1ea1y ngay<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes cron run &lt;t\u00ean-t\u00e1c-v\u1ee5><\/code><\/pre>\n\n\n\n<p># Ch\u1ea1y t\u1ea5t c\u1ea3 t\u00e1c v\u1ee5 \u0111\u1ebfn h\u1ea1n ngay l\u1eadp t\u1ee9c v\u00e0 tho\u00e1t<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes cron tick<\/code><\/pre>\n\n\n\n<p>Cron Scheduler th\u01b0\u1eddng t\u1ef1 kh\u1edfi \u0111\u1ed9ng l\u1ea1i c\u00f9ng gateway. N\u1ebfu t\u00e1c v\u1ee5 kh\u00f4ng ch\u1ea1y d\u00f9 scheduler \u0111ang ch\u1ea1y, ki\u1ec3m tra xem t\u00e1c v\u1ee5 c\u00f3 \u0111ang \u1edf tr\u1ea1ng th\u00e1i pause kh\u00f4ng:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>hermes cron list:<\/strong> Xem tr\u1ea1ng th\u00e1i t\u1eebng t\u00e1c v\u1ee5<\/li>\n\n\n\n<li><strong>hermes cron resume &lt;t\u00ean>:<\/strong> Ti\u1ebfp t\u1ee5c t\u00e1c v\u1ee5 \u0111ang t\u1ea1m d\u1eebng<\/li>\n<\/ul>\n\n\n\n<h3 id=\"T\u00ecnh_hu\u1ed1ng_7_\u2014_Kh\u1edfi_\u0111\u1ed9ng_l\u1ea1i_ho\u00e0n_to\u00e0n_t\u1eeb_\u0111\u1ea7u\"><a id=\"post-124849-_koho9dq589kc\"><\/a><strong>T\u00ecnh hu\u1ed1ng 7 \u2014 Kh\u1edfi \u0111\u1ed9ng l\u1ea1i ho\u00e0n to\u00e0n t\u1eeb \u0111\u1ea7u<\/strong><\/h3>\n\n\n\n<p>Khi m\u1ecdi th\u1ee9 r\u1ed1i tung v\u00e0 b\u1ea1n mu\u1ed1n b\u1eaft \u0111\u1ea7u l\u1ea1i ho\u00e0n to\u00e0n \u2014 kh\u00f4ng m\u1ea5t d\u1eef li\u1ec7u.<\/p>\n\n\n\n<p># <strong>B\u01b0\u1edbc 1:<\/strong> Sao l\u01b0u to\u00e0n b\u1ed9 d\u1eef li\u1ec7u tr\u01b0\u1edbc<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes backup -o ~\/hermes-backup-$(date +%Y%m%d).zip<\/code><\/pre>\n\n\n\n<p># <strong>B\u01b0\u1edbc 2:<\/strong> D\u1eebng t\u1ea5t c\u1ea3 ti\u1ebfn tr\u00ecnh Hermes<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes gateway stop\n\npkill -f hermes<\/code><\/pre>\n\n\n\n<p># <strong>B\u01b0\u1edbc 3:<\/strong> Ch\u1ea1y l\u1ea1i wizard thi\u1ebft l\u1eadp \u0111\u1ea7y \u0111\u1ee7<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes setup<\/code><\/pre>\n\n\n\n<p># <strong>B\u01b0\u1edbc 4:<\/strong> X\u00e1c nh\u1eadn model v\u00e0 provider \u0111ang ho\u1ea1t \u0111\u1ed9ng<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes model\n\nhermes chat -q \"Ki\u1ec3m tra k\u1ebft n\u1ed1i\"<\/code><\/pre>\n\n\n\n<p># <strong>B\u01b0\u1edbc 5: <\/strong>Kh\u1edfi \u0111\u1ed9ng l\u1ea1i gateway<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes gateway start # Linux\/macOS\n\nhermes gateway run # WSL2<\/code><\/pre>\n\n\n\n<p># <strong>B\u01b0\u1edbc 6:<\/strong> Ki\u1ec3m tra t\u1ed5ng th\u1ec3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hermes doctor\n\nhermes status<\/code><\/pre>\n\n\n\n<h3 id=\"B\u1ea3ng_t\u00f3m_t\u1eaft_\u2014_ch\u1ecdn_\u0111\u00fang_l\u1ec7nh_theo_t\u00ecnh_hu\u1ed1ng_\"><a id=\"post-124849-_x8me2v2i8ww5\"><\/a><strong>B\u1ea3ng t\u00f3m t\u1eaft \u2014 ch\u1ecdn \u0111\u00fang l\u1ec7nh theo t\u00ecnh hu\u1ed1ng <\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>T\u00ecnh hu\u1ed1ng<\/th><th>L\u1ec7nh c\u1ea7n d\u00f9ng<\/th><\/tr><\/thead><tbody><tr><td>M\u1edf l\u1ea1i phi\u00ean chat m\u1edbi<\/td><td>Tho\u00e1t b\u1eb1ng <code>Ctrl+C<\/code> \u2192 ch\u1ea1y <code>hermes<\/code><\/td><\/tr><tr><td>Ti\u1ebfp t\u1ee5c phi\u00ean chat c\u0169<\/td><td><code>hermes -c<\/code> ho\u1eb7c <code>hermes --resume &lt;id&gt;<\/code><\/td><\/tr><tr><td>Restart gateway tr\u00ean Linux<\/td><td><code>hermes gateway restart<\/code><\/td><\/tr><tr><td>Restart gateway tr\u00ean WSL2<\/td><td>V\u00e0o tmux \u2192 <code>Ctrl+C<\/code> \u2192 <code>hermes gateway run<\/code><\/td><\/tr><tr><td>Restart t\u1ea5t c\u1ea3 profile<\/td><td><code>hermes gateway restart --all<\/code><\/td><\/tr><tr><td>Sau khi c\u1eadp nh\u1eadt<\/td><td><code>hermes update --restart-gateway<\/code><\/td><\/tr><tr><td>Khi g\u1eb7p s\u1ef1 c\u1ed1<\/td><td><code>hermes doctor<\/code> \u2192 <code>hermes doctor --fix<\/code><\/td><\/tr><tr><td>K\u00edch ho\u1ea1t t\u00e1c v\u1ee5 cron ngay<\/td><td><code>hermes cron run &lt;t\u00ean&gt;<\/code><\/td><\/tr><tr><td>Ch\u1ea9n \u0111o\u00e1n t\u1ed5ng th\u1ec3<\/td><td><code>hermes doctor<\/code><\/td><\/tr><tr><td>Xem tr\u1ea1ng th\u00e1i hi\u1ec7n t\u1ea1i<\/td><td><code>hermes status<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong><span style=\"text-decoration: underline;\">C\u00e1c b\u00e0i vi\u1ebft li\u00ean quan:<\/span><\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/tino.vn\/blog\/cau-hinh-toi-thieu-de-chay-hermes-agent\/\" target=\"_blank\" rel=\"noreferrer noopener\">C\u1ea5u h\u00ecnh t\u1ed1i thi\u1ec3u \u0111\u1ec3 ch\u1ea1y Hermes Agent<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/tino.vn\/blog\/huong-dan-su-dung-hermes-agent\/\" target=\"_blank\" rel=\"noreferrer noopener\">H\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng Hermes Agent c\u01a1 b\u1ea3n\u00a0<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/tino.vn\/blog\/cach-them-skill-cho-hermes-agent\/\" target=\"_blank\" rel=\"noreferrer noopener\">H\u01b0\u1edbng d\u1eabn c\u00e1ch th\u00eam skill cho Hermes Agent<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/tino.vn\/blog\/cai-dat-hermes-agent-tren-docker\/\" target=\"_blank\" rel=\"noreferrer noopener\">H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Hermes Agent tr\u00ean Docker<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/tino.vn\/blog\/cai-dat-hermes-agent-tren-may-tinh-windows\/\" target=\"_blank\" rel=\"noreferrer noopener\">C\u00e1ch c\u00e0i \u0111\u1eb7t Hermes Agent tr\u00ean m\u00e1y t\u00ednh Windows<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/tino.vn\/blog\/cai-dat-va-su-dung-hermes-agent-tren-vps\/\" target=\"_blank\" rel=\"noreferrer noopener\">C\u00e1ch c\u00e0i \u0111\u1eb7t v\u00e0 s\u1eed d\u1ee5ng Hermes Agent tr\u00ean VPS<\/a><\/li>\n<\/ul>\n\n\n\n<h3 id=\"K\u1ebft_lu\u1eadn\"><strong>K\u1ebft lu\u1eadn<\/strong><\/h3>\n\n\n\n<p>Kh\u1edfi \u0111\u1ed9ng l\u1ea1i Hermes Agent kh\u00f4ng ph\u1ea3i l\u00e0 m\u1ed9t thao t\u00e1c \u0111\u01a1n gi\u1ea3n ki\u1ec3u &#8220;t\u1eaft \u0111i b\u1eadt l\u1ea1i&#8221; m\u00e0 l\u00e0 vi\u1ec7c x\u00e1c \u0111\u1ecbnh \u0111\u00fang th\u00e0nh ph\u1ea7n n\u00e0o c\u1ea7n restart v\u00e0 d\u00f9ng \u0111\u00fang l\u1ec7nh cho th\u00e0nh ph\u1ea7n \u0111\u00f3.<\/p>\n\n\n\n<p>Khi kh\u00f4ng ch\u1eafc v\u1ea5n \u0111\u1ec1 \u0111ang \u1edf \u0111\u00e2u, hermes doctor lu\u00f4n l\u00e0 \u0111i\u1ec3m b\u1eaft \u0111\u1ea7u t\u1ed1t nh\u1ea5t, l\u1ec7nh n\u00e0y ch\u1ea9n \u0111o\u00e1n to\u00e0n b\u1ed9 h\u1ec7 th\u1ed1ng v\u00e0 ch\u1ec9 ra ch\u00ednh x\u00e1c th\u00e0nh ph\u1ea7n n\u00e0o \u0111ang c\u00f3 v\u1ea5n \u0111\u1ec1, thay v\u00ec ph\u1ea3i restart m\u00f9 qu\u00e1ng t\u1eebng th\u1ee9 m\u1ed9t<\/p>\n\n\n\n<h2 id=\"Nh\u1eefng_c\u00e2u_h\u1ecfi_th\u01b0\u1eddng_g\u1eb7p\"><a id=\"post-124849-_ldpcumr9clf\"><\/a><strong>Nh\u1eefng c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p<\/strong><\/h2>\n\n\n\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"Kh\u1edfi_\u0111\u1ed9ng_l\u1ea1i_Hermes_Agent_c\u00f3_l\u00e0m_m\u1ea5t_l\u1ecbch_s\u1eed_h\u1ed9i_tho\u1ea1i_kh\u00f4ng?\">Kh\u1edfi \u0111\u1ed9ng l\u1ea1i Hermes Agent c\u00f3 l\u00e0m m\u1ea5t l\u1ecbch s\u1eed h\u1ed9i tho\u1ea1i kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>Kh\u00f4ng. To\u00e0n b\u1ed9 l\u1ecbch s\u1eed h\u1ed9i tho\u1ea1i \u0111\u01b0\u1ee3c l\u01b0u trong SQLite database t\u1ea1i ~\/.hermes\/state.db \u2014 ho\u00e0n to\u00e0n t\u00e1ch bi\u1ec7t v\u1edbi ti\u1ebfn tr\u00ecnh Hermes \u0111ang ch\u1ea1y. D\u00f9 b\u1ea1n tho\u00e1t, restart hay t\u1eaft m\u00e1y, d\u1eef li\u1ec7u v\u1eabn nguy\u00ean v\u1eb9n. Sau khi kh\u1edfi \u0111\u1ed9ng l\u1ea1i, ch\u1ea1y hermes -c \u0111\u1ec3 ti\u1ebfp t\u1ee5c \u0111\u00fang phi\u00ean h\u1ed9i tho\u1ea1i g\u1ea7n nh\u1ea5t m\u00e0 kh\u00f4ng m\u1ea5t b\u1ea5t k\u1ef3 ng\u1eef c\u1ea3nh n\u00e0o.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"Restart_gateway_c\u00f3_l\u00e0m_gi\u00e1n_\u0111o\u1ea1n_tin_nh\u1eafn_qua_Telegram_kh\u00f4ng?\">Restart gateway c\u00f3 l\u00e0m gi\u00e1n \u0111o\u1ea1n tin nh\u1eafn qua Telegram kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>C\u00f3 m\u1ed9t kho\u1ea3ng gi\u00e1n \u0111o\u1ea1n ng\u1eafn trong th\u1eddi gian gateway \u0111ang t\u1eaft v\u00e0 kh\u1edfi \u0111\u1ed9ng l\u1ea1i. Tin nh\u1eafn g\u1eedi \u0111\u1ebfn trong kho\u1ea3ng th\u1eddi gian \u0111\u00f3 s\u1ebd \u0111\u01b0\u1ee3c Telegram gi\u1eef l\u1ea1i v\u00e0 chuy\u1ec3n \u0111\u1ebfn ngay khi gateway k\u1ebft n\u1ed1i tr\u1edf l\u1ea1i. Sau khi restart, ch\u1ea1y hermes gateway status \u0111\u1ec3 x\u00e1c nh\u1eadn gateway \u0111\u00e3 k\u1ebft n\u1ed1i th\u00e0nh c\u00f4ng tr\u01b0\u1edbc khi th\u00f4ng b\u00e1o cho ng\u01b0\u1eddi d\u00f9ng.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"S\u1ef1_kh\u00e1c_bi\u1ec7t_gi\u1eefa_hermes_gateway_restart_v\u00e0_hermes_gateway_stop_r\u1ed3i_hermes_gateway_start_l\u00e0_g\u00ec?\">S\u1ef1 kh\u00e1c bi\u1ec7t gi\u1eefa hermes gateway restart v\u00e0 hermes gateway stop r\u1ed3i hermes gateway start l\u00e0 g\u00ec?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>V\u1ec1 k\u1ebft qu\u1ea3 cu\u1ed1i c\u00f9ng th\u00ec gi\u1ed1ng nhau \u2014 gateway d\u1eebng r\u1ed3i ch\u1ea1y l\u1ea1i. <strong>hermes gateway restart<\/strong> l\u00e0 l\u1ec7nh t\u1eaft, trong khi <strong>hermes gateway stop<\/strong> k\u1ebft h\u1ee3p <strong>hermes gateway start<\/strong> l\u00e0 hai l\u1ec7nh ri\u00eang l\u1ebb. D\u00f9ng <strong>hermes gateway restart<\/strong> trong h\u1ea7u h\u1ebft tr\u01b0\u1eddng h\u1ee3p v\u00ec ng\u1eafn g\u1ecdn h\u01a1n. D\u00f9ng <strong>stop<\/strong> v\u00e0 <strong>start<\/strong> ri\u00eang bi\u1ec7t khi c\u1ea7n l\u00e0m g\u00ec \u0111\u00f3 \u1edf gi\u1eefa hai b\u01b0\u1edbc \u2014 v\u00ed d\u1ee5 ch\u1ec9nh s\u1eeda file c\u1ea5u h\u00ecnh xong r\u1ed3i m\u1edbi start l\u1ea1i.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"Tr\u00ean_WSL2,_t\u1ea1i_sao_hermes_gateway_restart_kh\u00f4ng_ho\u1ea1t_\u0111\u1ed9ng_m\u00e0_ph\u1ea3i_d\u00f9ng_tmux?\">Tr\u00ean WSL2, t\u1ea1i sao hermes gateway restart kh\u00f4ng ho\u1ea1t \u0111\u1ed9ng m\u00e0 ph\u1ea3i d\u00f9ng tmux?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>WSL2 kh\u00f4ng h\u1ed7 tr\u1ee3 systemd \u1ed5n \u0111\u1ecbnh. L\u1ec7nh hermes gateway start v\u00e0 hermes gateway restart d\u1ef1a v\u00e0o systemd \u0111\u1ec3 qu\u1ea3n l\u00fd d\u1ecbch v\u1ee5 n\u1ec1n, n\u00ean kh\u00f4ng ho\u1ea1t \u0111\u1ed9ng \u0111\u00fang trong m\u00f4i tr\u01b0\u1eddng WSL2. Gi\u1ea3i ph\u00e1p ch\u00ednh th\u1ee9c l\u00e0 d\u00f9ng hermes gateway run \u2014 l\u1ec7nh n\u00e0y ch\u1ea1y gateway \u1edf foreground thay v\u00ec \u0111\u0103ng k\u00fd nh\u01b0 d\u1ecbch v\u1ee5 systemd. K\u1ebft h\u1ee3p v\u1edbi tmux \u0111\u1ec3 gi\u1eef gateway ch\u1ea1y li\u00ean t\u1ee5c d\u00f9 \u0111\u00f3ng c\u1eeda s\u1ed5 terminal: tmux new -s hermes &#8216;hermes gateway run&#8217;.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\n<script type=\"application\/ld+json\">\n\t{\n\t\t\"@context\": \"https:\/\/schema.org\",\n\t\t\"@type\": \"FAQPage\",\n\t\t\"mainEntity\": [\n\t\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"Kh\u1edfi \u0111\u1ed9ng l\u1ea1i Hermes Agent c\u00f3 l\u00e0m m\u1ea5t l\u1ecbch s\u1eed h\u1ed9i tho\u1ea1i kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Kh\u00f4ng. To\u00e0n b\u1ed9 l\u1ecbch s\u1eed h\u1ed9i tho\u1ea1i \u0111\u01b0\u1ee3c l\u01b0u trong SQLite database t\u1ea1i ~\/.hermes\/state.db \u2014 ho\u00e0n to\u00e0n t\u00e1ch bi\u1ec7t v\u1edbi ti\u1ebfn tr\u00ecnh Hermes \u0111ang ch\u1ea1y. D\u00f9 b\u1ea1n tho\u00e1t, restart hay t\u1eaft m\u00e1y, d\u1eef li\u1ec7u v\u1eabn nguy\u00ean v\u1eb9n. Sau khi kh\u1edfi \u0111\u1ed9ng l\u1ea1i, ch\u1ea1y hermes -c \u0111\u1ec3 ti\u1ebfp t\u1ee5c \u0111\u00fang phi\u00ean h\u1ed9i tho\u1ea1i g\u1ea7n nh\u1ea5t m\u00e0 kh\u00f4ng m\u1ea5t b\u1ea5t k\u1ef3 ng\u1eef c\u1ea3nh n\u00e0o.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"Restart gateway c\u00f3 l\u00e0m gi\u00e1n \u0111o\u1ea1n tin nh\u1eafn qua Telegram kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>C\u00f3 m\u1ed9t kho\u1ea3ng gi\u00e1n \u0111o\u1ea1n ng\u1eafn trong th\u1eddi gian gateway \u0111ang t\u1eaft v\u00e0 kh\u1edfi \u0111\u1ed9ng l\u1ea1i. Tin nh\u1eafn g\u1eedi \u0111\u1ebfn trong kho\u1ea3ng th\u1eddi gian \u0111\u00f3 s\u1ebd \u0111\u01b0\u1ee3c Telegram gi\u1eef l\u1ea1i v\u00e0 chuy\u1ec3n \u0111\u1ebfn ngay khi gateway k\u1ebft n\u1ed1i tr\u1edf l\u1ea1i. Sau khi restart, ch\u1ea1y hermes gateway status \u0111\u1ec3 x\u00e1c nh\u1eadn gateway \u0111\u00e3 k\u1ebft n\u1ed1i th\u00e0nh c\u00f4ng tr\u01b0\u1edbc khi th\u00f4ng b\u00e1o cho ng\u01b0\u1eddi d\u00f9ng.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"S\u1ef1 kh\u00e1c bi\u1ec7t gi\u1eefa hermes gateway restart v\u00e0 hermes gateway stop r\u1ed3i hermes gateway start l\u00e0 g\u00ec?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>V\u1ec1 k\u1ebft qu\u1ea3 cu\u1ed1i c\u00f9ng th\u00ec gi\u1ed1ng nhau \u2014 gateway d\u1eebng r\u1ed3i ch\u1ea1y l\u1ea1i. <strong>hermes gateway restart<\/strong> l\u00e0 l\u1ec7nh t\u1eaft, trong khi <strong>hermes gateway stop<\/strong> k\u1ebft h\u1ee3p <strong>hermes gateway start<\/strong> l\u00e0 hai l\u1ec7nh ri\u00eang l\u1ebb. D\u00f9ng <strong>hermes gateway restart<\/strong> trong h\u1ea7u h\u1ebft tr\u01b0\u1eddng h\u1ee3p v\u00ec ng\u1eafn g\u1ecdn h\u01a1n. D\u00f9ng <strong>stop<\/strong> v\u00e0 <strong>start<\/strong> ri\u00eang bi\u1ec7t khi c\u1ea7n l\u00e0m g\u00ec \u0111\u00f3 \u1edf gi\u1eefa hai b\u01b0\u1edbc \u2014 v\u00ed d\u1ee5 ch\u1ec9nh s\u1eeda file c\u1ea5u h\u00ecnh xong r\u1ed3i m\u1edbi start l\u1ea1i.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"Tr\u00ean WSL2, t\u1ea1i sao hermes gateway restart kh\u00f4ng ho\u1ea1t \u0111\u1ed9ng m\u00e0 ph\u1ea3i d\u00f9ng tmux?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>WSL2 kh\u00f4ng h\u1ed7 tr\u1ee3 systemd \u1ed5n \u0111\u1ecbnh. L\u1ec7nh hermes gateway start v\u00e0 hermes gateway restart d\u1ef1a v\u00e0o systemd \u0111\u1ec3 qu\u1ea3n l\u00fd d\u1ecbch v\u1ee5 n\u1ec1n, n\u00ean kh\u00f4ng ho\u1ea1t \u0111\u1ed9ng \u0111\u00fang trong m\u00f4i tr\u01b0\u1eddng WSL2. Gi\u1ea3i ph\u00e1p ch\u00ednh th\u1ee9c l\u00e0 d\u00f9ng hermes gateway run \u2014 l\u1ec7nh n\u00e0y ch\u1ea1y gateway \u1edf foreground thay v\u00ec \u0111\u0103ng k\u00fd nh\u01b0 d\u1ecbch v\u1ee5 systemd. K\u1ebft h\u1ee3p v\u1edbi tmux \u0111\u1ec3 gi\u1eef gateway ch\u1ea1y li\u00ean t\u1ee5c d\u00f9 \u0111\u00f3ng c\u1eeda s\u1ed5 terminal: tmux new -s hermes 'hermes gateway run'.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t]\n\t}\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Hermes Agent kh\u00f4ng c\u00f3 m\u1ed9t n\u00fat &#8220;restart&#8221; duy nh\u1ea5t nh\u01b0 c\u00e1c \u1ee9ng d\u1ee5ng desktop th\u00f4ng th\u01b0\u1eddng v\u00e0 \u0111i\u1ec1u \u0111\u00f3 ho\u00e0n to\u00e0n c\u00f3 l\u00fd do. Hermes th\u1ef1c ra g\u1ed3m nhi\u1ec1u th\u00e0nh ph\u1ea7n ho\u1ea1t \u0111\u1ed9ng \u0111\u1ed9c l\u1eadp: phi\u00ean chat CLI, gateway nh\u1eafn tin, cron scheduler, v\u00e0 daemon n\u1ec1n. M\u1ed7i th\u00e0nh ph\u1ea7n c\u00f3 c\u00e1ch kh\u1edfi \u0111\u1ed9ng l\u1ea1i ri\u00eang [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":124858,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7592],"tags":[7608],"class_list":["post-124849","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hermes-agent","tag-restart-hermes-agent"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/124849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=124849"}],"version-history":[{"count":4,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/124849\/revisions"}],"predecessor-version":[{"id":124860,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/124849\/revisions\/124860"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/124858"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=124849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/categories?post=124849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=124849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}