{"id":4130,"date":"2020-02-25T09:19:38","date_gmt":"2020-02-25T02:19:38","guid":{"rendered":"https:\/\/tino.vn\/?post_type=ht_kb&#038;p=4130"},"modified":"2020-03-30T08:39:20","modified_gmt":"2020-03-30T01:39:20","slug":"cac-lenh-commands-va-huong-dan-cach-su-dung-tren-wordops","status":"publish","type":"ht_kb","link":"https:\/\/tino.vn\/blog\/docs\/cac-lenh-commands-va-huong-dan-cach-su-dung-tren-wordops\/","title":{"rendered":"C\u00e1c l\u1ec7nh commands v\u00e0 h\u01b0\u1edbng d\u1eabn c\u00e1ch s\u1eed d\u1ee5ng tr\u00ean WordOps"},"content":{"rendered":"<p>Tr\u00ean WordOps b\u1ea1n s\u1eed d\u1ee5ng theo c\u00fa ph\u00e1p.<\/p>\n<pre>wo <span class=\"o\">(<\/span><span class=\"nb\">command<\/span><span class=\"o\">)<\/span> <span class=\"o\">[tu\u1ef3 ch\u1ecdn<\/span><span class=\"o\">]<\/span><\/pre>\n<p>C\u00e1c command tr\u00ean WordOps \u0111\u01b0\u1ee3c li\u1ec7t k\u00ea nh\u01b0 sau :<\/p>\n<table style=\"width: 100%; height: 289px;\">\n<thead>\n<tr style=\"height: 25px;\">\n<th style=\"width: 16.375%; height: 25px;\">command<\/th>\n<th style=\"width: 44.5%; height: 25px;\">T\u00ednh n\u0103ng<\/th>\n<th style=\"width: 38%; height: 25px;\">V\u00ed D\u1ee5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 29px;\">\n<td style=\"width: 16.375%; height: 29px;\">site<\/td>\n<td style=\"width: 44.5%; height: 29px;\">create, update, delete, list sites tr\u00ean WordOps<\/td>\n<td style=\"width: 38%; height: 29px;\"><code class=\"codehilite\"><span class=\"err\">wo site create site.tld --wp<\/span><\/code><\/td>\n<\/tr>\n<tr style=\"height: 29px;\">\n<td style=\"width: 16.375%; height: 29px;\">stack<\/td>\n<td style=\"width: 44.5%; height: 29px;\">install\/remove WordOps server stacks<\/td>\n<td style=\"width: 38%; height: 29px;\"><code class=\"codehilite\"><span class=\"err\">wo stack install --nginx<\/span><\/code><\/td>\n<\/tr>\n<tr style=\"height: 29px;\">\n<td style=\"width: 16.375%; height: 29px;\">debug<\/td>\n<td style=\"width: 44.5%; height: 29px;\">commands d\u00f9ng \u0111\u1ec3 debug tr\u00ean WordOps<\/td>\n<td style=\"width: 38%; height: 29px;\"><code class=\"codehilite\"><span class=\"err\">wo debug site.tld --php<\/span><\/code><\/td>\n<\/tr>\n<tr style=\"height: 32px;\">\n<td style=\"width: 16.375%; height: 32px;\">clean<\/td>\n<td style=\"width: 44.5%; height: 32px;\">Xo\u00e1 cache\u00a0 tr\u00ean WordOps backend<\/td>\n<td style=\"width: 38%; height: 32px;\"><code class=\"codehilite\"><span class=\"err\">wo clean --fastcgi<\/span><\/code><\/td>\n<\/tr>\n<tr style=\"height: 29px;\">\n<td style=\"width: 16.375%; height: 29px;\">info<\/td>\n<td style=\"width: 44.5%; height: 29px;\">Hi\u1ec3n th\u1ecb th\u00f4ng tin c\u00e1c stack tr\u00ean VPS<\/td>\n<td style=\"width: 38%; height: 29px;\"><code class=\"codehilite\"><span class=\"err\">wo info --nginx<\/span><\/code><\/td>\n<\/tr>\n<tr style=\"height: 29px;\">\n<td style=\"width: 16.375%; height: 29px;\">log<\/td>\n<td style=\"width: 44.5%; height: 29px;\">L\u00e0m vi\u1ec7c v\u1edbi log tr\u00ean WordOps<\/td>\n<td style=\"width: 38%; height: 29px;\"><code class=\"codehilite\"><span class=\"err\">wo log show --nginx<\/span><\/code><\/td>\n<\/tr>\n<tr style=\"height: 29px;\">\n<td style=\"width: 16.375%; height: 29px;\">secure<\/td>\n<td style=\"width: 44.5%; height: 29px;\">Qu\u1ea3n l\u00fd x\u00e1c th\u1ef1c WordOps backend<\/td>\n<td style=\"width: 38%; height: 29px;\"><code class=\"codehilite\"><span class=\"err\">wo secure --auth<\/span><\/code><\/td>\n<\/tr>\n<tr style=\"height: 29px;\">\n<td style=\"width: 16.375%; height: 29px;\">maintenance<\/td>\n<td style=\"width: 44.5%; height: 29px;\">Th\u01b0server package updates<\/td>\n<td style=\"width: 38%; height: 29px;\"><code class=\"codehilite\"><span class=\"err\">wo maintenance<\/span><\/code><\/td>\n<\/tr>\n<tr style=\"height: 29px;\">\n<td style=\"width: 16.375%; height: 29px;\">update<\/td>\n<td style=\"width: 44.5%; height: 29px;\">update WordOps<\/td>\n<td style=\"width: 38%; height: 29px;\"><code class=\"codehilite\"><span class=\"err\">wo update<\/span><\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3 id=\"S\u1eed_d\u1ee5ng_command_site_tr\u00ean_WordOps\">S\u1eed d\u1ee5ng command site tr\u00ean WordOps<\/h3>\n<pre>wo site <span class=\"o\">(<\/span><span class=\"nb\">command<\/span><span class=\"o\">)<\/span> <span class=\"o\">[<\/span>Tu\u1ef3 ch\u1ecdn<span class=\"o\">]<\/span><\/pre>\n<div><\/div>\n<table style=\"width: 130.669%; height: 265px;\">\n<colgroup>\n<col \/>\n<col \/>\n<col \/>\n<col \/><\/colgroup>\n<tbody>\n<tr style=\"height: 24px;\">\n<td style=\"width: 12.39%; height: 24px;\">\n<div>subcommand<\/div>\n<\/td>\n<td style=\"width: 47.8623%; height: 24px;\">\n<div>Gi\u1edbi thi\u1ec7u<\/div>\n<\/td>\n<td style=\"width: 1.02041%; height: 24px;\">\n<div>V\u00ed d\u1ee5<\/div>\n<\/td>\n<td style=\"width: 64.8369%; height: 24px;\">\n<div>Gi\u1ea3i th\u00edch ngh\u0129a v\u00ed d\u1ee5<\/div>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 12.39%; height: 24px;\">\n<div><a href=\"https:\/\/docs.wordops.net\/commands\/site\/#site-create\" rel=\"nofollow noopener\" target=\"_blank\">create<\/a><\/div>\n<\/td>\n<td style=\"width: 47.8623%; height: 24px;\">\n<div>D\u00f9ng WordOps t\u1ea1o site m\u1edbi<\/div>\n<\/td>\n<td style=\"width: 1.02041%; height: 24px;\">\n<div>\n<pre>wo site create site.tld --wp<\/pre>\n<\/div>\n<\/td>\n<td style=\"width: 64.8369%; height: 24px;\">\n<div>t\u1ea1o 1 website v\u1edbi t\u00ean site.tld v\u00e0 c\u00e0i \u0111\u1eb7t wordpress.<\/div>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 12.39%; height: 24px;\">\n<div><a href=\"https:\/\/docs.wordops.net\/commands\/site\/#site-update\" rel=\"nofollow noopener\" target=\"_blank\">update<\/a><\/div>\n<\/td>\n<td style=\"width: 47.8623%; height: 24px;\">\n<div>N\u00e2ng c\u1ea5p site ho\u1eb7c c\u1ea5u h\u00ecnh site<\/div>\n<\/td>\n<td style=\"width: 1.02041%; height: 24px;\">\n<div>\n<pre>wo site update site.tld --php73<\/pre>\n<\/div>\n<\/td>\n<td style=\"width: 64.8369%; height: 24px;\">N\u00e2ng c\u1ea5p wordpress ch\u1ea1y t\u1eeb 7.2 sang 7.3<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 12.39%; height: 24px;\">\n<div><a href=\"https:\/\/docs.wordops.net\/commands\/site\/#site-show\" rel=\"nofollow noopener\" target=\"_blank\">show<\/a><\/div>\n<\/td>\n<td style=\"width: 47.8623%; height: 24px;\">\n<div>Hi\u1ec3n th\u1ecb c\u1ea5u h\u00ecnh nginx c\u1ee7a website<\/div>\n<\/td>\n<td style=\"width: 1.02041%; height: 24px;\">\n<div>\n<pre>wo site show  site.tld<\/pre>\n<\/div>\n<\/td>\n<td style=\"width: 64.8369%; height: 24px;\">\n<div>Hi\u1ec3n th\u1ecb c\u1ea5u h\u00ecnh nginx c\u1ee7a website site.tld<\/div>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 12.39%; height: 24px;\">\n<div><a href=\"https:\/\/docs.wordops.net\/commands\/site\/#site-edit\" rel=\"nofollow noopener\" target=\"_blank\">edit<\/a><\/div>\n<\/td>\n<td style=\"width: 47.8623%; height: 24px;\">S\u1eeda c\u1ea5u h\u00ecnh nginx c\u1ee7a website<\/td>\n<td style=\"width: 1.02041%; height: 24px;\">\n<div>\n<pre>wo site edit \u00a0site.tld<\/pre>\n<\/div>\n<\/td>\n<td style=\"width: 64.8369%; height: 24px;\">\n<div>S\u1eeda c\u1ea5u h\u00ecnh nginx c\u1ee7a website site.tld<\/div>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 12.39%; height: 24px;\">\n<div><a href=\"https:\/\/docs.wordops.net\/commands\/site\/#site-delete\" rel=\"nofollow noopener\" target=\"_blank\">delete<\/a><\/div>\n<\/td>\n<td style=\"width: 47.8623%; height: 24px;\">Xo\u00e1 website<\/td>\n<td style=\"width: 1.02041%; height: 24px;\">\n<div>\n<pre>wo site delete \u00a0t\u00ean_website <span class=\"o\">[tu\u1ef3 ch\u1ecdn<\/span><span class=\"o\">]<\/span><\/pre>\n<\/div>\n<\/td>\n<td style=\"width: 64.8369%; height: 24px;\">\n<div>\u00a0C\u00e1c tu\u1ef3 ch\u1ecdn:<\/div>\n<div>&#8211;no-prompt xo\u00e1 site.<br \/>\n&#8211;files : Ch\u1ec9 xo\u00e1 m\u00e3 ngu\u1ed3n site<br \/>\n&#8211;db : Ch\u1ec9 xo\u00e1 database site<\/div>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 12.39%; height: 24px;\">\n<div><a href=\"https:\/\/docs.wordops.net\/commands\/site\/#site-list\" rel=\"nofollow noopener\" target=\"_blank\">list<\/a><\/div>\n<\/td>\n<td style=\"width: 47.8623%; height: 24px;\">Li\u1ec7t k\u00ea to\u00e0n b\u1ed9 c\u00e1c website<\/td>\n<td style=\"width: 1.02041%; height: 24px;\">\n<div>\n<pre>wo site list<\/pre>\n<\/div>\n<\/td>\n<td style=\"width: 64.8369%; height: 24px;\">\n<div>Li\u1ec7t k\u00ea t\u1ea5t c\u1ea3 c\u00e1c website qu\u1ea3n l\u00fd b\u1edfi WordOps<\/div>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 12.39%; height: 24px;\">\n<div><a href=\"https:\/\/docs.wordops.net\/commands\/site\/#site-enable\" rel=\"nofollow noopener\" target=\"_blank\">enable<\/a><\/div>\n<\/td>\n<td style=\"width: 47.8623%; height: 24px;\">\n<div>Enable site in Nginx<\/div>\n<\/td>\n<td style=\"width: 1.02041%; height: 24px;\">\n<pre>wo site <span class=\"nb\">enable<\/span>  T\u00ean_website<\/pre>\n<\/td>\n<td style=\"width: 64.8369%; height: 24px;\">\n<div>B\u1eadt vhost nginx website<\/div>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 12.39%; height: 24px;\">\n<div><a href=\"https:\/\/docs.wordops.net\/commands\/site\/#site-disable\" rel=\"nofollow noopener\" target=\"_blank\">disable<\/a><\/div>\n<\/td>\n<td style=\"width: 47.8623%; height: 24px;\">\n<div>Disable site in Nginx<\/div>\n<\/td>\n<td style=\"width: 1.02041%; height: 24px;\">\n<pre>wo site disable T\u00ean_website<\/pre>\n<\/td>\n<td style=\"width: 64.8369%; height: 24px;\">\n<div>T\u1eaft vhost nginx website<\/div>\n<\/td>\n<\/tr>\n<tr style=\"height: 49px;\">\n<td style=\"width: 12.39%; height: 49px;\">\n<div><a href=\"https:\/\/docs.wordops.net\/commands\/site\/#site-cd\" rel=\"nofollow noopener\" target=\"_blank\">cd<\/a><\/div>\n<\/td>\n<td style=\"width: 47.8623%; height: 49px;\">Di chuy\u1ec3n t\u1edbi th\u01b0 m\u1ee5c ch\u1ee9a m\u00e3 ngu\u1ed3n c\u1ee7a website<\/td>\n<td style=\"width: 1.02041%; height: 49px;\">\n<div>\n<pre>wo site <span class=\"nb\">cd<\/span>  T\u00ean_website<\/pre>\n<\/div>\n<\/td>\n<td style=\"width: 64.8369%; height: 49px;\">Di chuy\u1ec3n t\u1edbi th\u01b0 m\u1ee5c website<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div>\n<h3 id=\"S\u1eed_d\u1ee5ng_command_stack_tr\u00ean_WordOps\">S\u1eed d\u1ee5ng command stack tr\u00ean WordOps<\/h3>\n<p>C\u00e1ch s\u1eed d\u1ee5ng :<\/p>\n<pre>wo stack <span class=\"o\">(<\/span><span class=\"nb\">command<\/span><span class=\"o\">)<\/span> <span class=\"o\">[Tu\u1ef3_ch\u1ecdn<\/span><span class=\"o\">]<\/span><\/pre>\n<\/div>\n<table style=\"width: 100%; height: 216px;\">\n<thead>\n<tr style=\"height: 24px;\">\n<th style=\"height: 24px;\">subcommand<\/th>\n<th style=\"height: 24px;\">N\u1ed9i dung<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\"><a href=\"https:\/\/docs.wordops.net\/commands\/stack\/#stack-install\" rel=\"nofollow noopener\" target=\"_blank\">install<\/a><\/td>\n<td style=\"height: 24px;\">C\u00e0i \u0111\u1eb7t stack WordOps<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\"><a href=\"https:\/\/docs.wordops.net\/commands\/stack\/#stack-upgrade\" rel=\"nofollow noopener\" target=\"_blank\">upgrade<\/a><\/td>\n<td style=\"height: 24px;\">N\u00e2ng c\u1ea5p stack WordOps<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\"><a href=\"https:\/\/docs.wordops.net\/commands\/stack\/#stack-remove\" rel=\"nofollow noopener\" target=\"_blank\">remove<\/a><\/td>\n<td style=\"height: 24px;\">N\u00e2ng c\u1ea5p packages<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\"><a href=\"https:\/\/docs.wordops.net\/commands\/stack\/#stack-purge\" rel=\"nofollow noopener\" target=\"_blank\">purge<\/a><\/td>\n<td style=\"height: 24px;\">Xo\u00e1\u00a0 &amp; purge packages<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\"><a href=\"https:\/\/docs.wordops.net\/commands\/stack\/#stack-reload\" rel=\"nofollow noopener\" target=\"_blank\">reload<\/a><\/td>\n<td style=\"height: 24px;\">Reload WordOps stack<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\"><a href=\"https:\/\/docs.wordops.net\/commands\/stack\/#stack-restart\" rel=\"nofollow noopener\" target=\"_blank\">restart<\/a><\/td>\n<td style=\"height: 24px;\">Restart WordOps stack<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\"><a href=\"https:\/\/docs.wordops.net\/commands\/stack\/#stack-stop\" rel=\"nofollow noopener\" target=\"_blank\">stop<\/a><\/td>\n<td style=\"height: 24px;\">Stop WordOps stack<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\"><a href=\"https:\/\/docs.wordops.net\/commands\/stack\/#stack-start\" rel=\"nofollow noopener\" target=\"_blank\">start<\/a><\/td>\n<td style=\"height: 24px;\">Start WordOps stack<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"S\u1eed_d\u1ee5ng_command_Debug_tr\u00ean_WordOps\">S\u1eed d\u1ee5ng command Debug tr\u00ean WordOps<\/h3>\n<p>S\u1eed d\u1ee5ng nh\u1eb1m m\u1ee5c \u0111\u00edch g\u1ee1 r\u1ed1i c\u00e1c d\u1ecbch v\u1ee5 tr\u00ean m\u00e1y ch\u1ee7, c\u00e1ch\u00a0 s\u1eed d\u1ee5ng<\/p>\n<pre>wo debug <span class=\"o\">[Tu\u1ef3_Ch\u1ecdn<\/span><span class=\"o\">]<\/span><\/pre>\n<h3 id=\"S\u1eed_d\u1ee5ng_command_Clean_tr\u00ean_WordOps\">S\u1eed d\u1ee5ng command Clean tr\u00ean WordOps<\/h3>\n<p>T\u00e1c d\u1ee5ng Xo\u00e1\u00a0 NGINX FastCGI cache, Opcache, Redis Cache<\/p>\n<p>C\u00e1ch s\u1eed d\u1ee5ng :<\/p>\n<pre>wo clean <span class=\"o\">[Tu\u1ef3_Ch\u1ecdn<\/span><span class=\"o\">]<\/span><\/pre>\n<p>N\u1ebfu tu\u1ef3 ch\u1ecdn c\u1ee7a b\u1ea1n l\u00e0 tr\u1ed1ng, th\u00ec m\u1eb7c \u0111\u1ecbnh s\u1ebd hi\u1ec3u l\u00e0 s\u1eed d\u1ee5ng v\u1edbi :<\/p>\n<p><code class=\"codehilite\"><span class=\"err\">--fastcgi<\/span><\/code><\/p>\n<table>\n<thead>\n<tr>\n<th>Tu\u1ef3 ch\u1ecdn<\/th>\n<th>T\u00e1c d\u1ee5ng<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code class=\"codehilite\"><span class=\"err\">--fastcgi<\/span><\/code><\/td>\n<td>clean Nginx fastcgi_cache<\/td>\n<\/tr>\n<tr>\n<td><code class=\"codehilite\"><span class=\"err\">--redis<\/span><\/code><\/td>\n<td>clean Redis cache<\/td>\n<\/tr>\n<tr>\n<td><code class=\"codehilite\"><span class=\"err\">--opcache<\/span><\/code><\/td>\n<td>clean opcache<\/td>\n<\/tr>\n<tr>\n<td><code class=\"codehilite\"><span class=\"err\">--all<\/span><\/code><\/td>\n<td>clean all cache<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"S\u1eed_d\u1ee5ng_command_Info_tr\u00ean_WordOps\">S\u1eed d\u1ee5ng command Info tr\u00ean WordOps<\/h3>\n<p>Hi\u1ec3n th\u1ecb th\u00f4ng tin c\u1ea5u h\u00ecnh nginx, php, mysql &#8230;<\/p>\n<p>C\u00e1ch s\u1eed d\u1ee5ng :<\/p>\n<pre>wo info <span class=\"o\">[Tu\u1ef3_Ch\u1ecdn<\/span><span class=\"o\">]<\/span><\/pre>\n<table>\n<thead>\n<tr>\n<th>Tu\u1ef3 ch\u1ecdn<\/th>\n<th>Th\u00f4ng tin<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code class=\"codehilite\"><span class=\"err\">--nginx<\/span><\/code><\/td>\n<td>L\u1ea5y th\u00f4ng tin c\u1ea5u h\u00ecnh nginx<\/td>\n<\/tr>\n<tr>\n<td><code class=\"codehilite\"><span class=\"err\">--php<\/span><\/code><\/td>\n<td>L\u1ea5y th\u00f4ng tin c\u1ea5u h\u00ecnh php 7.2<\/td>\n<\/tr>\n<tr>\n<td><code class=\"codehilite\"><span class=\"err\">--php73<\/span><\/code><\/td>\n<td>L\u1ea5y th\u00f4ng tin c\u1ea5u h\u00ecnh php 7.3<\/td>\n<\/tr>\n<tr>\n<td><code class=\"codehilite\"><span class=\"err\">--php74<\/span><\/code><\/td>\n<td>L\u1ea5y th\u00f4ng tin c\u1ea5u h\u00ecnh php 7.4<\/td>\n<\/tr>\n<tr>\n<td><code class=\"codehilite\"><span class=\"err\">--mysql<\/span><\/code><\/td>\n<td>L\u1ea5y th\u00f4ng tin c\u1ea5u h\u00ecnh mysql<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"S\u1eed_d\u1ee5ng_command_log_tr\u00ean_WordOps\">S\u1eed d\u1ee5ng command log tr\u00ean WordOps<\/h3>\n<p>Qu\u1ea3n l\u00fd log tr\u00ean php, nginx v\u00e0 mysql<\/p>\n<p>C\u00e1ch s\u1eed d\u1ee5ng :<\/p>\n<pre>wo log T\u00ean_Site <span class=\"o\">[Tu\u1ef3_Ch\u1ecdn<\/span><span class=\"o\">]<\/span><\/pre>\n<table style=\"width: 100%; height: 120px;\">\n<thead>\n<tr style=\"height: 24px;\">\n<th style=\"height: 24px;\">subcommand<\/th>\n<th style=\"height: 24px;\">Th\u00f4ng tin<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\"><a href=\"https:\/\/docs.wordops.net\/commands\/log\/#gzip\" rel=\"nofollow noopener\" target=\"_blank\">gzip<\/a><\/td>\n<td style=\"height: 24px;\">N\u00e9n log file Nginx, PHP, MySQL b\u1eb1ng Gzip<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\"><a href=\"https:\/\/docs.wordops.net\/commands\/log\/#mail\" rel=\"nofollow noopener\" target=\"_blank\">mail<\/a><\/td>\n<td style=\"height: 24px;\">Mail Nginx, PHP, MySQL log file<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\"><a href=\"https:\/\/docs.wordops.net\/commands\/log\/#log-show\" rel=\"nofollow noopener\" target=\"_blank\">show<\/a><\/td>\n<td style=\"height: 24px;\">Hi\u1ec3n th\u1ecb Nginx, PHP, MySQL log file<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\"><a href=\"https:\/\/docs.wordops.net\/commands\/log\/#reset\" rel=\"nofollow noopener\" target=\"_blank\">reset<\/a><\/td>\n<td style=\"height: 24px;\">Reset Nginx, PHP, MySQL log file<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0110\u1ec3 hi\u1ec3n th\u1ecb nginx, php, mysql log file b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng th\u00eam c\u00e1c tu\u1ef3 ch\u1ecdn nh\u01b0 sau :<\/p>\n<div id=\"__code_1\" class=\"codehilite\">\n<pre>wo log show T\u00ean_Site Tu\u1ef3_Ch\u1ecdn<span class=\"o\"> T\u00ean_Site<\/span>\r\n<\/pre>\n<\/div>\n<div class=\"md-typeset__scrollwrap\">\n<div class=\"md-typeset__table\">\n<table>\n<thead>\n<tr>\n<th>Tu\u1ef3 ch\u1ecdn<\/th>\n<th>M\u00f4 t\u1ea3<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code class=\"codehilite\"><span class=\"err\">--nginx<\/span><\/code><\/td>\n<td>Hi\u1ec3n th\u1ecb l\u1ed7i tr\u00ean nginx log file<\/td>\n<\/tr>\n<tr>\n<td><code class=\"codehilite\"><span class=\"err\">--php<\/span><\/code><\/td>\n<td>Hi\u1ec3n th\u1ecb l\u1ed7i tr\u00ean PHP log file<\/td>\n<\/tr>\n<tr>\n<td><code class=\"codehilite\"><span class=\"err\">--mysql<\/span><\/code><\/td>\n<td>Hi\u1ec3n th\u1ecb mysql log file<\/td>\n<\/tr>\n<tr>\n<td><code class=\"codehilite\"><span class=\"err\">--wp<\/span><\/code><\/td>\n<td>Hi\u1ec3n th\u1ecb log \u0111\u1ed1i v\u1edbi website wordpress c\u1ee5 th\u1ec3.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3 id=\"S\u1eed_d\u1ee5ng_command_Secure\u00a0tr\u00ean_WordOps\">S\u1eed d\u1ee5ng command Secure\u00a0tr\u00ean WordOps<\/h3>\n<p>L\u1ec7nh Secure nh\u1eb1m b\u1ea3o m\u1eadt x\u00e1c th\u1ef1c cho backend , IP, port.<\/p>\n<p>S\u1eed d\u1ee5ng :<\/p>\n<pre>wo secure Tu\u1ef3_Ch\u1ecdn<\/pre>\n<table style=\"width: 100%; height: 220px;\">\n<thead>\n<tr style=\"height: 24px;\">\n<th style=\"height: 24px;\">argument<\/th>\n<th style=\"height: 24px;\">description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 28px;\">\n<td style=\"height: 28px;\"><code class=\"codehilite\"><span class=\"err\">--auth<\/span><\/code><\/td>\n<td style=\"height: 28px;\">Thi\u1ebft l\u1eadp x\u00e1c th\u1ef1c cho user backend.<\/td>\n<\/tr>\n<tr style=\"height: 28px;\">\n<td style=\"height: 28px;\"><code class=\"codehilite\"><span class=\"err\">--port<\/span><\/code><\/td>\n<td style=\"height: 28px;\">Thi\u1ebft l\u1eadp backend port (default: 22222)<\/td>\n<\/tr>\n<tr style=\"height: 28px;\">\n<td style=\"height: 28px;\"><code class=\"codehilite\"><span class=\"err\">--ip<\/span><\/code><\/td>\n<td style=\"height: 28px;\">Thi\u1ebft l\u1eadp list IP cho ph\u00e9p truy c\u1eadp kh\u00f4ng c\u1ea7n x\u00e1c th\u1ef1c<\/td>\n<\/tr>\n<tr style=\"height: 28px;\">\n<td style=\"height: 28px;\"><code class=\"codehilite\"><span class=\"err\">--ssh<\/span><\/code><\/td>\n<td style=\"height: 28px;\">Thi\u1ebft l\u1eadp ssh<\/td>\n<\/tr>\n<tr style=\"height: 28px;\">\n<td style=\"height: 28px;\"><code class=\"codehilite\"><span class=\"err\">--sshport<\/span><\/code><\/td>\n<td style=\"height: 28px;\">Thi\u1ebft l\u1eadp tu\u1ef3 ch\u1ec9nh\u00a0 port ssh (Port ssh m\u1eb7c \u0111\u1ecbnh: 22)<\/td>\n<\/tr>\n<tr style=\"height: 28px;\">\n<td style=\"height: 28px;\"><code class=\"codehilite\"><span class=\"err\">--allowpassword<\/span><\/code><\/td>\n<td style=\"height: 28px;\">Cho ph\u00e9p ssh b\u1eb1ng password n\u1ebfu b\u1ea1n t\u1eaft ch\u1ee9c n\u0103ng n\u00e0y.<\/td>\n<\/tr>\n<tr style=\"height: 28px;\">\n<td style=\"height: 28px;\"><code class=\"codehilite\"><span class=\"err\">--force<\/span><\/code><\/td>\n<td style=\"height: 28px;\">T\u1eaft ch\u1ee9c n\u0103ng ssh b\u1eb1ng m\u1eadt kh\u1ea9u.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"S\u1eed_d\u1ee5ng_command_Maintenance_tr\u00ean_WordOps\">S\u1eed d\u1ee5ng command Maintenance tr\u00ean WordOps<\/h3>\n<p>N\u00e2ng c\u1ea5p apt-cache v\u00e0 n\u00e2ng c\u1ea5p packages.<\/p>\n<p>S\u1eed d\u1ee5ng:<\/p>\n<pre>wo maintenance<\/pre>\n<p>L\u1ec7nh tr\u00ean t\u01b0\u01a1ng \u0111\u01b0\u01a1ng v\u1edbi :<\/p>\n<pre>apt update\r\napt dist-upgrade\r\napt autoremove --purge\r\napt autoclean<\/pre>\n<p>&nbsp;<\/p>\n<h3 id=\"S\u1eed_d\u1ee5ng_command_update_tr\u00ean_WordOps\">S\u1eed d\u1ee5ng command update tr\u00ean WordOps<\/h3>\n<p>C\u1eadp nh\u1eadt WordOps l\u00ean phi\u00ean b\u1ea3n m\u1edbi nh\u1ea5t \u0111ang ph\u00e1t h\u00e0nh.<\/p>\n<p>C\u00e1ch s\u1eed d\u1ee5ng :<\/p>\n<pre>wo update Tu\u1ef3_Ch\u1ecdn<\/pre>\n<p>N\u1ebfu kh\u00f4ng c\u00f3 tu\u1ef3 ch\u1ecdn g\u00ec, m\u1eb7c \u0111\u1ecbnh th\u00ec h\u1ec7 th\u1ed1ng s\u1ebd update l\u00ean b\u1ea3n WordOps \u1ed5n \u0111\u1ecbnh m\u1edbi nh\u1ea5t.<\/p>\n<table style=\"width: 100%; height: 52px;\">\n<thead>\n<tr style=\"height: 24px;\">\n<th style=\"height: 24px;\">Tu\u1ef3 ch\u1ecdn<\/th>\n<th style=\"height: 24px;\">M\u00f4 t\u1ea3<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 28px;\">\n<td style=\"height: 28px;\"><code class=\"codehilite\"><span class=\"err\">--force<\/span><\/code><\/td>\n<td style=\"height: 28px;\">N\u00e2ng c\u1ea5p WordOps l\u00ean b\u1ea3n last release (Kh\u00f4ng ph\u1ea3i b\u1ea3n \u1ed5n \u0111\u1ecbnh stable)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tr\u00ean WordOps b\u1ea1n s\u1eed d\u1ee5ng theo c\u00fa ph\u00e1p. wo (command) [tu\u1ef3 ch\u1ecdn] C\u00e1c command tr\u00ean WordOps \u0111\u01b0\u1ee3c li\u1ec7t k\u00ea nh\u01b0 sau : command T\u00ednh n\u0103ng V\u00ed D\u1ee5 site create, update, delete, list sites tr\u00ean WordOps wo site create site.tld &#8211;wp stack install\/remove WordOps server stacks wo stack install &#8211;nginx debug commands d\u00f9ng \u0111\u1ec3 debug tr\u00ean [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":16424,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"tags":[],"ht_kb_category":[5159],"class_list":["post-4130","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-wordops"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/4130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=4130"}],"version-history":[{"count":0,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/4130\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/16424"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=4130"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=4130"},{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb_category?post=4130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}